Class: TTextActionControlState

Declaration: TextControlActions.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

MTextControlState, MControlActionState

Inherited By:

None.

Purpose:

Generates actions when text control state is modified.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

None.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TTextActionControlState::TTextActionControlState

  1. TTextActionControlState (TViewHandle textControl, const TSemanticActionType & message =TStandardActions :: kDefaultMessage)
  2. TTextActionControlState (const TText & initialText, TViewHandle textControl, const TSemanticActionType & message =TStandardActions :: kDefaultMessage)
  3. TTextActionControlState (const TTextActionControlState &)
  4. TTextActionControlState ()

Interface Category:

API.

Purpose:

  1. Constructs an instance with empty contents.
  2. Constructs an instance with non-empty initial contents.
  3. Copy constructor.
  4. Default constructor.

Calling Context:

  1. Called to construct an empty text control state, which can then be adopted into a TTextControl instance.
  2. Called to construct a text control state with initial contents.
  3. Called to copy an object.
  4. Called by the stream-in operators and when the required parameters for the first two constructor forms are not available.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TTextActionControlState::~TTextActionControlState

virtual ~ TTextActionControlState ()

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

TTextActionControlState & operator =(const TTextActionControlState &)

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: TTextActionControlState::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: TTextActionControlState::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 no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TTextActionControlState::HandleTextChanged

virtual void HandleTextChanged (const TNotification &)

Interface Category:

API.

Purpose:

Generates actions when the state of the text control changes. Will generate a TTextControlAction::kEmpty when the text becomes empty, and a TTextControlAction::kNotEmpty when the text contents become non-empty.

Calling Context:

Called via a TMemberFunctionConnectionTo.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TTextActionControlState::InternalGetTextRepresentation

virtual MTextRepresentation * InternalGetTextRepresentation () const

Interface Category:

API.

Purpose:

Gets the text representation associated with this control state.

Calling Context:

Called by Text Editing Framework. Not called directly by clients.

Parameters:

Return Value:

Returns a pointer to MTextRepresentation class.

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.