#include <guides.h>
Inheritance diagram for OpDeleteGuideline:
Public Member Functions | |
OpDeleteGuideline () | |
Default constructor. | |
~OpDeleteGuideline () | |
Default destructor. | |
virtual void | Do (OpDescriptor *pOpDesc) |
Creates then opens the dialog. | |
Static Public Member Functions | |
static OpState | GetState (String_256 *Description, OpDescriptor *) |
Func for determining the usability of this op. | |
static void | SetGuideline (NodeGuideline *pThisGuideline) |
Static Protected Attributes | |
static NodeGuideline * | pGuideline = NULL |
Private Member Functions | |
CC_DECLARE_DYNCREATE (OpDeleteGuideline) |
Definition at line 349 of file guides.h.
|
Default constructor.
Definition at line 2242 of file guides.cpp.
|
|
Default destructor.
Definition at line 2261 of file guides.cpp.
|
|
|
|
Creates then opens the dialog.
Reimplemented from Operation. Definition at line 2280 of file guides.cpp. 02281 { 02282 BOOL ok = FALSE; 02283 02284 Spread* pSpread = Document::GetSelectedSpread(); 02285 02286 if (pGuideline != NULL) 02287 ok = DoDeleteGuideline(pGuideline); 02288 02289 if (!ok) 02290 FailAndExecute(); 02291 else 02292 BroadcastGuidelineChanges(pSpread->FindFirstGuideLayer()); 02293 02294 pGuideline = NULL; 02295 02296 End(); 02297 }
|
|
Func for determining the usability of this op.
Reimplemented from OpGuideline. Definition at line 2314 of file guides.cpp. 02315 { 02316 OpState State; 02317 02318 State.Greyed = (pGuideline == NULL); 02319 02320 return State; 02321 }
|
|
Definition at line 366 of file guides.h. 00366 { pGuideline = pThisGuideline; }
|
|
|