Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: txtfrmat.h
Link against: etext.lib

Class TParaFormatMask

TParaFormatMask

Support

Supported from 5.0

Description

Used in conjunction with an object of class CParaFormat to mask the paragraph format attributes which are involved when setting and sensing paragraph formatting. When setting formatting, only the attributes which are set in the mask should participate in the relevant function. When sensing formatting, on return, the mask indicates which attributes were sensed from the format layer, and were not taken from the default values.

Defined in TParaFormatMask:
AttribIsSet(), ClearAll(), ClearAttrib(), IsNull(), SetAll(), SetAttrib(), TParaFormatMask(), operator!=(), operator==()


Construction


TParaFormatMask()

TParaFormatMask();

Description

The default C++ constructor constructs a paragraph format mask, initialising all bits to zero.

[Top]


Modifiers


SetAttrib()

void SetAttrib(TTextFormatAttribute aAttribute);

Description

Sets a single attribute flag in the paragraph format mask.

Parameters

TTextFormatAttribute aAttribute

The attribute flag to set.


ClearAttrib()

void ClearAttrib(TTextFormatAttribute aAttribute);

Description

Clears a single attribute flag in the paragraph format mask.

Parameters

TTextFormatAttribute aAttribute

The attribute flag to clear.


SetAll()

void SetAll();

Description

Sets all attribute flags in the paragraph format mask.


ClearAll()

void ClearAll();

Description

Clears all attribute flags in the paragraph format mask.

[Top]


Enquiry


AttribIsSet()

TBool AttribIsSet(TTextFormatAttribute aAttribute)const;

Description

Tests whether an attribute flag is set.

Parameters

TTextFormatAttribute aAttribute

The paragraph format attribute to test for.

Return value

TBool

ETrue if the flag is set, EFalse if not.


IsNull()

TBool IsNull()const;

Description

Tests whether the mask is NULL, indicating that no flags have been set.

Return value

TBool

ETrue if mask is NULL, EFalse if not NULL.

[Top]


Overloaded operators


operator==()

TBool operator==(const TParaFormatMask& aMask)const;

Description

Compares two paragraph format masks for equality.

Parameters

const TParaFormatMask& aMask

The mask to compare.

Return value

TBool

ETrue if all flags are the same in both masks. EFalse if any differ.


operator!=()

TBool operator!=(const TParaFormatMask& aMask)const;

Description

Compares two paragraph format masks for inequality.

Parameters

const TParaFormatMask& aMask

The mask to compare.

Return value

TBool

ETrue if any flags are different. EFalse if all flags are the same.