diff --git a/DesktopEditor/Word_Api/Editor_Api.h b/DesktopEditor/Word_Api/Editor_Api.h index 45e5ecd4b4..85c630a543 100644 --- a/DesktopEditor/Word_Api/Editor_Api.h +++ b/DesktopEditor/Word_Api/Editor_Api.h @@ -2166,6 +2166,50 @@ namespace NSEditorApi }; } +namespace NSEditorApi +{ + class CAscSearchFindText : public IMenuEventDataBase + { + private: + std::wstring m_sText; + bool m_bIsNext; + bool m_bIsMatchCase; + + public: + CAscSearchFindText() + { + } + virtual ~CAscSearchFindText() + { + } + + LINK_PROPERTY_STRING(Text) + LINK_PROPERTY_BOOL(IsNext) + LINK_PROPERTY_BOOL(IsMatchCase) + }; + class CAscSearchReplaceText : public IMenuEventDataBase + { + private: + std::wstring m_sText; + std::wstring m_sReplaceWith; + bool m_bIsReplaceAll; + bool m_bIsMatchCase; + + public: + CAscSearchReplaceText() + { + } + virtual ~CAscSearchReplaceText() + { + } + + LINK_PROPERTY_STRING(Text) + LINK_PROPERTY_STRING(ReplaceWith) + LINK_PROPERTY_BOOL(IsReplaceAll) + LINK_PROPERTY_BOOL(IsMatchCase) + }; +} + namespace NSEditorApi { class CAscMenuEvent : public IMenuEventDataBase diff --git a/DesktopEditor/Word_Api/Editor_Defines.h b/DesktopEditor/Word_Api/Editor_Defines.h index 4f73153d03..d6070a07c2 100644 --- a/DesktopEditor/Word_Api/Editor_Defines.h +++ b/DesktopEditor/Word_Api/Editor_Defines.h @@ -612,4 +612,9 @@ #define ASC_MENU_EVENT_TYPE_CAN_UNDO 60 #define ASC_MENU_EVENT_TYPE_CAN_REDO 61 +#define ASC_MENU_EVENT_TYPE_SEARCH_FINDTEXT 62 +#define ASC_MENU_EVENT_TYPE_SEARCH_REPLACETEXT 63 +#define ASC_MENU_EVENT_TYPE_SEARCH_SELECTRESULTS 64 +#define ASC_MENU_EVENT_TYPE_SEARCH_ISSELECTRESULTS 65 + #endif //_BUILD_EDITOR_DEFINES_CROSSPLATFORM_H_