Class: TStrikethroughStyle

Declaration: LineLayoutStyles.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TLineStyle

Inherited By:

None.

Purpose:

Derived from TLineStyle, controls the placement and thickness of a strikeout line. Units are assumed to be fractions of a point (approximately: 1/72 of an inch). A TStrikethroughStyle is positioned relative to the x-height and baseline of the text. An offset factor of -1 positions the strikethrough on the x-height, and an offset factor of 1 on the baseline. See the description of TLineStyle for more information.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Derive classes to provide different forms of strike-outs (red-lining).

Concurrency:

Multithread safe.

Resource Use:

No special requirements.

Member Function: TStrikethroughStyle::TStrikethroughStyle

  1. TStrikethroughStyle ()
  2. TStrikethroughStyle (const TStrikethroughStyle &)
  3. TStrikethroughStyle (GCoordinate offsetFromBaseline, GCoordinate thickness, bool coverSpaces =true, bool useCharacterBaseline =false)
  4. TStrikethroughStyle (const TAttributeState & paint, GCoordinate offsetFromBaseline, GCoordinate thickness, bool coverSpaces =true, bool useCharacterBaseline =false)
  5. TStrikethroughStyle (GCoordinate offsetIncrement, GCoordinate offsetFactor, GCoordinate thicknessIncrement, GCoordinate thicknessFactor, bool coverSpaces =true, bool useCharacterBaseline =false)
  6. TStrikethroughStyle (const TAttributeState & paint, GCoordinate offsetIncrement, GCoordinate offsetFactor, GCoordinate thicknessIncrement, GCoordinate thicknessFactor, bool coverSpaces =true, bool useCharacterBaseline =false)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Copy constructor.
  3. Constructs a style object with specific values.
  4. Constructs a style object with specific values.
  5. Constructs a style object with specific values.
  6. Constructs a style object with specific values.

Calling Context:

  1. Called by the stream-in operators and anyone who wants to create a strikethrough style with default color (black), thickness (factor 0, increment 1) and offset (factor 0, increment 0). This puts a black strikethrough, one pixel thick, halfway between the text's x-height and baseline. The coverSpaces flag is set to true and the useCharacterBaseline flag to false.
  2. Called to copy an object.
  3. Call to construct a style object with specific values.
  4. Call to construct a style object with specific values.
  5. Call to construct a style object with specific values.
  6. Call to construct a style object with specific values.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TStrikethroughStyle::GetName

virtual const TStyleName & GetName () const

Interface Category:

API.

Purpose:

Returns the style's internal name. This is not necessarily the class name. For example, there are related underlining styles that are each separate derived classes. However, because they are mutually exclusive, they share the same internal name.

Calling Context:

Called when the name associated with an object is needed; for example, when comparing objects.

Parameters:

Return Value:

The TToken for the associated name.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TStrikethroughStyle::operator<<=

virtual TStream & operator <<= (TStream & fromWhere)

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:

Multithread safe.

Other Considerations:

None.

Member Function: TStrikethroughStyle::operator>>=

virtual TStream & operator >>=(TStream & toWhere) 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:

Multithread safe.

Other Considerations:

None.

Member Function: TStrikethroughStyle::~TStrikethroughStyle

virtual ~ TStrikethroughStyle ()

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:

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.