public wxTextCtrlIface,
public wxScrollHelper
{
- DECLARE_CLASS( wxRichTextCtrl )
+ DECLARE_DYNAMIC_CLASS( wxRichTextCtrl )
DECLARE_EVENT_TABLE()
public:
long GetDelayedLayoutThreshold() const { return m_delayedLayoutThreshold; }
/**
+ Gets the flag indicating that full layout is required.
*/
bool GetFullLayoutRequired() const { return m_fullLayoutRequired; }
/**
+ Sets the flag indicating that full layout is required.
*/
void SetFullLayoutRequired(bool b) { m_fullLayoutRequired = b; }
/**
+ Returns the last time full layout was performed.
*/
wxLongLong GetFullLayoutTime() const { return m_fullLayoutTime; }
/**
+ Sets the last time full layout was performed.
*/
void SetFullLayoutTime(wxLongLong t) { m_fullLayoutTime = t; }
/**
+ Returns the position that should be shown when full (delayed) layout is performed.
*/
long GetFullLayoutSavedPosition() const { return m_fullLayoutSavedPosition; }
/**
+ Sets the position that should be shown when full (delayed) layout is performed.
*/
void SetFullLayoutSavedPosition(long p) { m_fullLayoutSavedPosition = p; }
- // Force any pending layout due to large buffer
/**
+ Forces any pending layout due to delayed, partial layout when the control
+ was resized.
*/
void ForceDelayedLayout();
}
/**
- Returns @true if all of the selection is bold.
+ Returns @true if all of the selection, or the content at the caret position, is bold.
*/
virtual bool IsSelectionBold();
/**
- Returns @true if all of the selection is italic.
+ Returns @true if all of the selection, or the content at the caret position, is italic.
*/
virtual bool IsSelectionItalics();
/**
- Returns @true if all of the selection is underlined.
+ Returns @true if all of the selection, or the content at the caret position, is underlined.
*/
virtual bool IsSelectionUnderlined();
/**
- Returns @true if all of the selection is aligned according to the specified flag.
+ Returns @true if all of the selection, or the content at the current caret position, has the supplied wxTextAttrEffects flag(s).
+ */
+ virtual bool DoesSelectionHaveTextEffectFlag(int flag);
+
+ /**
+ Returns @true if all of the selection, or the content at the caret position, is aligned according to the specified flag.
*/
virtual bool IsSelectionAligned(wxTextAttrAlignment alignment);
/**
- Apples bold to the selection (undoable).
+ Apples bold to the selection or default style (undoable).
*/
virtual bool ApplyBoldToSelection();
/**
- Applies italic to the selection (undoable).
+ Applies italic to the selection or default style (undoable).
*/
virtual bool ApplyItalicToSelection();
/**
- Applies underline to the selection (undoable).
+ Applies underline to the selection or default style (undoable).
*/
virtual bool ApplyUnderlineToSelection();
/**
- Applies the given alignment to the selection (undoable).
+ Applies one or more wxTextAttrEffects flags to the selection (undoable).
+ If there is no selection, it is applied to the default style.
+ */
+ virtual bool ApplyTextEffectToSelection(int flags);
+
+ /**
+ Applies the given alignment to the selection or the default style (undoable).
For alignment values, see wxTextAttr.
*/
virtual bool ApplyAlignmentToSelection(wxTextAttrAlignment alignment);