RFormatStream Class Reference

class RFormatStream

stores format attributes as bytecode

Public Member Functions
RFormatStream ()
void CopyL (const RFormatStream &)
void ExternalizeL ( RWriteStream &)
void InternalizeL ( RReadStream &)
const TUint8 * Ptr ( TInt &)
void Reset ()
void SenseCharFormat ( TCharFormatX &, TCharFormatXMask &)
void SenseParaFormatL ( CParaFormat &, TParaFormatMask &, CParaFormat::TParaFormatGetMode )
void SetCharFormatL (const TCharFormatX &, const TCharFormatXMask &)
void SetParaFormatL (const CParaFormat &, const TParaFormatMask &, const CParaFormat &)
void Swap ( RFormatStream &)
Private Member Functions
void AllocL ( TInt )
TInt DoCalcSizeCharFormat (const TCharFormatX &, const TCharFormatXMask &)
TInt DoCalcSizeParaFormat (const CParaFormat &, TParaFormatMask , const CParaFormat &)
TBool DoInvariantCheck ()
void DoSetParaFormat (const CParaFormat &, TParaFormatMask , const CParaFormat &)
void DoStoreCharFormat (const TCharFormatX &, TCharFormatXMask )
TInt Length ( TUint8 *&, TTextFormatAttribute )
TInt MergeTabLists ( TUint8 *&, const CParaFormat &, TInt , const CParaFormat &, TInt , TBool )
TUint8 * ReadTabL ( TUint8 *, CParaFormat &)
TUint8 * ReadValue ( TUint8 *, TLogicalRgb &)
TUint8 * ReadValue ( TUint8 *, TTypeface &)
TUint8 * ReadValue ( TUint8 *, TParaBorder &)
TUint8 * ReadValue ( TUint8 *, TBullet &)
void RemoveRedundantCharFormat ( TCharFormatMask &, const TCharFormatX &, const TCharFormatX &)
TUint8 * Store ( TUint8 *, const TLogicalRgb &)
TUint8 * Store ( TUint8 *, const TTypeface &)
void StoreAllTabs ( TUint8 *&, const CParaFormat &)
TUint8 * StoreBorder ( TUint8 *, TTextFormatAttribute , const TParaBorder &)
TUint8 * StoreBullet ( TUint8 *, const TBullet &)
TUint8 * StoreTab ( TUint8 *, const TTabStop &)
TInt StoreTabs ( TUint8 *&, const CParaFormat &, const CParaFormat &, TBool )
void TestInvariantL ()
Private Attributes
__DECLARE_TEST
TUint8 * iBase
TUint8 * iEnd

Constructor & Destructor Documentation

RFormatStream()

RFormatStream ( )

Member Functions Documentation

AllocL(TInt)

void AllocL ( TInt aSize ) [private]

Parameters

TInt aSize

CopyL(const RFormatStream &)

void CopyL ( const RFormatStream & aSource )

Parameters

const RFormatStream & aSource

DoCalcSizeCharFormat(const TCharFormatX &, const TCharFormatXMask &)

TInt DoCalcSizeCharFormat ( const TCharFormatX & aCharFormat,
const TCharFormatXMask & aMask
) [private]

Parameters

const TCharFormatX & aCharFormat
const TCharFormatXMask & aMask

DoCalcSizeParaFormat(const CParaFormat &, TParaFormatMask, const CParaFormat &)

TInt DoCalcSizeParaFormat ( const CParaFormat & aDesiredFormat,
TParaFormatMask aMask,
const CParaFormat & aCurrentFormat
) [private]

Parameters

const CParaFormat & aDesiredFormat
TParaFormatMask aMask
const CParaFormat & aCurrentFormat

DoInvariantCheck()

TBool DoInvariantCheck ( ) const [private]

DoSetParaFormat(const CParaFormat &, TParaFormatMask, const CParaFormat &)

void DoSetParaFormat ( const CParaFormat & aDesiredFormat,
TParaFormatMask aMask,
const CParaFormat & aCurrentFormat
) [private]

Parameters

const CParaFormat & aDesiredFormat
TParaFormatMask aMask
const CParaFormat & aCurrentFormat

DoStoreCharFormat(const TCharFormatX &, TCharFormatXMask)

void DoStoreCharFormat ( const TCharFormatX & aCharFormat,
TCharFormatXMask aMask
) [private]

Parameters

const TCharFormatX & aCharFormat
TCharFormatXMask aMask

ExternalizeL(RWriteStream &)

void ExternalizeL ( RWriteStream & aStream ) const

Parameters

RWriteStream & aStream

InternalizeL(RReadStream &)

void InternalizeL ( RReadStream & aStream )

Parameters

RReadStream & aStream

Length(TUint8 *&, TTextFormatAttribute)

TInt Length ( TUint8 *& aPtr,
TTextFormatAttribute aType
) const [private]

Parameters

TUint8 *& aPtr
TTextFormatAttribute aType

MergeTabLists(TUint8 *&, const CParaFormat &, TInt, const CParaFormat &, TInt, TBool)

TInt MergeTabLists ( TUint8 *& aPtr,
const CParaFormat & aDesiredFormat,
TInt aDesiredTabCount,
const CParaFormat & aCurrentFormat,
TInt aCurrentTabCount,
TBool aStoreData
) [private]

Parameters

TUint8 *& aPtr
const CParaFormat & aDesiredFormat
TInt aDesiredTabCount
const CParaFormat & aCurrentFormat
TInt aCurrentTabCount
TBool aStoreData

