find/replace engine

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@58100 954022d7-b5bf-4e40-9824-e11837661b57
This commit is contained in:
Oleg.Korshul
2014-09-04 10:29:27 +00:00
committed by Alexander Trofimov
parent 48776121fc
commit cf2ebfebf6
2 changed files with 49 additions and 0 deletions

View File

@ -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

View File

@ -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_