diff options
| author | nyamatongwe <devnull@localhost> | 2003-05-11 01:25:28 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2003-05-11 01:25:28 +0000 | 
| commit | adc33a661948e517e7d223ad8aa5fa5a45be3e6f (patch) | |
| tree | 19c9a87dd4938abcfdff50a961d8cd8dd46a9e29 /src/Editor.h | |
| parent | b4d2256f9ccf56efacbd84b3fbed1e846fb1853f (diff) | |
| download | scintilla-mirror-adc33a661948e517e7d223ad8aa5fa5a45be3e6f.tar.gz | |
Addition of CopyText, CopyRange, and LineCopy.
Diffstat (limited to 'src/Editor.h')
| -rw-r--r-- | src/Editor.h | 17 | 
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(); | 
