From cf2ebfebf6375117c020a600dea8e7112e81030c Mon Sep 17 00:00:00 2001 From: "Oleg.Korshul" Date: Thu, 4 Sep 2014 10:29:27 +0000 Subject: [PATCH] find/replace engine git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@58100 954022d7-b5bf-4e40-9824-e11837661b57 --- DesktopEditor/Word_Api/Editor_Api.h | 44 +++++++++++++++++++++++++ DesktopEditor/Word_Api/Editor_Defines.h | 5 +++ 2 files changed, 49 insertions(+) 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_