|
JX Application Framework
|
#include <JSTUndoPaste.h>
Public Member Functions | |
| JSTUndoPaste (JStyledText *text, const JStyledText::TextRange &range) | |
| ~JSTUndoPaste () override | |
| void | Undo () override |
| void | SetCount (const JStyledText::TextCount &count) override |
| bool | SameStartIndex (const JStyledText::TextRange &range) const |
Public Member Functions inherited from JSTUndoTextBase | |
| JSTUndoTextBase (JStyledText *text, const JStyledText::TextRange &range) | |
| ~JSTUndoTextBase () override | |
| void | SetFont (const JString &name, const JSize size) override |
Public Member Functions inherited from JSTUndoBase | |
| JSTUndoBase (JStyledText *text) | |
| ~JSTUndoBase () override | |
Public Member Functions inherited from JUndo | |
| JUndo () | |
| virtual | ~JUndo () |
| bool | IsActive () const |
| void | Activate () |
| void | Deactivate () |
| bool | IsRedo () const |
| void | SetRedo (const bool isRedo) |
Additional Inherited Members | |
Protected Member Functions inherited from JSTUndoTextBase | |
| void | UndoText (const JStyledText::TextRange range) |
| void | PrependToSave (const JUtf8Character &c, const JIndex charIndex) |
| void | AppendToSave (const JUtf8Character &c, const JIndex charIndex) |
Protected Member Functions inherited from JSTUndoBase | |
| JStyledText * | GetText () const |
| void | SetFont (JRunArray< JFont > *styles, const JString &name, const JSize size) |
Class to undo paste into a JStyledText object.
| JSTUndoPaste::JSTUndoPaste | ( | JStyledText * | text, |
| const JStyledText::TextRange & | range | ||
| ) |
Saves a snapshot of the specified range, to allow undo.
|
override |
| bool JSTUndoPaste::SameStartIndex | ( | const JStyledText::TextRange & | range | ) | const |
|
overridevirtual |
Saves the number of characters that need to be replaced when we undo.
Reimplemented from JSTUndoBase.
|
overridevirtual |
Implements JUndo.