#include <opbezier.h>
Inheritance diagram for InsertFloaterAction:
Public Member Functions | |
InsertFloaterAction () | |
Constructor for the action to insert a floating endpoint. | |
~InsertFloaterAction () | |
virtual ActionCode | Execute () |
Inserts the floating endpoint into the Line Tool, creating an undo action to remove the endpoint. | |
Static Public Member Functions | |
static ActionCode | Init (Operation *pOp, ActionList *pActionList, Action **NewAction) |
This is the function which creates an instance of this action. If there is no room in the undo buffer (which is determined by the base class Init function called within) the function will either return AC_NO_RECORD which means the operation can continue, but no undo information needs to be stored, or AC_OK which means the operation should continue AND record undo information. If the function returns AC_FAIL, there was not enough memory to record the undo information, and the user has decided not to continue with the operation. | |
static ActionCode | DoInsert (Operation *pOp, ActionList *pActionList, BezierTool *pTool, DocCoord *pPoint, Spread *pSpread) |
This static function makes it a little easier to use this action. It creates an instance of this action and appends it to the action list. | |
Public Attributes | |
BezierTool * | pLineTool |
DocCoord | Point |
Spread * | pSpread |
Definition at line 259 of file opbezier.h.
|
Constructor for the action to insert a floating endpoint.
Definition at line 1133 of file opbezier.cpp.
|
|
Definition at line 1256 of file opbezier.cpp.
|
|
This static function makes it a little easier to use this action. It creates an instance of this action and appends it to the action list.
Definition at line 1198 of file opbezier.cpp. 01203 { 01204 InsertFloaterAction* RecAction = NULL; 01205 ActionCode Act = InsertFloaterAction::Init(pOp, pActionList, (Action**)&RecAction); 01206 if ( (Act == AC_OK) && (RecAction != NULL) ) 01207 { 01208 RecAction->pLineTool = pTool; 01209 RecAction->pSpread = pSpread; 01210 RecAction->Point = *pPoint; 01211 } 01212 return Act; 01213 }
|
|
Inserts the floating endpoint into the Line Tool, creating an undo action to remove the endpoint.
Reimplemented from Action. Definition at line 1232 of file opbezier.cpp. 01233 { 01234 ERROR3IF(pLineTool == NULL, "Pointer to line tool was NULL"); 01235 01236 RemoveFloaterAction* ReAction = NULL; 01237 ActionCode Act = AC_FAIL; 01238 01239 // Create a redo action for this action, which is a RemoveFloaterAction 01240 if (pLineTool != NULL) 01241 { 01242 Act = RemoveFloaterAction::Init(pOperation, 01243 pOppositeActLst, 01244 pLineTool, 01245 (Action**)(&ReAction)); 01246 if (Act == AC_FAIL) 01247 return AC_FAIL; 01248 01249 // Now do the actual action 01250 pLineTool->SetMoveTo(Point, pSpread, GetWorkingDoc()); 01251 } 01252 01253 return Act; 01254 }
|
|
This is the function which creates an instance of this action. If there is no room in the undo buffer (which is determined by the base class Init function called within) the function will either return AC_NO_RECORD which means the operation can continue, but no undo information needs to be stored, or AC_OK which means the operation should continue AND record undo information. If the function returns AC_FAIL, there was not enough memory to record the undo information, and the user has decided not to continue with the operation.
Definition at line 1166 of file opbezier.cpp. 01169 { 01170 UINT32 ActSize = sizeof(InsertFloaterAction); 01171 01172 ActionCode Ac = Action::Init( pOp, pActionList, ActSize, CC_RUNTIME_CLASS(InsertFloaterAction), NewAction); 01173 return Ac; 01174 }
|
|
Definition at line 277 of file opbezier.h. |
|
Definition at line 278 of file opbezier.h. |
|
Definition at line 279 of file opbezier.h. |