class CCharFormatLayer : public CFormatLayer |
Character format layer.
Uses a pointer (stored in its base class CFormatLayer) to another character format layer which may be NULL. This pointer is referred to as the based-on link. A character format layer is owned by an instance of the CGlobalText class and stores the object's global character formatting. Implements persistence and allows attributes to be set and sensed.
Public Member Functions | |
---|---|
CCharFormatLayer * | CloneL() |
IMPORT_C void | ExternalizeL(RWriteStream &) |
IMPORT_C void | InternalizeL(RReadStream &, const CFormatLayer *) |
IMPORT_C TBool | IsIdentical(CFormatLayer *, TBool) |
IMPORT_C TBool | IsIdentical(const TCharFormat &, const TCharFormatMask &) |
CCharFormatLayer * | NewCopyBaseL(const CCharFormatLayer *) |
IMPORT_C CCharFormatLayer * | NewL() |
IMPORT_C CCharFormatLayer * | NewL(const TCharFormat &, const TCharFormatMask &) |
IMPORT_C CCharFormatLayer * | NewL(RReadStream &) |
CCharFormatLayer * | NewL(const CCharFormatLayer *) |
CCharFormatLayer * | NewL(const TCharFormatX &, const TCharFormatXMask &) |
IMPORT_C const TUint8 * | Ptr(TInt &) |
IMPORT_C void | Sense(TCharFormat &, TCharFormatMask &) |
void | Sense(TCharFormatX &, TCharFormatXMask &) |
IMPORT_C void | SenseEffective(TCharFormat &) |
void | SenseEffective(TCharFormatX &) |
IMPORT_C void | SetL(const TCharFormat &, const TCharFormatMask &) |
void | SetL(const TCharFormatX &, const TCharFormatXMask &) |
Private Member Functions | |
---|---|
CCharFormatLayer() | |
IMPORT_C CFormatLayer * | DoCloneL() |
void | FillCharFormat(TCharFormatX &, TCharFormatXMask &) |
CFormatLayer * | RestoreNewL(RReadStream &) |
Inherited Attributes | |
---|---|
CFormatLayer::__DECLARE_TEST | |
CFormatLayer::iBasedOn | |
CFormatLayer::iStore |
CCharFormatLayer * | CloneL | ( | ) | const [inline] |
Constructs and returns a new CCharFormatLayer 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 character 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 | FillCharFormat | ( | TCharFormatX & | aCharFormat, |
TCharFormatXMask & | aMask | |||
) | const [private, virtual] |
TCharFormatX & aCharFormat | |
TCharFormatXMask & aMask |
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 | IsIdentical | ( | const TCharFormat & | aCharFormat, |
const TCharFormatMask & | aMask | |||
) | const |
const TCharFormat & aCharFormat | |
const TCharFormatMask & aMask |
CCharFormatLayer * | NewCopyBaseL | ( | const CCharFormatLayer * | aLayer | ) | [static] |
const CCharFormatLayer * aLayer |
IMPORT_C CCharFormatLayer * | NewL | ( | const TCharFormat & | aFormat, |
const TCharFormatMask & | aMask | |||
) | [static] |
const TCharFormat & aFormat | |
const TCharFormatMask & aMask |
IMPORT_C CCharFormatLayer * | NewL | ( | RReadStream & | aStream | ) | [static] |
RReadStream & aStream |
CCharFormatLayer * | NewL | ( | const CCharFormatLayer * | aLayer | ) | [static] |
const CCharFormatLayer * aLayer |
CCharFormatLayer * | NewL | ( | const TCharFormatX & | aFormat, |
const TCharFormatXMask & | aMask | |||
) | [static] |
const TCharFormatX & aFormat | |
const TCharFormatXMask & aMask |
CFormatLayer * | RestoreNewL | ( | RReadStream & | aStream | ) | [private, virtual] |
RReadStream & aStream |
IMPORT_C void | Sense | ( | TCharFormat & | aCharFormat, |
TCharFormatMask & | aMask | |||
) | const |
TCharFormat & aCharFormat | |
TCharFormatMask & aMask |
void | Sense | ( | TCharFormatX & | aCharFormat, |
TCharFormatXMask & | aMask | |||
) | const |
TCharFormatX & aCharFormat | |
TCharFormatXMask & aMask |
IMPORT_C void | SenseEffective | ( | TCharFormat & | aCharFormat | ) | const |
TCharFormat & aCharFormat |
void | SenseEffective | ( | TCharFormatX & | aCharFormat | ) | const |
TCharFormatX & aCharFormat |
IMPORT_C void | SetL | ( | const TCharFormat & | aCharFormat, |
const TCharFormatMask & | aMask | |||
) |
const TCharFormat & aCharFormat | |
const TCharFormatMask & aMask |