From 74c8720e3b8435f6f3a65d736bf6924ff0dff926 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 21 Sep 2006 16:59:50 +0000 Subject: [PATCH] Several methods dropped the const from their signature git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41350 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/richtext.i | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/wxPython/src/richtext.i b/wxPython/src/richtext.i index 12c1d69644..0574089c62 100644 --- a/wxPython/src/richtext.i +++ b/wxPython/src/richtext.i @@ -606,7 +606,7 @@ text control.", ""); "Set the style for the text in ``range`` to ``style``", ""); DocDeclStr( - virtual bool , GetStyle(long position, wxRichTextAttr& style) const, + virtual bool , GetStyle(long position, wxRichTextAttr& style), "Retrieve the style used at the given position. Copies the style values at ``position`` into the ``style`` parameter returns ``True`` if successful. Returns ``False`` otherwise.", ""); @@ -1054,13 +1054,25 @@ flag.", ""); /// Get/set the selection range in character positions. -1, -1 means no selection. DocDeclStr( - const wxRichTextRange& , GetSelectionRange() const, + wxRichTextRange , GetSelectionRange() const, "", ""); DocDeclStr( void , SetSelectionRange(const wxRichTextRange& range), "", ""); + /// Get/set the selection range in character positions. -1, -1 means no selection. + /// The range is in internal format, i.e. a single character selection is denoted + /// by (n, n) + DocDeclStr( + const wxRichTextRange& , GetInternalSelectionRange() const, + "", ""); + + DocDeclStr( + void , SetInternalSelectionRange(const wxRichTextRange& range), + "", ""); + + /// Add a new paragraph of text to the end of the buffer DocDeclStr( @@ -1252,25 +1264,25 @@ flag.", ""); /// Is all of the selection bold? DocDeclStr( - virtual bool , IsSelectionBold() const, + virtual bool , IsSelectionBold(), "", ""); /// Is all of the selection italics? DocDeclStr( - virtual bool , IsSelectionItalics() const, + virtual bool , IsSelectionItalics(), "", ""); /// Is all of the selection underlined? DocDeclStr( - virtual bool , IsSelectionUnderlined() const, + virtual bool , IsSelectionUnderlined(), "", ""); /// Is all of the selection aligned according to the specified flag? DocDeclStr( - virtual bool , IsSelectionAligned(wxTextAttrAlignment alignment) const, + virtual bool , IsSelectionAligned(wxTextAttrAlignment alignment), "", ""); -- 2.45.2