OpDeleteGuideline Class Reference

Allows guides to be Deleted. More...

#include <guides.h>

Inheritance diagram for OpDeleteGuideline:

OpGuideline UndoableOperation Operation MessageHandler ListItem CCObject SimpleCCObject List of all members.

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 NodeGuidelinepGuideline = NULL

Private Member Functions

 CC_DECLARE_DYNCREATE (OpDeleteGuideline)

Detailed Description

Allows guides to be Deleted.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
5/10/95

Definition at line 349 of file guides.h.


Constructor & Destructor Documentation

OpDeleteGuideline::OpDeleteGuideline  ) 
 

Default constructor.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
5/10/95
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-
See also:
UndoableOperation

Definition at line 2242 of file guides.cpp.

02243 {
02244     UndoIDS = _R(IDS_OPDELETEGUIDELINE);
02245 }

OpDeleteGuideline::~OpDeleteGuideline  ) 
 

Default destructor.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
5/10/95
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-
See also:
UndoableOperation

Definition at line 2261 of file guides.cpp.

02262 {
02263 }


Member Function Documentation

OpDeleteGuideline::CC_DECLARE_DYNCREATE OpDeleteGuideline   )  [private]
 

void OpDeleteGuideline::Do OpDescriptor pOpDesc  )  [virtual]
 

Creates then opens the dialog.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
5/10/95
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

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 }

OpState OpDeleteGuideline::GetState String_256 Description,
OpDescriptor
[static]
 

Func for determining the usability of this op.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
5/10/95
Parameters:
Description = ptr to place description of why this op can't happen [INPUTS] pOpDesc = ptr to the Op Desc associated with this op
- [OUTPUTS]
Returns:
An OpState object
See also:
-

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 }

static void OpDeleteGuideline::SetGuideline NodeGuideline pThisGuideline  )  [inline, static]
 

Definition at line 366 of file guides.h.

00366 { pGuideline = pThisGuideline; }


Member Data Documentation

NodeGuideline * OpDeleteGuideline::pGuideline = NULL [static, protected]
 

Definition at line 369 of file guides.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:57:53 2007 for Camelot by  doxygen 1.4.4