aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Editor.h')
-rw-r--r--src/Editor.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/Editor.h b/src/Editor.h
index f2a4c9ca9..bd4669192 100644
--- a/src/Editor.h
+++ b/src/Editor.h
@@ -133,6 +133,19 @@ public:
len = 0;
rectangular = rectangular_;
}
+ void Copy(const char *s_, int len_, bool rectangular_=false) {
+ delete []s;
+ s = new char[len_];
+ if (s) {
+ len = len_;
+ for (int i = 0; i < len_; i++) {
+ s[i] = s_[i];
+ }
+ } else {
+ len = 0;
+ }
+ rectangular = rectangular_;
+ }
};
/**
@@ -416,8 +429,12 @@ protected: // ScintillaBase subclass needs access to much of Editor
long SearchInTarget(const char *text, int length);
void GoToLine(int lineNo);
+ virtual void CopyToClipboard(const SelectionText &selectedText) = 0;
char *CopyRange(int start, int end);
+ void CopySelectionFromRange(SelectionText *ss, int start, int end);
void CopySelectionRange(SelectionText *ss);
+ void CopyRangeToClipboard(int start, int end);
+ void CopyText(int length, const char *text);
void SetDragPosition(int newPos);
virtual void DisplayCursor(Window::Cursor c);
virtual void StartDrag();