4 class wxPlCommand : public wxCommand
6 WXPLI_DECLARE_DYNAMIC_CLASS( wxPlCommand );
7 WXPLI_DECLARE_V_CBACK();
9 wxPlCommand( const char* package, bool canUndoIt, const wxString& name );
11 bool base_CanUndo() const
12 { return wxCommand::CanUndo(); }
14 DEC_V_CBACK_BOOL__VOID( Do );
15 DEC_V_CBACK_BOOL__VOID( Undo );
16 DEC_V_CBACK_BOOL__VOID_const( CanUndo );
19 inline wxPlCommand::wxPlCommand( const char* package,
20 bool canUndoIt, const wxString& name )
21 : wxCommand( canUndoIt, name ),
22 m_callback( "Wx::Command" )
24 m_callback.SetSelf( wxPli_make_object( this, package ), true );
27 DEF_V_CBACK_BOOL__VOID_pure( wxPlCommand, wxCommand, Do );
28 DEF_V_CBACK_BOOL__VOID_pure( wxPlCommand, wxCommand, Undo );
29 DEF_V_CBACK_BOOL__VOID_const( wxPlCommand, wxCommand, CanUndo );
31 WXPLI_IMPLEMENT_DYNAMIC_CLASS( wxPlCommand, wxCommand );