RFormatStream Class Reference

class RFormatStream

stores format attributes as bytecode

Public Member Functions
RFormatStream()
voidCopyL(const RFormatStream &)
voidExternalizeL(RWriteStream &)
voidInternalizeL(RReadStream &)
const TUint8 *Ptr(TInt &)
voidReset()
voidSenseCharFormat(TCharFormatX &, TCharFormatXMask &)
voidSenseParaFormatL(CParaFormat &, TParaFormatMask &, CParaFormat::TParaFormatGetMode)
voidSetCharFormatL(const TCharFormatX &, const TCharFormatXMask &)
voidSetParaFormatL(const CParaFormat &, const TParaFormatMask &, const CParaFormat &)
voidSwap(RFormatStream &)
Private Member Functions
voidAllocL(TInt)
TInt DoCalcSizeCharFormat(const TCharFormatX &, const TCharFormatXMask &)
TInt DoCalcSizeParaFormat(const CParaFormat &, TParaFormatMask, const CParaFormat &)
TBool DoInvariantCheck()
voidDoSetParaFormat(const CParaFormat &, TParaFormatMask, const CParaFormat &)
voidDoStoreCharFormat(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 &)
voidRemoveRedundantCharFormat(TCharFormatMask &, const TCharFormatX &, const TCharFormatX &)
TUint8 *Store(TUint8 *, const TLogicalRgb &)
TUint8 *Store(TUint8 *, const TTypeface &)
voidStoreAllTabs(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)
voidTestInvariantL()
Private Attributes
__DECLARE_TEST
TUint8 *iBase
TUint8 *iEnd

Constructor & Destructor Documentation

RFormatStream()

RFormatStream()

Member Functions Documentation

AllocL(TInt)

voidAllocL(TIntaSize)[private]

Parameters

TInt aSize

CopyL(const RFormatStream &)

voidCopyL(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,
TParaFormatMaskaMask,
const CParaFormat &aCurrentFormat
)[private]

Parameters

const CParaFormat & aDesiredFormat
TParaFormatMask aMask
const CParaFormat & aCurrentFormat

DoInvariantCheck()

TBool DoInvariantCheck()const [private]

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

voidDoSetParaFormat(const CParaFormat &aDesiredFormat,
TParaFormatMaskaMask,
const CParaFormat &aCurrentFormat
)[private]

Parameters

const CParaFormat & aDesiredFormat
TParaFormatMask aMask
const CParaFormat & aCurrentFormat

DoStoreCharFormat(const TCharFormatX &, TCharFormatXMask)

voidDoStoreCharFormat(const TCharFormatX &aCharFormat,
TCharFormatXMaskaMask
)[private]

Parameters

const TCharFormatX & aCharFormat
TCharFormatXMask aMask

ExternalizeL(RWriteStream &)

voidExternalizeL(RWriteStream &aStream)const

Parameters

RWriteStream & aStream

InternalizeL(RReadStream &)

voidInternalizeL(RReadStream &aStream)

Parameters

RReadStream & aStream

Length(TUint8 *&, TTextFormatAttribute)

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

Parameters

TUint8 *& aPtr
TTextFormatAttribute aType

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

TInt MergeTabLists(TUint8 *&aPtr,
const CParaFormat &aDesiredFormat,
TIntaDesiredTabCount,
const CParaFormat &aCurrentFormat,
TIntaCurrentTabCount,
TBoolaStoreData
)[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 &)

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

Parameters

TCharFormatMask & aMask
const TCharFormatX & aFormat
const TCharFormatX & aEffectiveFormat

Reset()

voidReset()

SenseCharFormat(TCharFormatX &, TCharFormatXMask &)

voidSenseCharFormat(TCharFormatX &aCharFormat,
TCharFormatXMask &aMask
)const

Parameters

TCharFormatX & aCharFormat
TCharFormatXMask & aMask

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

voidSenseParaFormatL(CParaFormat &aParaFormat,
TParaFormatMask &aMask,
CParaFormat::TParaFormatGetModeaMode
)const

Parameters

CParaFormat & aParaFormat
TParaFormatMask & aMask
CParaFormat::TParaFormatGetMode aMode

SetCharFormatL(const TCharFormatX &, const TCharFormatXMask &)

voidSetCharFormatL(const TCharFormatX &aCharFormat,
const TCharFormatXMask &aMask
)

Parameters

const TCharFormatX & aCharFormat
const TCharFormatXMask & aMask

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

voidSetParaFormatL(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 &)

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

Parameters

TUint8 *& aPtr
const CParaFormat & aSource

StoreBorder(TUint8 *, TTextFormatAttribute, const TParaBorder &)

TUint8 *StoreBorder(TUint8 *aPtr,
TTextFormatAttributeaType,
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,
TBoolaStoreData
)[private]

Parameters

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

Swap(RFormatStream &)

voidSwap(RFormatStream &aStream)

Swaps the contents of this stream with aStream.

Parameters

RFormatStream & aStreamObject to swap contents with.

TestInvariantL()

voidTestInvariantL()const [private]

Member Data Documentation

__DECLARE_TEST

__DECLARE_TEST[private]

TUint8 * iBase

TUint8 *iBase[private]

TUint8 * iEnd

TUint8 *iEnd[private]