From 28359bf31e4f696901245bc955df74fd8bdda4bf Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 16 Jul 2012 14:06:12 +1000 Subject: Implement SCI_GETSELECTIONEMPTY API. Bug #3543121. --- doc/ScintillaDoc.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'doc/ScintillaDoc.html') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 0fe4b05c7..2ab2d7f03 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -911,8 +911,8 @@ struct Sci_TextToFind { pasting from the clipboard into the document, and clearing the document. SCI_CANPASTE returns non-zero if the document isn't read-only and if the selection doesn't contain protected text. If you need a "can copy" or "can cut", use - SCI_GETSELECTIONSTART()-SCI_GETSELECTIONEND(), which will be non-zero if you can - copy or cut to the clipboard.

+ SCI_GETSELECTIONEMPTY(), which will be zero if there are any non-empty + selection ranges implying that a copy or cut to the clipboard should work.

GTK+ does not really support SCI_CANPASTE and always returns TRUE unless the document is read-only.

@@ -1504,6 +1504,7 @@ struct Sci_TextToFind {
SCI_GETSELECTIONS
+ SCI_GETSELECTIONEMPTY
SCI_CLEARSELECTIONS
SCI_SETSELECTION(int caret, int anchor)
SCI_ADDSELECTION(int caret, int anchor)
@@ -1614,6 +1615,10 @@ struct Sci_TextToFind { SCI_GETSELECTIONS
Return the number of selections currently active.

+

+ SCI_GETSELECTIONEMPTY
+ Return 1 if every selected range is empty else 0.

+

SCI_CLEARSELECTIONS
Set a single empty selection at 0 as the only selection.

-- cgit v1.2.3