|
JX Application Framework
|
#include <JSTUndoBase.h>
Public Member Functions | |
| JSTUndoBase (JStyledText *text) | |
| ~JSTUndoBase () override | |
| virtual void | SetCount (const JStyledText::TextCount &count) |
| virtual void | SetFont (const JString &name, const JSize size) |
Public Member Functions inherited from JUndo | |
| JUndo () | |
| virtual | ~JUndo () |
| virtual void | Undo ()=0 |
| bool | IsActive () const |
| void | Activate () |
| void | Deactivate () |
| bool | IsRedo () const |
| void | SetRedo (const bool isRedo) |
Protected Member Functions | |
| JStyledText * | GetText () const |
| void | SetFont (JRunArray< JFont > *styles, const JString &name, const JSize size) |
Base class to support undoing any operation on a JStyledText object.
| JSTUndoBase::JSTUndoBase | ( | JStyledText * | text | ) |
|
override |
|
inlineprotected |
|
virtual |
Supports JStyledText::MoveText()
Reimplemented in JSTUndoMove, and JSTUndoPaste.
Called by JStyledText::SetAllFontNameAndSize().
Reimplemented in JSTUndoStyle, and JSTUndoTextBase.
|
protected |
Convenience function for derived classes that need to implement SetFont().