Class: TAdoptCanvasGraphicCmd

Declaration: CanvasCoreCommands.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TCommandOn

Inherited By:

None.

Purpose:

A command to adopt a canvas graphic into the canvas representation associated with the canvas selection to which the command is bound.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Intended to be used as is, but can also be derived.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TAdoptCanvasGraphicCmd::TAdoptCanvasGraphicCmd

  1. TAdoptCanvasGraphicCmd ()
  2. TAdoptCanvasGraphicCmd (MCanvasGraphic * adoptGraphic, bool adoptAtFront =true)
  3. TAdoptCanvasGraphicCmd (const TAdoptCanvasGraphicCmd &)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Constructor to create from a canvas graphic to adopt.
  3. Copy constructor.

Calling Context:

  1. Called by the stream-in operators.
  2. Called to create a new command.
  3. Called to copy a command.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TAdoptCanvasGraphicCmd::~TAdoptCanvasGraphicCmd

virtual ~ TAdoptCanvasGraphicCmd ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Called to destroy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TAdoptCanvasGraphicCmd::operator>>=

virtual TStream & operator >>=(TStream &) const

Interface Category:

API.

Purpose:

Stream-out operator.

Calling Context:

Called to stream out data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself out to.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TAdoptCanvasGraphicCmd::operator<<=

virtual TStream & operator <<= (TStream &)

Interface Category:

API.

Purpose:

Stream-in operator.

Calling Context:

Called to stream in data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself in from.

Exceptions:

Throws a TStandardException(kStreamBadVersion,0) when streaming in a version other than kOriginalVersion. Passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TAdoptCanvasGraphicCmd::operator=

TAdoptCanvasGraphicCmd & operator =(const TAdoptCanvasGraphicCmd &)

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

Called when an object is assigned to another compatible object.

Parameters:

Return Value:

A non-const reference to the left-hand side object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TAdoptCanvasGraphicCmd::HandleDoBegin

virtual void HandleDoBegin (MCanvasSelection &)

Interface Category:

API.

Purpose:

Adopts a canvas graphic into the representation associated with the target selection.

Calling Context:

Called by TCommandOn< MCanvasSelection >::Do and TCommandOn< MCanvasSelection >::DoBegin.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TAdoptCanvasGraphicCmd::HandleUndo

virtual void HandleUndo (MCanvasSelection &)

Interface Category:

API.

Purpose:

Undoes the affects of HandleDoBegin.

Calling Context:

Called by TCommandOn<MCanvasSelection>::Undo.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TAdoptCanvasGraphicCmd::HandleRedo

virtual void HandleRedo (MCanvasSelection &)

Interface Category:

API.

Purpose:

Redoes the affects of HandleDoBegin.

Calling Context:

Called by TCommandOn<MCanvasSelection>::Redo.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.