JX Application Framework
Loading...
Searching...
No Matches
Public Member Functions | List of all members
JSTUndoPaste Class Reference

#include <JSTUndoPaste.h>

Inheritance diagram for JSTUndoPaste:
[legend]

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
JStyledTextGetText () const
 
void SetFont (JRunArray< JFont > *styles, const JString &name, const JSize size)
 

Detailed Description

Class to undo paste into a JStyledText object.

Constructor & Destructor Documentation

◆ JSTUndoPaste()

JSTUndoPaste::JSTUndoPaste ( JStyledText text,
const JStyledText::TextRange range 
)

Saves a snapshot of the specified range, to allow undo.

◆ ~JSTUndoPaste()

JSTUndoPaste::~JSTUndoPaste ( )
override

Member Function Documentation

◆ SameStartIndex()

bool JSTUndoPaste::SameStartIndex ( const JStyledText::TextRange range) const

◆ SetCount()

void JSTUndoPaste::SetCount ( const JStyledText::TextCount count)
overridevirtual

Saves the number of characters that need to be replaced when we undo.

Reimplemented from JSTUndoBase.

◆ Undo()

void JSTUndoPaste::Undo ( )
overridevirtual

Implements JUndo.


The documentation for this class was generated from the following files: