aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2025-02-01 14:43:22 +1100
committerNeil <nyamatongwe@gmail.com>2025-02-01 14:43:22 +1100
commitf54fd2019dd648b29a80ec7429833ab546d3a428 (patch)
tree231bebba7db25fccf798340bdd908f28fd504c26 /include
parentdb6332fa9933244c45c44063afbdcccb462cfc03 (diff)
downloadscintilla-mirror-f54fd2019dd648b29a80ec7429833ab546d3a428.tar.gz
Serialize selection type and ranges with SCI_GETSELECTIONSERIALIZED and
SCI_SETSELECTIONSERIALIZED.
Diffstat (limited to 'include')
-rw-r--r--include/Scintilla.h2
-rw-r--r--include/Scintilla.iface6
-rw-r--r--include/ScintillaCall.h3
-rw-r--r--include/ScintillaMessages.h2
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,