#include </home/zeitlin/src/wx/github/interface/wx/richtext/richtextbuffer.h>
Inheritance diagram for wxRichTextCommand:Implements a command on the undo/redo stack.
A wxRichTextCommand object contains one or more wxRichTextAction objects, allowing aggregation of a number of operations into one command.
Public Member Functions | |
| wxRichTextCommand (const wxString &name, wxRichTextCommandId id, wxRichTextBuffer *buffer, wxRichTextParagraphLayoutBox *container, wxRichTextCtrl *ctrl, bool ignoreFirstTime=false) | |
| Constructor for one action. | |
| wxRichTextCommand (const wxString &name) | |
| Constructor for multiple actions. | |
| virtual | ~wxRichTextCommand () |
| bool | Do () |
| Performs the command. | |
| bool | Undo () |
| Undoes the command. | |
| void | AddAction (wxRichTextAction *action) |
| Adds an action to the action list. | |
| void | ClearActions () |
| Clears the action list. | |
| wxList & | GetActions () |
| Returns the action list. | |
Protected Attributes | |
| wxList | m_actions |
| wxRichTextCommand::wxRichTextCommand | ( | const wxString & | name, |
| wxRichTextCommandId | id, | ||
| wxRichTextBuffer * | buffer, | ||
| wxRichTextParagraphLayoutBox * | container, | ||
| wxRichTextCtrl * | ctrl, | ||
| bool | ignoreFirstTime = false |
||
| ) |
Constructor for one action.
| wxRichTextCommand::wxRichTextCommand | ( | const wxString & | name | ) |
Constructor for multiple actions.
| virtual wxRichTextCommand::~wxRichTextCommand | ( | ) | [virtual] |
| void wxRichTextCommand::AddAction | ( | wxRichTextAction * | action | ) |
Adds an action to the action list.
| void wxRichTextCommand::ClearActions | ( | ) |
Clears the action list.
| bool wxRichTextCommand::Do | ( | ) | [virtual] |
Performs the command.
Implements wxCommand.
| wxList& wxRichTextCommand::GetActions | ( | ) | [inline] |
Returns the action list.
| bool wxRichTextCommand::Undo | ( | ) | [virtual] |
Undoes the command.
Implements wxCommand.
wxList wxRichTextCommand::m_actions [protected] |