TParaFormatMask Class Reference

class TParaFormatMask

Masks the paragraph format attributes which are involved when setting and sensing paragraph formatting.

Used in conjunction with an object of class CParaFormat. When setting formatting, only the attributes which are set in the mask will 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.

Constructor & Destructor Documentation

TParaFormatMask()

TParaFormatMask()[inline]

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

Member Functions Documentation

AttribIsSet(TTextFormatAttribute)

TBool AttribIsSet(TTextFormatAttributeaAttribute)const [inline]

Tests whether an attribute flag is set.

ETrue if the flag is set, EFalse if not.

Parameters

TTextFormatAttribute aAttributeThe paragraph format attribute to test for.

ClearAll()

IMPORT_C voidClearAll()

ClearAttrib(TTextFormatAttribute)

voidClearAttrib(TTextFormatAttributeaAttribute)[inline]

Clears a single attribute flag in the paragraph format mask.

Parameters

TTextFormatAttribute aAttributeThe attribute flag to clear.

IsNull()

TBool IsNull()const [inline]

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

ETrue if mask is NULL, EFalse if not NULL.

SetAll()

IMPORT_C voidSetAll()

SetAttrib(TTextFormatAttribute)

voidSetAttrib(TTextFormatAttributeaAttribute)[inline]

Sets a single attribute flag in the paragraph format mask.

Parameters

TTextFormatAttribute aAttributeThe attribute flag to set.

operator!=(const TParaFormatMask &)

TBool operator!=(const TParaFormatMask &aMask)const [inline]

Compares two paragraph format masks for inequality.

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

Parameters

const TParaFormatMask & aMaskThe mask to compare.

operator==(const TParaFormatMask &)

IMPORT_C TBooloperator==(const TParaFormatMask &aMask)const

Parameters

const TParaFormatMask & aMask

Member Data Documentation

TUint32 iGuard

TUint32 iGuard[private]