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

#include <JSTUndoBase.h>

Inheritance diagram for JSTUndoBase:
[legend]

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

JStyledTextGetText () const
 
void SetFont (JRunArray< JFont > *styles, const JString &name, const JSize size)
 

Detailed Description

Base class to support undoing any operation on a JStyledText object.

Constructor & Destructor Documentation

◆ JSTUndoBase()

JSTUndoBase::JSTUndoBase ( JStyledText text)

◆ ~JSTUndoBase()

JSTUndoBase::~JSTUndoBase ( )
override

Member Function Documentation

◆ GetText()

JStyledText * JSTUndoBase::GetText ( ) const
inlineprotected

◆ SetCount()

void JSTUndoBase::SetCount ( const JStyledText::TextCount count)
virtual

Supports JStyledText::MoveText()

Reimplemented in JSTUndoMove, and JSTUndoPaste.

◆ SetFont() [1/2]

void JSTUndoBase::SetFont ( const JString name,
const JSize  size 
)
virtual

◆ SetFont() [2/2]

void JSTUndoBase::SetFont ( JRunArray< JFont > *  styles,
const JString name,
const JSize  size 
)
protected

Convenience function for derived classes that need to implement SetFont().


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