Class: THighlightTextTool

Declaration: TextToolsCore.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TSimpleMouseTool

Inherited By:

None.

Purpose:

THighlightTextTool is a tool that sets the background fill color on text.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

This class is designed to be used directly.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: THighlightTextTool::THighlightTextTool

  1. THighlightTextTool ()
  2. THighlightTextTool (TColor * colorToAdopt)
  3. THighlightTextTool (const THighlightTextTool &)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Constructs a text tool with the specified background highlight color.
  3. Copy constructor.

Calling Context:

  1. Called by the Text Framework command classes. Typically not called directly by clients.
  2. Called by the Text Framework command classes. Typically not called directly by clients.
  3. Called by the Text Framework command classes. 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: THighlightTextTool::~THighlightTextTool

virtual ~ THighlightTextTool ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

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: THighlightTextTool::GetHighlightColor

virtual void GetHighlightColor (TColor & color) const

Interface Category:

API.

Purpose:

Accessor that returns the tool's current highlight color.

Calling Context:

Called by the Text Framework command classes. 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: THighlightTextTool::SetHighlightColor

virtual void SetHighlightColor (const TColor & color)

Interface Category:

API.

Purpose:

Sets the tool's background highlight color to the specified color.

Calling Context:

Called by the Text Framework command classes. 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: THighlightTextTool::operator=

THighlightTextTool & operator =(const THighlightTextTool &)

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

Called by the Text Framework command classes. Typically not called directly by clients.

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:

Overrides inherited MCollectible function.

Member Function: THighlightTextTool::operator>>=

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

Interface Category:

API.

Purpose:

Stream-out operator.

Calling Context:

Called by the Text Framework command classes. Typically not called directly by clients.

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:

Overrides inherited MCollectible function.

Member Function: THighlightTextTool::operator<<=

virtual TStream & operator <<= (TStream &)

Interface Category:

API.

Purpose:

Stream-in operator.

Calling Context:

Called by the Text Framework command classes. Typically not called directly by clients.

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:

Overrides inherited MCollectible function.

Member Function: THighlightTextTool::GetPaletteText

virtual void GetPaletteText (TText &) const

Interface Category:

API.

Purpose:

Returns text representing name of tool. For example Hilight tool.

Calling Context:

Called by the Text Framework command classes. Typically not called directly by clients.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

Overrides inherited TTool function.

Member Function: THighlightTextTool::CreatePaletteGraphic

virtual MGraphic * CreatePaletteGraphic () const

Interface Category:

API.

Purpose:

Returns NIL for the palette graphic.

Calling Context:

Called by the Text Framework command classes. Typically not called directly by clients.

Parameters:

Return Value:

NIL.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

Overrides inherited TTool function.

Member Function: THighlightTextTool::CreateCursorGraphic

virtual MGraphic * CreateCursorGraphic () const

Interface Category:

API.

Purpose:

Creates and returns a shape for the cursor graphic.

Calling Context:

Called by the Text Framework command classes. Typically not called directly by clients.

Parameters:

Return Value:

A pointer to a graphic with highlight pen shape.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

Overrides inherited TTool function.

Member Function: THighlightTextTool::CreateInteractor

virtual TToolInteractor * CreateInteractor (MToolTarget* adoptTarget) const

Interface Category:

API.

Purpose:

Creates and returns a pointer to a THighlightTextToolInteractor if the target is a TTextToolInteractionTarget. Otherwise returns NIL.

Calling Context:

Called by the Text Framework command classes. Typically not called directly by clients.

Parameters:

Return Value:

A pointer to a THighlightTextToolInteractor if the target is a TTextToolInteractionTarget. Otherwise returns NIL.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

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