Class: TShowLinksState

Declaration: LinkingCommands.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

MBooleanControlState

Inherited By:

None.

Purpose:

TShowLinksState derives from MBooleanControlState and maintains the state of a document presenter's links. If the state is true, all the data links will display the appropriate link feedback. Reference links display their feedback by default.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

None.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TShowLinksState::TShowLinksState

  1. TShowLinksState ()
  2. TShowLinksState (const TDocumentPresenterReference &)
  3. TShowLinksState (const TShowLinksState &)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Creates a new show link state for the specified document presenter reference.
  3. Copy constructor.

Calling Context:

  1. Called by the stream-in operators.
  2. Called by any client object.
  3. 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: TShowLinksState::~TShowLinksState

virtual ~ TShowLinksState ()

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: TShowLinksState::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: TShowLinksState::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: TShowLinksState::SetBooleanState

virtual void SetBooleanState (EBooleanState newState)

Interface Category:

API.

Purpose:

Sets the link state according to the specified flag.

Calling Context:

Called by any client object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TShowLinksState::IsEnabled

virtual bool IsEnabled () const

Interface Category:

API.

Purpose:

Returns whether or not this show link state is enabled.

Calling Context:

Called by any client object.

Parameters:

Return Value:

Returns true if this show link state is enabled.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TShowLinksState::GetDocumentPresenterReference

virtual TDocumentPresenterReference GetDocumentPresenterReference () const

Interface Category:

API.

Purpose:

Returns the document presenter reference for which this object maintains the show link state.

Calling Context:

Called by any client object.

Parameters:

Return Value:

Returns the document presenter reference for which this object maintains the show link state.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TShowLinksState::HideLinks

void HideLinks ()

Interface Category:

API.

Purpose:

Hides the document presenter's links.

Calling Context:

Called by any client object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TShowLinksState::ShowLinks

void ShowLinks ()

Interface Category:

API.

Purpose:

Shows the document presenter's links.

Calling Context:

Called by any client object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TShowLinksState::GetBooleanState

virtual MBooleanControlState :: EBooleanState GetBooleanState () const

Interface Category:

API.

Purpose:

Sets the link state according to the specified flag.

Calling Context:

Call this function directly.

Parameters:

Return Value:

The new state for this object.

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.