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

find/replace engine

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@58100 954022d7-b5bf-4e40-9824-e11837661b57
parent 48776121
......@@ -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
......
......@@ -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_
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