lib
Command Class Reference
Inheritance diagram for Command:

Detailed Description
Definition at line 78 of file kformulacommand.h.
Public Member Functions | |
Command (const QString &name, Container *document) | |
virtual | ~Command () |
Protected Member Functions | |
FormulaCursor * | getExecuteCursor () |
FormulaCursor * | getUnexecuteCursor () |
void | setUnexecuteCursor (FormulaCursor *cursor) |
FormulaCursor * | getActiveCursor () |
void | testDirty () |
Container * | getDocument () const |
Constructor & Destructor Documentation
Command::Command | ( | const QString & | name, | |
Container * | document | |||
) |
Sets up the command.
Be careful not to change the cursor in the constructor of any command. Each command must use the selection it finds when it is executed for the first time. This way you can use the KMacroCommand .
- Parameters:
-
name a description to be used as menu entry. document the container we are working for.
Definition at line 49 of file kformulacommand.cc.
Member Function Documentation
FormulaCursor* Command::getActiveCursor | ( | ) | [inline, protected] |
- Returns:
- the cursor that is active. It will be used to execute the command.
Definition at line 120 of file kformulacommand.h.
Container* Command::getDocument | ( | ) | const [inline, protected] |
FormulaCursor * Command::getExecuteCursor | ( | ) | [protected] |
- Returns:
- the cursor that is to be used to execute the command.
Definition at line 60 of file kformulacommand.cc.
FormulaCursor * Command::getUnexecuteCursor | ( | ) | [protected] |
- Returns:
- the cursor that is to be used to unexecute the command.
Definition at line 78 of file kformulacommand.cc.
void Command::setUnexecuteCursor | ( | FormulaCursor * | cursor | ) | [protected] |
Sets the cursor that is to be used to unexecute the command.
This has to be called by execute after the formula has been changed but before the cursor has been normalized.
Definition at line 86 of file kformulacommand.cc.
void Command::testDirty | ( | ) | [inline, protected] |
Tells the document to check if the formula changed.
Needs to be called by each execute and unexecute .
Definition at line 126 of file kformulacommand.h.
The documentation for this class was generated from the following files: