OpenASIP
2.0
|
#include <PrintCmd.hh>
Public Member Functions | |
PrintCmd () | |
virtual | ~PrintCmd () |
virtual bool | Do () |
virtual int | id () const |
virtual PrintCmd * | create () const |
virtual std::string | icon () const |
virtual bool | isEnabled () |
Public Member Functions inherited from EditorCommand | |
EditorCommand (std::string name, wxWindow *parent=NULL) | |
virtual | ~EditorCommand () |
void | setView (wxView *view) |
wxView * | view () const |
Public Member Functions inherited from GUICommand | |
GUICommand (std::string name, wxWindow *parent) | |
virtual | ~GUICommand () |
virtual bool | isChecked () const |
virtual std::string | shortName () const |
void | setParentWindow (wxWindow *view) |
wxWindow * | parentWindow () const |
std::string | name () const |
EditorCommand for printing documents.
Definition at line 41 of file PrintCmd.hh.
PrintCmd::PrintCmd | ( | ) |
|
virtual |
|
virtual |
Creates and returns a new instance of this command.
Implements GUICommand.
Definition at line 131 of file PrintCmd.cc.
References PrintCmd().
|
virtual |
Executes the command.
If the wxWidgets printing framework was not compiled in the wxWidgets library, printing is not possible. An error message will be displayed instead of printing.
Implements GUICommand.
Definition at line 70 of file PrintCmd.cc.
References GUICommand::parentWindow(), and EditorCommand::view().
|
virtual |
Returns path to the command's icon file.
Reimplemented from EditorCommand.
Definition at line 142 of file PrintCmd.cc.
References ProDeConstants::CMD_ICON_PRINT.
|
virtual |
Return id of this command.
Implements GUICommand.
Definition at line 120 of file PrintCmd.cc.
References ProDeConstants::COMMAND_PRINT.
|
virtual |
Returns true when command is executable, false when not.
This command is executable when a document is open.
Reimplemented from EditorCommand.
Definition at line 155 of file PrintCmd.cc.