diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/Scintilla.h | 2 | ||||
-rw-r--r-- | include/Scintilla.iface | 6 | ||||
-rw-r--r-- | include/ScintillaCall.h | 3 | ||||
-rw-r--r-- | include/ScintillaMessages.h | 2 |
4 files changed, 13 insertions, 0 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h index 736a7e2d5..4de92e1b8 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -536,6 +536,8 @@ typedef sptr_t (*SciFnDirectStatus)(sptr_t ptr, unsigned int iMessage, uptr_t wP #define SC_UNDO_SELECTION_HISTORY_ENABLED 1 #define SCI_SETUNDOSELECTIONHISTORY 2782 #define SCI_GETUNDOSELECTIONHISTORY 2783 +#define SCI_SETSELECTIONSERIALIZED 2784 +#define SCI_GETSELECTIONSERIALIZED 2785 #define SCI_GETFIRSTVISIBLELINE 2152 #define SCI_GETLINE 2153 #define SCI_GETLINECOUNT 2154 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index 65d3d157b..4ce9d5703 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -1344,6 +1344,12 @@ set void SetUndoSelectionHistory=2782(UndoSelectionHistoryOption undoSelectionHi # Report undo selection history status. get UndoSelectionHistoryOption GetUndoSelectionHistory=2783(,) +# Set selection from serialized form. +set void SetSelectionSerialized=2784(, string selectionString) + +# Retrieve serialized form of selection. +get position GetSelectionSerialized=2785(, stringresult selectionString) + # Retrieve the display line at the top of the display. get line GetFirstVisibleLine=2152(,) diff --git a/include/ScintillaCall.h b/include/ScintillaCall.h index bcd462be9..345d15612 100644 --- a/include/ScintillaCall.h +++ b/include/ScintillaCall.h @@ -362,6 +362,9 @@ public: Scintilla::ChangeHistoryOption ChangeHistory(); void SetUndoSelectionHistory(Scintilla::UndoSelectionHistoryOption undoSelectionHistory); Scintilla::UndoSelectionHistoryOption UndoSelectionHistory(); + void SetSelectionSerialized(const char *selectionString); + Position SelectionSerialized(char *selectionString); + std::string SelectionSerialized(); Line FirstVisibleLine(); Position GetLine(Line line, char *text); std::string GetLine(Line line); diff --git a/include/ScintillaMessages.h b/include/ScintillaMessages.h index f60be4d52..d7ec27c39 100644 --- a/include/ScintillaMessages.h +++ b/include/ScintillaMessages.h @@ -287,6 +287,8 @@ enum class Message { GetChangeHistory = 2781, SetUndoSelectionHistory = 2782, GetUndoSelectionHistory = 2783, + SetSelectionSerialized = 2784, + GetSelectionSerialized = 2785, GetFirstVisibleLine = 2152, GetLine = 2153, GetLineCount = 2154, |