Commit e553a25b authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander Trofimov

insert

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@57860 954022d7-b5bf-4e40-9824-e11837661b57
parent e0e7ea68
......@@ -1621,12 +1621,20 @@ namespace NSEditorApi
unsigned int Width;
unsigned int Height;
bool Release;
public:
CAscImageRaw()
{
Data = NULL;
Width = 0;
Height = 0;
Release = false;
}
~CAscImageRaw()
{
if (NULL != Data && Release)
delete [] Data;
}
};
......@@ -1635,7 +1643,7 @@ namespace NSEditorApi
private:
js_wrapper<CAscImageRaw> m_oRaw;
js_wrapper<std::wstring> m_sPath;
js_wrapper<std::string> m_sBase64;
js_wrapper<std::string> m_sBase64;
public:
CAscInsertImage()
......@@ -1684,6 +1692,26 @@ namespace NSEditorApi
typedef CAscMethodParamInt CAscInsertPageNumber;
}
namespace NSEditorApi
{
class CAscStylesTemplate
{
public:
std::vector<std::wstring> m_names;
int m_nWidth;
int m_nHeight;
CAscImageRaw m_oImage;
public:
CAscStylesTemplate()
{
}
};
typedef CAscStylesTemplate CAscParagraphStyles;
typedef CAscStylesTemplate CAscTableStyles;
}
namespace NSEditorApi
{
class CAscMenuEvent
......@@ -1761,6 +1789,8 @@ namespace NSEditorApi
#define ASC_MENU_EVENT_TYPE_HYPERLINK 8
#define ASC_MENU_EVENT_TYPE_IMAGE 9
#define ASC_MENU_EVENT_TYPE_TABLE 10
#define ASC_MENU_EVENT_TYPE_PARAGRAPHSTYLES 11
#define ASC_MENU_EVENT_TYPE_TABLESTYLES 12
// insert commands
#define ASC_MENU_EVENT_TYPE_INSERT_IMAGE 50
......@@ -1772,5 +1802,4 @@ namespace NSEditorApi
#define ASC_MENU_EVENT_TYPE_INSERT_PAGENUMBER 56
#define ASC_MENU_EVENT_TYPE_INSERT_SECTIONBREAK 57
#endif //_BUILD_EDITOR_API_CROSSPLATFORM_H_
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment