|
JX Application Framework
|
#include <JSTUndoTyping.h>
Public Member Functions | |
| JSTUndoTyping (JStyledText *buffer, const JStyledText::TextIndex &start) | |
| JSTUndoTyping (JStyledText *buffer, const JStyledText::TextRange &replaceRange) | |
| ~JSTUndoTyping () override | |
| void | Undo () override |
| void | HandleDelete (const JStringMatch &match, const bool fromAutoIndent) |
| void | HandleFwdDelete (const JStringMatch &match) |
| void | HandleCharacters (const JStyledText::TextCount &count) |
| bool | MatchesCurrentIndex (const JStyledText::TextIndex &index) 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 | |
| virtual void | SetCount (const JStyledText::TextCount &count) |
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 typing into a JStyledText object.
| JSTUndoTyping::JSTUndoTyping | ( | JStyledText * | buffer, |
| const JStyledText::TextIndex & | start | ||
| ) |
| JSTUndoTyping::JSTUndoTyping | ( | JStyledText * | buffer, |
| const JStyledText::TextRange & | replaceRange | ||
| ) |
|
override |
| void JSTUndoTyping::HandleCharacters | ( | const JStyledText::TextCount & | count | ) |
| void JSTUndoTyping::HandleDelete | ( | const JStringMatch & | match, |
| const bool | fromAutoIndent | ||
| ) |
Call this -before- deleting the characters.
| void JSTUndoTyping::HandleFwdDelete | ( | const JStringMatch & | match | ) |
Call this -before- deleting the characters.
| bool JSTUndoTyping::MatchesCurrentIndex | ( | const JStyledText::TextIndex & | index | ) | const |
|
overridevirtual |
Implements JUndo.