lib

#include <KoTextCommand.h>

Inheritance diagram for KoTextCommand:
KNamedCommand KCommand

Public Member Functions

 KoTextCommand (KoTextObject *textobj, const TQString &name)
 
virtual void execute ()
 
virtual void unexecute ()
 
- Public Member Functions inherited from KNamedCommand
virtual TQString name () const
 
void setName (const TQString &name)
 

Protected Attributes

KoTextObject * m_textobj
 

Additional Inherited Members

- Protected Member Functions inherited from KNamedCommand
 KNamedCommand (const TQString &name)
 

Detailed Description

Wraps a KoTextDocCommand into a KCommand, for the UI In fact the KoTextDocCommand isn't even known from here.

When the UI orders execute or unexecute, we simply call undo/redo on the KoTextObject. Since one KCommand is created for each command there, the two simply map.

Definition at line 38 of file KoTextCommand.h.

Constructor & Destructor Documentation

◆ KoTextCommand()

KoTextCommand::KoTextCommand ( KoTextObject *  textobj,
const TQString &  name 
)
inline

Definition at line 41 of file KoTextCommand.h.

◆ ~KoTextCommand()

KoTextCommand::~KoTextCommand ( )
inline

Definition at line 43 of file KoTextCommand.h.

Member Function Documentation

◆ execute()

void KoTextCommand::execute ( )
virtual

Implements KCommand.

Definition at line 28 of file KoTextCommand.cpp.

◆ unexecute()

void KoTextCommand::unexecute ( )
virtual

Implements KCommand.

Definition at line 34 of file KoTextCommand.cpp.

Member Data Documentation

◆ m_textobj

KoTextObject* KoTextCommand::m_textobj
protected

Definition at line 49 of file KoTextCommand.h.


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