Class: MMomentaryTextCommandState

Declaration: TextMenusCore.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

MMomentaryControlState

Inherited By:

None.

Purpose:

Class that specifies the protocol applying text menu commands. This class is aware of text views and text commands.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Not intended for deriving.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

This is a mixin class and is not instantiated directly.

Member Function: MMomentaryTextCommandState::MMomentaryTextCommandState

MMomentaryTextCommandState (TTextView * viewToAlias, TCommandOn < MTextSelection > * command)

Interface Category:

API.

Purpose:

Constructor that takes text view to alias and text command to alias.

Calling Context:

Called by Text Editing Framework. Typically not called directly by clients.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: MMomentaryTextCommandState::~MMomentaryTextCommandState

~ MMomentaryTextCommandState ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Called to destroy an object. Typically not called directly by clients.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: MMomentaryTextCommandState::Select

virtual void Select ()

Interface Category:

API.

Purpose:

Defines the behavior of a command menu item being selected.

Calling Context:

Called by Text Editing Framework.

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.