OpClone Class Reference

This class represents the Clone operation. When executed this operation makes a copy of all selected objects, leaving the new objects on top of the existing objects. More...

#include <cutop.h>

Inheritance diagram for OpClone:

CarbonCopyOp SelOperation UndoableOperation Operation MessageHandler ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 OpClone ()
 OpClone constructor.
virtual void Do (OpDescriptor *)
 Performs the Clone operation, duplicates are placed as Last children of their layer.

Static Public Member Functions

static BOOL Init ()
 OpClone initialiser method.
static OpState GetState (String_256 *, OpDescriptor *)
 For finding the operations state.

Detailed Description

This class represents the Clone operation. When executed this operation makes a copy of all selected objects, leaving the new objects on top of the existing objects.

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

Definition at line 396 of file cutop.h.


Constructor & Destructor Documentation

OpClone::OpClone  ) 
 

OpClone constructor.

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

Errors: -

See also:
CarbonCopyOp

Definition at line 2367 of file cutop.cpp.

02367                 : CarbonCopyOp()                                
02368 {                              
02369 }


Member Function Documentation

void OpClone::Do OpDescriptor  )  [virtual]
 

Performs the Clone operation, duplicates are placed as Last children of their layer.

Author:
Peter_Arnold (Xara Group Ltd) <camelotdev@xara.com>
Date:
18/11/94
Parameters:
OpDescriptor (unused) [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
CarbonCopyOp::DoProcessing

Reimplemented from Operation.

Definition at line 2452 of file cutop.cpp.

02453 {   
02454     //Graham 25/6/96: Now you pass a matrix to transform by instead of parameters
02455     //to translate by. We don't want to transform our copy at all - so create
02456     //an Identity matrix to pass
02457     
02458     Trans2DMatrix MatrixToPass; 
02459     
02460     DoProcessing(MatrixToPass);
02461 }   

OpState OpClone::GetState String_256 UIDescription,
OpDescriptor Bob
[static]
 

For finding the operations state.

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
Date:
22/5/95
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
The state of the OpClone

Errors: -

See also:
-

Reimplemented from CarbonCopyOp.

Definition at line 2426 of file cutop.cpp.

02427 {
02428     OpState OpSt;
02429 
02430     SetCutOpText(UIDescription, _R(IDS_CLIPBOARD_PRECLONE));
02431 
02432     return(OpSt);   
02433 }

BOOL OpClone::Init void   )  [static]
 

OpClone initialiser method.

Author:
Peter_Arnold (Xara Group Ltd) <camelotdev@xara.com>
Date:
18/11/94
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
TRUE if the operation could be successfully initialised FALSE if no more memory could be allocated

Errors: ERROR will be called if there was insufficient memory to allocate the operation.

See also:
-

Reimplemented from SimpleCCObject.

Definition at line 2390 of file cutop.cpp.

02391 {
02392     return  (RegisterOpDescriptor(0,
02393                                 _R(IDS_CLONEOP),
02394                                 CC_RUNTIME_CLASS(OpClone),
02395                                 OPTOKEN_CLONE,
02396                                 OpClone::GetState,
02397                                 0,  /* help ID */
02398                                 _R(IDBBL_CLONE),
02399                                 _R(IDD_BARCONTROLSTORE),        // resource ID
02400                                 _R(IDC_CLONE),
02401                                 SYSTEMBAR_EDIT,             // Bar ID
02402                                 TRUE,                       // Receive messages
02403                                 FALSE,
02404                                 FALSE,
02405                                 0,
02406                                 (GREY_WHEN_NO_CURRENT_DOC | GREY_WHEN_NO_SELECTION) ));
02407 }


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