Ptr(TInt &)

const TUint8 * Ptr ( TInt & aSize ) const

Parameters

TInt & aSize

ReadTabL(TUint8 *, CParaFormat &)

TUint8 * ReadTabL ( TUint8 * aPtr,
CParaFormat & aTarget
) const [private]

Parameters

TUint8 * aPtr
CParaFormat & aTarget

ReadValue(TUint8 *, TLogicalRgb &)

TUint8 * ReadValue ( TUint8 * aPtr,
TLogicalRgb & aRgb
) const [private]

Parameters

TUint8 * aPtr
TLogicalRgb & aRgb

ReadValue(TUint8 *, TTypeface &)

TUint8 * ReadValue ( TUint8 * aPtr,
TTypeface & aTypeface
) const [private]

Parameters

TUint8 * aPtr
TTypeface & aTypeface

ReadValue(TUint8 *, TParaBorder &)

TUint8 * ReadValue ( TUint8 * aPtr,
TParaBorder & aBorder
) const [private]

Parameters

TUint8 * aPtr
TParaBorder & aBorder

ReadValue(TUint8 *, TBullet &)

TUint8 * ReadValue ( TUint8 * aPtr,
TBullet & aBullet
) const [private]

Parameters

TUint8 * aPtr
TBullet & aBullet

RemoveRedundantCharFormat(TCharFormatMask &, const TCharFormatX &, const TCharFormatX &)

void RemoveRedundantCharFormat ( TCharFormatMask & aMask,
const TCharFormatX & aFormat,
const TCharFormatX & aEffectiveFormat
) [private]

Parameters

TCharFormatMask & aMask
const TCharFormatX & aFormat
const TCharFormatX & aEffectiveFormat

Reset()

void Reset ( )

SenseCharFormat(TCharFormatX &, TCharFormatXMask &)

void SenseCharFormat ( TCharFormatX & aCharFormat,
TCharFormatXMask & aMask
) const

Parameters

TCharFormatX & aCharFormat
TCharFormatXMask & aMask

SenseParaFormatL(CParaFormat &, TParaFormatMask &, CParaFormat::TParaFormatGetMode)

void SenseParaFormatL ( CParaFormat & aParaFormat,
TParaFormatMask & aMask,
CParaFormat::TParaFormatGetMode aMode
) const

SetCharFormatL(const TCharFormatX &, const TCharFormatXMask &)

void SetCharFormatL ( const TCharFormatX & aCharFormat,
const TCharFormatXMask & aMask
)

Parameters

const TCharFormatX & aCharFormat
const TCharFormatXMask & aMask

SetParaFormatL(const CParaFormat &, const TParaFormatMask &, const CParaFormat &)

void SetParaFormatL ( const CParaFormat & aDesiredFormat,
const TParaFormatMask & aDesiredMask,
const CParaFormat & aCurrentFormat
)

Parameters

const CParaFormat & aDesiredFormat
const TParaFormatMask & aDesiredMask
const CParaFormat & aCurrentFormat

Store(TUint8 *, const TLogicalRgb &)

TUint8 * Store ( TUint8 * aPtr,
const TLogicalRgb & aRgb
) [private]

Parameters

TUint8 * aPtr
const TLogicalRgb & aRgb

Store(TUint8 *, const TTypeface &)

TUint8 * Store ( TUint8 * aPtr,
const TTypeface & aTypeface
) [private]

Parameters

TUint8 * aPtr
const TTypeface & aTypeface

StoreAllTabs(TUint8 *&, const CParaFormat &)

void StoreAllTabs ( TUint8 *& aPtr,
const CParaFormat & aSource
) [private]

Parameters

TUint8 *& aPtr
const CParaFormat & aSource

StoreBorder(TUint8 *, TTextFormatAttribute, const TParaBorder &)

TUint8 * StoreBorder ( TUint8 * aPtr,
TTextFormatAttribute aType,
const TParaBorder & aSource
) [private]

Parameters

TUint8 * aPtr
TTextFormatAttribute aType
const TParaBorder & aSource

StoreBullet(TUint8 *, const TBullet &)

TUint8 * StoreBullet ( TUint8 * aPtr,
const TBullet & aSource
) [private]

Parameters

TUint8 * aPtr
const TBullet & aSource

StoreTab(TUint8 *, const TTabStop &)

TUint8 * StoreTab ( TUint8 * aPtr,
const TTabStop & aSource
) [private]

Parameters

TUint8 * aPtr
const TTabStop & aSource

StoreTabs(TUint8 *&, const CParaFormat &, const CParaFormat &, TBool)

TInt StoreTabs ( TUint8 *& aPtr,
const CParaFormat & aDesiredFormat,
const CParaFormat & aCurrentFormat,
TBool aStoreData
) [private]

Parameters

TUint8 *& aPtr
const CParaFormat & aDesiredFormat
const CParaFormat & aCurrentFormat
TBool aStoreData

Swap(RFormatStream &)

void Swap ( RFormatStream & aStream )

Swaps the contents of this stream with aStream.

Parameters

RFormatStream & aStream Object to swap contents with.

TestInvariantL()

void TestInvariantL ( ) const [private]

Member Data Documentation

__DECLARE_TEST

__DECLARE_TEST [private]

TUint8 * iBase

TUint8 * iBase [private]

TUint8 * iEnd

TUint8 * iEnd [private]