Applied patch #13534: wxRichTextCtrl: Make it easier to use TextEffects flags

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69512 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2011-10-22 13:19:40 +00:00
parent 23d11f0eb4
commit 75936ec600
7 changed files with 155 additions and 11 deletions

View File

@@ -1490,6 +1490,11 @@ public:
*/
virtual bool IsSelectionUnderlined();
/**
Returns @true if all of the selection, or the current caret position, has the supplied wxTextAttrEffects flag(s).
*/
virtual bool DoesSelectionHaveTextEffectFlag(int flag);
/**
Returns @true if all of the selection is aligned according to the specified flag.
*/
@@ -1510,6 +1515,12 @@ public:
*/
virtual bool ApplyUnderlineToSelection();
/**
Applies one or more wxTextAttrEffects flags to the selection (undoable).
If there's no selection, it's is applied to the current caret position
*/
virtual bool ApplyTextEffectToSelection(int flags);
/**
Applies the given alignment to the selection (undoable).
For alignment values, see wxTextAttr.