OpNewGuideline Class Reference

op to create a new guideline immendiately More...

#include <guides.h>

Inheritance diagram for OpNewGuideline:

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

Public Member Functions

 OpNewGuideline ()
 Default constructor.
 ~OpNewGuideline ()
 Default destructor.
virtual void Do (OpDescriptor *pOpDesc)
 sets up param block and invokes OpGuideline::DoWithParams()

Static Public Member Functions

static BOOL Init ()
 Initilise OpNewGuideline.
static OpState GetState (String_256 *pReasonGreyed, OpDescriptor *pOpDesc)
static void SetNewGuidelineParam (GuidelineType Type, MILLIPOINT pos)

Static Protected Attributes

static OpGuidelineParam NewGuidelineParam

Private Member Functions

 CC_DECLARE_DYNCREATE (OpNewGuideline)

Detailed Description

op to create a new guideline immendiately

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

Definition at line 409 of file guides.h.


Constructor & Destructor Documentation

OpNewGuideline::OpNewGuideline  ) 
 

Default constructor.

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

Definition at line 2334 of file guides.cpp.

02335 {
02336     UndoIDS = _R(IDS_OPNEWGUIDELINE2UNDO);
02337 }

OpNewGuideline::~OpNewGuideline  ) 
 

Default destructor.

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

Definition at line 2348 of file guides.cpp.

02349 {
02350 }


Member Function Documentation

OpNewGuideline::CC_DECLARE_DYNCREATE OpNewGuideline   )  [private]
 

void OpNewGuideline::Do OpDescriptor pOpDesc  )  [virtual]
 

sets up param block and invokes OpGuideline::DoWithParams()

Author:
Ed_Cornes (Xara Group Ltd) <camelotdev@xara.com>
Date:
9/10/95
Parameters:
pOpDesc - [INPUTS]

Reimplemented from Operation.

Definition at line 2386 of file guides.cpp.

02387 {
02388     Spread* pSpread = Document::GetSelectedSpread();
02389     if (pOpDesc!=NULL && pSpread!=NULL && NewGuidelineParam.Method==GUIDELINEOPMETHOD_NEW_IMMEDIATE)
02390     {
02391 //      GuidelineType Type     = NewGuidelineParam.Type;
02392         DocCoord      GuidePos = DocCoord(NewGuidelineParam.NewOrdinate, NewGuidelineParam.NewOrdinate);
02393         DoWithParam(pOpDesc,&NewGuidelineParam);
02394 
02395         NewGuidelineParam.Method = GUIDELINEOPMETHOD_INVALID;   // reset static param block
02396     }
02397     else
02398     {
02399         ERROR3("OpNewGuideline::Do() - invalid Method or pOpDesc==NULL or no selected spread");
02400         FailAndExecute();
02401         End();
02402     }
02403 }

OpState OpNewGuideline::GetState String_256 pReasonGreyed,
OpDescriptor pOpDesc
[static]
 

Author:
Ed_Cornes (Xara Group Ltd) <camelotdev@xara.com>
Date:
9/10/95
Parameters:
pOpDesc - [INPUTS]
pReasonGreyed - [OUTPUTS]
Returns:
An OpState object

Reimplemented from OpGuideline.

Definition at line 2433 of file guides.cpp.

02434 {
02435     return OpState();
02436 }

BOOL OpNewGuideline::Init void   )  [static]
 

Initilise OpNewGuideline.

Author:
Ed_Cornes (Xara Group Ltd) <camelotdev@xara.com>
Date:
10/10/95
Returns:
FALSE if fails

Reimplemented from OpGuideline.

Definition at line 2362 of file guides.cpp.

02363 {
02364     return  RegisterOpDescriptor(
02365                                 0, 
02366                                 _R(IDS_OPNEWGUIDELINE2),
02367                                 CC_RUNTIME_CLASS(OpNewGuideline), 
02368                                 OPTOKEN_NEWGUIDELINE2 ,
02369                                 OpNewGuideline::GetState,
02370                                 0,  /* help ID */
02371                                 0,  /* bubble ID */
02372                                 0   /* bitmap ID */
02373                                 );
02374 }

void OpNewGuideline::SetNewGuidelineParam GuidelineType  Type,
MILLIPOINT  pos
[static]
 

Author:
Ed_Cornes (Xara Group Ltd) <camelotdev@xara.com>
Date:
9/10/95
Parameters:
Type - type of guide (hoiz/vert) [INPUTS] Pos - positin of guide

Definition at line 2415 of file guides.cpp.


Member Data Documentation

OpGuidelineParam OpNewGuideline::NewGuidelineParam [static, protected]
 

Definition at line 427 of file guides.h.


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