#include <guides.h>
Inheritance diagram for OpNewGuideline:
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) |
Definition at line 409 of file guides.h.
|
Default constructor.
Definition at line 2334 of file guides.cpp.
|
|
Default destructor.
Definition at line 2348 of file guides.cpp.
|
|
|
|
sets up param block and invokes OpGuideline::DoWithParams()
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 }
|
|
Reimplemented from OpGuideline. Definition at line 2433 of file guides.cpp. 02434 { 02435 return OpState(); 02436 }
|
|
Initilise OpNewGuideline.
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 }
|
|
Definition at line 2415 of file guides.cpp. 02416 { 02417 NewGuidelineParam.Method = GUIDELINEOPMETHOD_NEW_IMMEDIATE; 02418 NewGuidelineParam.Type = Type; 02419 NewGuidelineParam.NewOrdinate = pos; 02420 }
|
|
|