OpRemoveFloater Class Reference

This is the operation that the line tool uses to remove the floating endpoint in an undoable kind of way. More...

#include <opbezier.h>

Inheritance diagram for OpRemoveFloater:

UndoableOperation Operation MessageHandler ListItem CCObject SimpleCCObject List of all members.

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)

Detailed Description

This is the operation that the line tool uses to remove the floating endpoint in an undoable kind of way.

Author:
Peter_Arnold (Xara Group Ltd) <camelotdev@xara.com>
Date:
06/12/94

Definition at line 182 of file opbezier.h.


Constructor & Destructor Documentation

OpRemoveFloater::OpRemoveFloater  ) 
 

Constructor. Currently does nothing.

Author:
Peter_Arnold (Xara Group Ltd) <camelotdev@xara.com>
Date:
06/12/94

Definition at line 1021 of file opbezier.cpp.

01022 {
01023 }


Member Function Documentation

OpRemoveFloater::CC_DECLARE_DYNCREATE OpRemoveFloater   )  [private]
 

BOOL OpRemoveFloater::Declare  )  [static]
 

Adds the operation to the list of all known operations.

Author:
Peter_Arnold (Xara Group Ltd) <camelotdev@xara.com>
Date:
06/12/94
Returns:
TRUE if all went OK, False otherwise

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 }

void OpRemoveFloater::DoWithParam OpDescriptor pOpDesc,
OpParam pOpParam
[virtual]
 

Performs the removal of the floating endpoint from the Line tool, creating undo actions.

Author:
Peter_Arnold (Xara Group Ltd) <camelotdev@xara.com>
Date:
06/12/94
Parameters:
pOpDesc - pointer to the OpDescriptor for the operation [INPUTS] pOpParam - pointer to the operations parameter object
Returns:
-

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 }

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

Find out the state of the operation at the specific time.

Author:
Peter_Arnold (Xara Group Ltd) <camelotdev@xara.com>
Date:
06/12/94
Parameters:
- [OUTPUTS]
Returns:
-

Definition at line 1039 of file opbezier.cpp.

01040 {
01041     OpState Blobby;
01042     
01043     return Blobby;
01044 }


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