From 0cc7d068ca8fb110c4de0886225caf5188b582eb Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 9 Nov 2005 12:11:43 +0000 Subject: Patch, mostly from Simon Steele, that converts new lines in pasted text to match document. --- doc/ScintillaDoc.html | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'doc') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index fb4ac1420..7bc2d8b25 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -798,6 +798,8 @@ struct TextToFind { SCI_COPYRANGE(int start, int end)
SCI_COPYTEXT(int length, const char *text)
+ SCI_SETPASTECONVERTENDINGS(bool convert)
+ SCI_GETPASTECONVERTENDINGS

SCI_CUT
@@ -825,6 +827,13 @@ struct TextToFind { the system clipboard and SCI_COPYTEXT copies a supplied piece of text to the system clipboard.

+

SCI_SETPASTECONVERTENDINGS(bool convert)
+ SCI_GETPASTECONVERTENDINGS
+ If this property is set then when text is pasted any line ends are converted to match the document's + end of line mode as set with + SCI_SETEOLMODE. + Currently only changeable on Windows. On GTK+ pasted text is always converted.

+

Error handling

SCI_SETSTATUS(int status)
@@ -1727,11 +1736,11 @@ struct TextToFind { this can be changed with the SCI_SETEOLMODE message. You can also convert the entire document to one of these line endings with SCI_CONVERTEOLS. Finally, you can choose to display the line endings with SCI_SETVIEWEOL.

- SCI_SETEOLMODE(int eolMode)
- SCI_GETEOLMODE
- SCI_CONVERTEOLS(int eolMode)
- SCI_SETVIEWEOL(bool visible)
- SCI_GETVIEWEOL
+ SCI_SETEOLMODE(int eolMode)
+ SCI_GETEOLMODE
+ SCI_CONVERTEOLS(int eolMode)
+ SCI_SETVIEWEOL(bool visible)
+ SCI_GETVIEWEOL

SCI_SETEOLMODE(int eolMode)
-- cgit v1.2.3