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

#include <JSTUndoStyle.h>

Inheritance diagram for JSTUndoStyle:
[legend]

Public Member Functions

 JSTUndoStyle (JStyledText *text, const JStyledText::TextRange &range)
 
 ~JSTUndoStyle () override
 
void Undo () override
 
void SetFont (const JString &name, const JSize size) override
 
bool SameRange (const JStyledText::TextRange &range) const
 
- 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 JSTUndoBase
JStyledTextGetText () const
 
void SetFont (JRunArray< JFont > *styles, const JString &name, const JSize size)
 

Detailed Description

Interface for the JSTUndoStyle class.

Class to undo style change in a JStyledText object.

Constructor & Destructor Documentation

◆ JSTUndoStyle()

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

◆ ~JSTUndoStyle()

JSTUndoStyle::~JSTUndoStyle ( )
override

Member Function Documentation

◆ SameRange()

bool JSTUndoStyle::SameRange ( const JStyledText::TextRange range) const

◆ SetFont()

void JSTUndoStyle::SetFont ( const JString name,
const JSize  size 
)
overridevirtual

Called by JStyledText::SetAllFontNameAndSize().

Reimplemented from JSTUndoBase.

◆ Undo()

void JSTUndoStyle::Undo ( )
overridevirtual

Implements JUndo.


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