mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-20 03:55:47 +08:00
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:
committed by
Alexander Trofimov
parent
48776121fc
commit
cf2ebfebf6
@ -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_
|
||||
|
||||
Reference in New Issue
Block a user