Class: TGUIDocumentComponentCommandBindingTo

Declaration: GUICompoundDocumentCommand.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TDocumentComponentCommandBindingTo, MGUIDocumentComponentCommandBinding

Inherited By:

None.

Purpose:

TGUIDocumentComponentCommandBindingTo derives from TDocumentComponentCommandBindingTo and MGUIDocumentComponentCommandBinding and generates a concrete template class that should be used to bind a command and a selection for execution by the document. TGUIDocumentComponentCommandBindingTo adds a name label, and current selection update support to TDocumentComponentCommandBindingTo.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

None provided.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TGUIDocumentComponentCommandBindingTo::TGUIDocumentComponentCommandBindingTo

  1. TGUIDocumentComponentCommandBindingTo ()
  2. TGUIDocumentComponentCommandBindingTo (TCommandOn < ATarget > * adoptCommand, ATarget * adoptTarget, const TGUIBundle & guiBundle, const TText & name)
  3. TGUIDocumentComponentCommandBindingTo (TCommandOn < ATarget > * adoptCommand, ATarget * adoptTarget, const TGUIBundle & guiBundle, TLabel * nameLabelToAdopt)
  4. TGUIDocumentComponentCommandBindingTo (TCommandOn < ATarget > * adoptCommand, const TModelAnchorReference &, const TGUIBundle & guiBundle, TLabel * nameLabelToAdopt, EAnchorUse =kUseSelection)
  5. TGUIDocumentComponentCommandBindingTo (const TGUIDocumentComponentCommandBindingTo < ATarget > &)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Constructs a binding with a specific command, selection target and label.
  3. Constructs a binding with a specific command, selection target and label.
  4. Constructs a binding with a specific command, anchor target and label.
  5. Copy constructor.

Calling Context:

  1. Called by the stream-in operators.
  2. Called to construct new command binding.
  3. Called to construct new command binding.
  4. Called to construct new command binding.
  5. Called to copy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TGUIDocumentComponentCommandBindingTo::~TGUIDocumentComponentCommandBindingTo

virtual ~ TGUIDocumentComponentCommandBindingTo ()

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: TGUIDocumentComponentCommandBindingTo::operator=

TGUIDocumentComponentCommandBindingTo < ATarget > & operator =(const TGUIDocumentComponentCommandBindingTo < ATarget > &)

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

Call this function by using the operator in an assignment statement.

Parameters:

Return Value:

Returns a 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: TGUIDocumentComponentCommandBindingTo::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: TGUIDocumentComponentCommandBindingTo::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 TInvalidVersionError if the version of the object on the stream is unknown to the version of the shared library installed.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TGUIDocumentComponentCommandBindingTo::HandleGetModelSelection

  1. virtual TModelSelection * HandleGetModelSelection ()
  2. virtual const TModelSelection * HandleGetModelSelection () const

Interface Category:

API.

Purpose:

  1. Handles the retrieval of the bound model selection.
  2. Handles the retrieval of the bound model selection.

Calling Context:

  1. Called from GetModelSelection.
  2. Called from GetModelSelection.

Parameters:

Return Value:

Returns the bound model selection.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

This function overrides MGUIDocumentComponentCommandBinding pure virtual function of the same name.

Member Function: TGUIDocumentComponentCommandBindingTo::HandleGetPresenterStateSelection

  1. virtual TPresenterStateSelection * HandleGetPresenterStateSelection ()
  2. virtual const TPresenterStateSelection * HandleGetPresenterStateSelection () const

Interface Category:

API.

Purpose:

  1. Handles the retrieval of the bound presenter state selection.
  2. Handles the retrieval of the bound presenter state selection.

Calling Context:

  1. Called from GetPresenterStateSelection.
  2. Called from GetPresenterStateSelection.

Parameters:

Return Value:

Returns the bound presenter state selection.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

This function overrides MGUIDocumentComponentCommandBinding pure virtual function of the same name.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.