class CParaFormatLayer : public CFormatLayer |
A paragraph format layer.
Has a pointer (stored in its base class CFormatLayer) to another paragraph format layer which may be NULL. This pointer is referred to as the based-on link. A paragraph format layer is owned by an instance of the CGlobalText class and stores the object's global paragraph formatting. Implements persistence and allows attributes to be set and sensed.
Public Member Functions | |
---|---|
CParaFormatLayer * | CloneL() |
IMPORT_C void | ExternalizeL(RWriteStream &) |
IMPORT_C void | InternalizeL(RReadStream &, const CFormatLayer *) |
IMPORT_C TBool | IsIdentical(CFormatLayer *, TBool) |
IMPORT_C TBool | IsIdenticalL(const CParaFormat *, const TParaFormatMask &) |
CParaFormatLayer * | NewCopyBaseL(const CParaFormatLayer *) |
IMPORT_C CParaFormatLayer * | NewL() |
IMPORT_C CParaFormatLayer * | NewL(const CParaFormat *, const TParaFormatMask &) |
IMPORT_C CParaFormatLayer * | NewL(RReadStream &) |
CParaFormatLayer * | NewL(const CParaFormatLayer *) |
IMPORT_C const TUint8 * | Ptr(TInt &) |
IMPORT_C void | SenseEffectiveL(CParaFormat *, CParaFormat::TParaFormatGetMode) |
IMPORT_C void | SenseL(CParaFormat *, TParaFormatMask &, CParaFormat::TParaFormatGetMode) |
IMPORT_C void | SetL(const CParaFormat *, const TParaFormatMask &) |
IMPORT_C TUid | Type() |
Protected Member Functions | |
---|---|
CParaFormatLayer() | |
CFormatLayer * | RestoreNewL(RReadStream &) |
Private Member Functions | |
---|---|
CParaFormatLayer(const CParaFormatLayer &) | |
void | CleanupBorders(CParaFormat *) |
void | CleanupEffectiveFormat(CParaFormat *, TParaFormatMask) |
IMPORT_C CFormatLayer * | DoCloneL() |
void | FillParaFormatL(CParaFormat *, TParaFormatMask &, CParaFormat::TParaFormatGetMode) |
CParaFormatLayer & | operator=(const CParaFormatLayer &) |
Inherited Attributes | |
---|---|
CFormatLayer::__DECLARE_TEST | |
CFormatLayer::iBasedOn | |
CFormatLayer::iStore |
CParaFormatLayer | ( | const CParaFormatLayer & | aParaFormatLayer | ) | [private] |
const CParaFormatLayer & aParaFormatLayer |
void | CleanupBorders | ( | CParaFormat * | aParaFormat | ) | const [private] |
CParaFormat * aParaFormat |
void | CleanupEffectiveFormat | ( | CParaFormat * | aParaFormat, |
TParaFormatMask | aMask | |||
) | const [private] |
CParaFormat * aParaFormat | |
TParaFormatMask aMask |
CParaFormatLayer * | CloneL | ( | ) | const [inline] |
Constructs and returns a new CParaFormatLayer with identical formatting to the current layer. Note that the function does not copy the original layer's based-on link - the new layer's based-on link is set to NULL, so that the two layers may not have the same effective formatting.
A new paragraph format layer cloned from the current layer.
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | const [virtual] |
Implementations of this function externalise the format layer but not its based-on link to a write stream. The presence of this function means that the standard templatedoperator<<() (defined in s32strm.h) is available to externalise objects of the derived class.
RWriteStream & aStream | Stream to which the format layer should be externalised. |
void | FillParaFormatL | ( | CParaFormat * | aParaFormat, |
TParaFormatMask & | aMask, | |||
CParaFormat::TParaFormatGetMode | aMode | |||
) | const [private] |
CParaFormat * aParaFormat | |
TParaFormatMask & aMask | |
CParaFormat::TParaFormatGetMode aMode |
IMPORT_C void | InternalizeL | ( | RReadStream & | aStream, |
const CFormatLayer * | aBase = NULL | |||
) | [virtual] |
Implementations of this function internalise the format layer but not its based-on link from a read stream. The presence of this function means that the standard templated operator>>() (defined in s32strm.h) is available to internalise objects of the derived class. The internalised layer is set to be based on the layer specified.
RReadStream & aStream | Stream from which the format layer should be internalised. |
const CFormatLayer * aBase = NULL | The based-on link to assign to the layer. By default, NULL. |
IMPORT_C TBool | IsIdentical | ( | CFormatLayer * | aLayer, |
TBool | aCheckBasedOnLink = ETrue | |||
) | const [virtual] |
Implementations of this function compare another format layer with the current object. For the two layers to be equal, they must have the same contents and (if the second parameter is ETrue), their based-on links must point to the same format layer.
ETrue if the two layers are identical, otherwise EFalse.
CFormatLayer * aLayer | The layer to compare to this format layer. |
TBool aCheckBasedOnLink = ETrue | If ETrue, both layers' based-on links must point to the same format layer. If EFalse, the based-on links are not used in the comparison. By default, ETrue. |
IMPORT_C TBool | IsIdenticalL | ( | const CParaFormat * | aParaFormat, |
const TParaFormatMask & | aMask | |||
) | const |
const CParaFormat * aParaFormat | |
const TParaFormatMask & aMask |
CParaFormatLayer * | NewCopyBaseL | ( | const CParaFormatLayer * | aLayer | ) | [static] |
const CParaFormatLayer * aLayer |
IMPORT_C CParaFormatLayer * | NewL | ( | const CParaFormat * | aParaFormat, |
const TParaFormatMask & | aMask | |||
) | [static] |
const CParaFormat * aParaFormat | |
const TParaFormatMask & aMask |
IMPORT_C CParaFormatLayer * | NewL | ( | RReadStream & | aStream | ) | [static] |
RReadStream & aStream |
CParaFormatLayer * | NewL | ( | const CParaFormatLayer * | aLayer | ) | [static] |
const CParaFormatLayer * aLayer |
CFormatLayer * | RestoreNewL | ( | RReadStream & | aStream | ) | [protected, virtual] |
RReadStream & aStream |
IMPORT_C void | SenseEffectiveL | ( | CParaFormat * | aParaFormat, |
CParaFormat::TParaFormatGetMode | aMode = CParaFormat::EAllAttributes | |||
) | const |
CParaFormat * aParaFormat | |
CParaFormat::TParaFormatGetMode aMode = CParaFormat::EAllAttributes |
IMPORT_C void | SenseL | ( | CParaFormat * | aParaFormat, |
TParaFormatMask & | aMask, | |||
CParaFormat::TParaFormatGetMode | aMode = CParaFormat::EAllAttributes | |||
) | const |
CParaFormat * aParaFormat | |
TParaFormatMask & aMask | |
CParaFormat::TParaFormatGetMode aMode = CParaFormat::EAllAttributes |
IMPORT_C void | SetL | ( | const CParaFormat * | aDesiredEffectiveFormat, |
const TParaFormatMask & | aMask | |||
) |
const CParaFormat * aDesiredEffectiveFormat | |
const TParaFormatMask & aMask |
CParaFormatLayer & | operator= | ( | const CParaFormatLayer & | aParaFormatLayer | ) | [private] |
const CParaFormatLayer & aParaFormatLayer |