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:
@@ -1463,6 +1463,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.
|
||||
*/
|
||||
@@ -1483,6 +1488,12 @@ public:
|
||||
*/
|
||||
virtual bool ApplyUnderlineToSelection();
|
||||
|
||||
/**
|
||||
Applies one or more wxTextAttrEffects flags to the selection (undoable).
|
||||
If there's no selection, it's applied to the current caret position
|
||||
*/
|
||||
virtual bool ApplyTextEffectToSelection(int flags);
|
||||
|
||||
/**
|
||||
Applies the given alignment to the selection (undoable).
|
||||
For alignment values, see wxTextAttr.
|
||||
|
@@ -127,7 +127,8 @@ enum wxTextAttrBulletStyle
|
||||
/**
|
||||
Styles for wxTextAttr::SetTextEffects(). They can be combined together as a bitlist.
|
||||
|
||||
Of these, only wxTEXT_ATTR_EFFECT_CAPITALS and wxTEXT_ATTR_EFFECT_STRIKETHROUGH are implemented.
|
||||
Of these, only wxTEXT_ATTR_EFFECT_CAPITALS, wxTEXT_ATTR_EFFECT_STRIKETHROUGH,
|
||||
wxTEXT_ATTR_EFFECT_SUPERSCRIPT and wxTEXT_ATTR_EFFECT_SUBSCRIPT are implemented.
|
||||
*/
|
||||
enum wxTextAttrEffects
|
||||
{
|
||||
@@ -807,8 +808,8 @@ public:
|
||||
Sets the text effects, a bit list of styles.
|
||||
The ::wxTextAttrEffects enumeration values can be used.
|
||||
|
||||
Of these, only wxTEXT_ATTR_EFFECT_CAPITALS and wxTEXT_ATTR_EFFECT_STRIKETHROUGH
|
||||
are implemented.
|
||||
Of these, only wxTEXT_ATTR_EFFECT_CAPITALS, wxTEXT_ATTR_EFFECT_STRIKETHROUGH,
|
||||
wxTEXT_ATTR_EFFECT_SUPERSCRIPT and wxTEXT_ATTR_EFFECT_SUBSCRIPT are implemented.
|
||||
|
||||
wxTEXT_ATTR_EFFECT_CAPITALS capitalises text when displayed (leaving the case
|
||||
of the actual buffer text unchanged), and wxTEXT_ATTR_EFFECT_STRIKETHROUGH draws
|
||||
|
Reference in New Issue
Block a user