#include <opbezier.h>
Inheritance diagram for OpRemoveFloater:
Public Member Functions | |
OpRemoveFloater () | |
Constructor. Currently does nothing. | |
void | DoWithParam (OpDescriptor *, OpParam *pOpParam) |
Performs the removal of the floating endpoint from the Line tool, creating undo actions. | |
Static Public Member Functions | |
static BOOL | Declare () |
Adds the operation to the list of all known operations. | |
static OpState | GetState (String_256 *Description, OpDescriptor *) |
Find out the state of the operation at the specific time. | |
Private Member Functions | |
CC_DECLARE_DYNCREATE (OpRemoveFloater) |
Definition at line 182 of file opbezier.h.
|
Constructor. Currently does nothing.
Definition at line 1021 of file opbezier.cpp.
|
|
|
|
Adds the operation to the list of all known operations.
Definition at line 1059 of file opbezier.cpp. 01060 { 01061 return (RegisterOpDescriptor( 0, 01062 _R(IDS_NODEPATH_EDIT), 01063 CC_RUNTIME_CLASS(OpRemoveFloater), 01064 OPTOKEN_REMOVEFLOATER, 01065 OpRemoveFloater::GetState)); 01066 }
|
|
Performs the removal of the floating endpoint from the Line tool, creating undo actions.
Reimplemented from Operation. Definition at line 1084 of file opbezier.cpp. 01085 { 01086 InsertFloaterParam* Params = (InsertFloaterParam*)pOpParam; 01087 01088 if (Params->pOpWorkingDocument != NULL) 01089 { 01090 pOurDoc = Params->pOpWorkingDocument; 01091 pOurView = NULL; 01092 } 01093 01094 // Create an undo action for this operation 01095 DocCoord OldPos; 01096 Spread* OldpSpread; 01097 Document* OldpDoc; 01098 01099 if (Params->pTool->GetMoveTo(&OldpSpread, &OldPos, &OldpDoc)) 01100 { 01101 if (!InsertFloaterAction::DoInsert(this, &UndoActions, Params->pTool, &OldPos, OldpSpread)) 01102 { 01103 FailAndExecute(); 01104 } 01105 } 01106 01107 // and now perform the operation 01108 Params->pTool->ClearMoveTo(); 01109 01110 End(); 01111 }
|
|
Find out the state of the operation at the specific time.
Definition at line 1039 of file opbezier.cpp. 01040 { 01041 OpState Blobby; 01042 01043 return Blobby; 01044 }
|