Class: TDistributionFlags

Declaration: JustificationTables.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

None.

Inherited By:

None.

Purpose:

Controls stretching and shrinking parameters for the distribution of white space during text justification.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Do not derive unless you are implementing your own version of Line Layout.

Concurrency:

Multithread safe.

Resource Use:

No special requirements.

Member Function: TDistributionFlags::SetPriority

void SetPriority (DistributionPriority)

Interface Category:

API.

Purpose:

Sets the priority for distributing white space during justification.

Calling Context:

Called to set the priority for distributing white space during justification

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TDistributionFlags::SetUnlimited

void SetUnlimited (bool)

Interface Category:

API.

Purpose:

Sets the unlimited priority flag for justification.

Calling Context:

Indicates unlimited priority for justification, that is, to force all extra white space to be added in one place if true.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TDistributionFlags::SetOverrideUnlimited

void SetOverrideUnlimited (bool)

Interface Category:

API.

Purpose:

Sets the override unlimited flag for justification.

Calling Context:

Indicates the overriding of unlimited justification.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TDistributionFlags::SetOverrideLimits

void SetOverrideLimits (bool)

Interface Category:

API.

Purpose:

Sets the override limits flag for justification.

Calling Context:

Indicates whether justification limits are to be overridden.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TDistributionFlags::SetOverridePriority

void SetOverridePriority (bool)

Interface Category:

API.

Purpose:

Determines if distribution priority is to be overridden.

Calling Context:

Called to force the overriding of the distribution priority.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TDistributionFlags::GetPriority

DistributionPriority GetPriority ()

Interface Category:

API.

Purpose:

Returns the justification priority.

Calling Context:

Used to set the priority for justification.

Parameters:

Return Value:

DistributionPriority enum value indicating the currently set justification priority.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TDistributionFlags::GetUnlimited

bool GetUnlimited ()

Interface Category:

API.

Purpose:

Queries whether the Unlimited field is set to true.

Calling Context:

Used to determine if the Unlimited field is set to true.

Parameters:

Return Value:

Returns true if the Unlimited field is set to true.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TDistributionFlags::GetOverrideUnlimited

bool GetOverrideUnlimited ()

Interface Category:

API.

Purpose:

Queries whether the OverrideUnlimited field is set to true.

Calling Context:

Used to determine if the OverrideUnlimited field is set to true.

Parameters:

Return Value:

Returns true if the OverrideUnlimited field is set to true.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TDistributionFlags::GetOverrideLimits

bool GetOverrideLimits ()

Interface Category:

API.

Purpose:

Queries whether the OverrideLimits field is set to true.

Calling Context:

Used to determine whether the OverrideLimits field is set to true;

Parameters:

Return Value:

Returns true if the OverrideLimits field is set to true.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TDistributionFlags::GetOverridePriority

bool GetOverridePriority ()

Interface Category:

API.

Purpose:

Queries whether the OverridePriority field is set to true.

Calling Context:

Used to determine whether the OverridePriority field is set to true.

Parameters:

Return Value:

Returns true if the OverridePriority field is set to true.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TDistributionFlags::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: TDistributionFlags::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: TDistributionFlags::operator=

TDistributionFlags & operator =(const TDistributionFlags & x)

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:

Multithread safe.

Other Considerations:

None.

Member Function: TDistributionFlags::operator!=

bool operator != (const TDistributionFlags & x) const

Interface Category:

API.

Purpose:

Inequality operator.

Calling Context:

Call to compare two instances of this class.

Parameters:

Return Value:

Returns true if the objects are not equal.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TDistributionFlags::operator==

bool operator ==(const TDistributionFlags & x) const

Interface Category:

API.

Purpose:

Equality operator.

Calling Context:

Call to compare two objects of this class.

Parameters:

Return Value:

Returns true if the objects are equal.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TDistributionFlags::~TDistributionFlags

virtual ~ TDistributionFlags ()

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.

Member Function: TDistributionFlags::TDistributionFlags

  1. TDistributionFlags ()
  2. TDistributionFlags (const TDistributionFlags & x)
  3. TDistributionFlags (bool OverridePriority, bool OverrideLimits, bool OverrideUnlimited, bool Unlimited, DistributionPriority Priority)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Copy constructor.
  3. Constructor to use when instantiating with specific settings.

Calling Context:

  1. Called by the stream-in operators.
  2. Called to copy an object.
  3. Call to instantiate with specific settings.

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.