CRichTextIndex Class Reference

class CRichTextIndex : public CBase

Stores the paragraph and character formatting information for CRichText .

iParaIx stores the paragraph formatting, one entry per paragraph. Paragraphs are pieces of text delimited by the Unicode Paragraph Delimiter character U+2029.

iPhraseIx stores the character formatting.

Paragraph formatting information can be shared or not shared between paragraphs. Sharing is only permitted for paragraphs that do not have any character formatting applied to their text.

A phrase is a run of consistently formatted characters. A phrase may only contain a paragraph delimiter in its last character. In other words, phrases are not permitted to span paragraph boundaries.

iPhraseIx only stores formatting for the non-shared paragraphs. Therefore adding up the lengths of all the phrases in iPhraseIx will yield the sum of the non-shared paragraphs stored in iParaIx.

Note that the "nominal" paragraph delimiter at the end of the text which is not stored by CRichText is covered by both character and paragraph formatting. So the length of the final paragraph and final phrase (if appropriate) includes this character.

Inherits from

Public Member Functions
~CRichTextIndex ()
void AppendParagraphL (const CParaFormatLayer *, const CCharFormatLayer *, TInt )
void AppendTakingSolePictureOwnershipL (const CRichTextIndex *, const TGlobalLayerInfoAppend &)
void ApplyCharFormatL (const TCharFormatX &, const TCharFormatXMask &, TInt , TInt , TBool )
void ApplyParaFormatL (const CParaFormat *, const TParaFormatMask &, TInt , TInt )
void ApplyParagraphStyleL (const CParagraphStyle &, TInt , TInt , const CCharFormatLayer *, CParagraphStyle::TApplyParaStyleMode )
void CancelInsertCharFormat ()
TInt CharPosOfParagraph ( TInt &, TInt )
void CopyToStreamL ( RWriteStream &, TInt , TInt , TBool )
TBool DelSetInsertCharFormatL ( TInt , TInt )
void DeleteFromParagraph ( TInt , TInt )
TBool DeleteNow ( TIndexDeleteInfo &)
TBool DeleteParagraph ( TInt , TInt )
void DetachFromStoreL ( CPicture::TDetach , TInt , TInt )
void DocumentChanged ()
void ExternalizeL ( RWriteStream &)
void GetCharFormat ( TCharFormatX &, TCharFormatXMask &, TInt , TInt )
TInt GetChars ( TCharFormatX &, TInt )
CCharFormatLayer * GetCurrentInsertCharFormat ()
void GetParaFormatL ( CParaFormat *, TParaFormatMask &, TInt , TInt , CParaFormat::TParaFormatGetMode )
void GetParagraphFormatL ( CParaFormat *, TInt )
TInt GetPictureSizeInTwips ( TSize &, TInt )
void GetSpecificCharFormat ( TCharFormatX &, TCharFormatXMask &, TInt )
void GetSpecificCharFormatDirection ( TCharFormatX &, TCharFormatXMask &, TInt , TBool )
void GetSpecificParagraphFormatL ( CParaFormat *, TParaFormatMask &, TInt )
TBool HasMarkupData (const CFormatLayer *)
TBool InsertCharFormatIsActive ()
void InsertL ( TInt , const TDesC &, const CParaFormatLayer &)
void InsertL ( TInt , const TPictureHeader &, TBool &)
void InsertParagraphL ( TInt , const CParaFormatLayer &)
void InternalizeL ( RReadStream &, const CParaFormatLayer *, const CCharFormatLayer *, const CStyleList *)
void NewInsertCharFormatL (const TCharFormatX &, const TCharFormatXMask &, TInt )
CRichTextIndex * NewL (const CParaFormatLayer *, const CCharFormatLayer *, const CRichText &, TInt , TInt )
CRichTextIndex * NewL (const CStreamStore &, TStreamId , const CParaFormatLayer *, const CCharFormatLayer *, const CRichText &)
void Normalize ( TInt )
void NotifyStyleChangedL (const CParagraphStyle *, const CParagraphStyle *, const CParaFormatLayer &, const CCharFormatLayer &)
TInt ParagraphCount ()
TInt ParagraphNumberForPos ( TInt &)
const CParaFormatLayer * ParagraphStyle ( TBool &, TInt , TInt )
void PasteFromStreamL (const CStreamStore &, RReadStream &, TInt , CParagraphStyle::TStylePasteMode , const CParaFormatLayer *, const CCharFormatLayer *)
CPicture * PictureHandleL ( TInt , MLayDoc::TForcePictureLoad )
TPictureHeader PictureHeader ( TInt )
TPictureHeader * PictureHeaderPtr ( TInt )
void RemoveSpecificCharFormatL ( TInt , TInt )
void RemoveSpecificParaFormatL ( TInt , TInt )
void Reset (const CParaFormatLayer &)
void RestoreL (const CStreamStore &, TStreamId , const CParaFormatLayer *, const CCharFormatLayer *, const CStyleList *)
void SetForDeleteL ( TIndexDeleteInfo &, TInt , TInt )
void SetInsertCharFormatL (const TCharFormatX &, const TCharFormatXMask &, TInt )
void SetSpecificMarkupInternalized ( TBool )
TInt SharedParaCount (const CRichTextIndex *)
TBool SpecificMarkupInternalized ()
TStreamId StoreMarkupL ( CStreamStore &, const CStyleList *)
void StorePicturesL ( CStreamStore &, CStoreMap &)
void StorePicturesL ( CStreamStore &, CStoreMap &, TInt , TInt )
void UpdateInsertCharFormatL (const TCharFormatX &, const TCharFormatXMask &)
Private Member Functions
CRichTextIndex (const CRichText &)
void AppendParaIndexL (const CRichTextIndex *, const TGlobalLayerInfoAppend &)
void AppendPhraseIndexL (const CRichTextIndex *, const TGlobalLayerInfoAppend &)
void AppendSharedFormatsL ( CParaAttribsMap &, const CRichTextIndex *, const TGlobalLayerInfoAppend &)
void ApplyCharFormatCleanup ( TAny *)
void ApplyCharFormatRollback ()
void CheckForUndetermined (const TCharFormatX &, const TCharFormatX &, TCharFormatXMask &)
void ConsolidateAt ( TInt , TPositionOrPhrase )
void ConstructL (const CParaFormatLayer *, const CCharFormatLayer *, TInt , TInt )
TInt CurrentPhraseLength ()
TInt CurrentPhraseOffset ()
TBool DeleteInsertCharFormat ()
TBool DeleteParagraphText ( TInt &)
TBool DoDeleteFromParagraph (const TIndexDeleteInfo &)
void DoNewInsertCharFormatL (const TCharFormatX &, const TCharFormatXMask &, CCharFormatLayer *, CParaAttribs *)
void DoPasteCleanup ( TLogicalPosition &, CParaAttribs *)
TParaAttribsEntry DoPasteFirstIntoParaL ( RReadStream &, const CParaAttribsMap &, const TRtPasteContext &, RPhraseAttribsEntry *&, CStyleMap *)
TParaAttribsEntry DoPasteIntoParaL ( RReadStream &, const CParaAttribsMap &, const TRtPasteContext &, CStyleMap *)
void DoPastePhraseL ( RReadStream &, const TRtPasteContext &, RPhraseAttribsEntry &)
void DoSoloInsertL ( TInt , TInt )
void DoSplitPhraseL ( RPhraseAttribsEntry &, TInt , CParaAttribs *)
void ExternalizeItemsPresentInRegisterL ( RWriteStream &, TInt , const TDes8 &, const CStyleList *)
void ExternalizeItemsPresentInStyleRegisterL ( RWriteStream &, TInt , const TDes8 &)
RPhraseAttribsEntry * ExternalizeParaIxL ( RWriteStream &, const TLogicalPosition &, const TLogicalPosition &, const CStyleList *)
void ExternalizeParagraphFormatL ( RWriteStream &, const CParaFormatLayer &, const CStyleList *)
void ExternalizePhraseCountL ( RWriteStream &, TInt )
void ExternalizePhraseIxL ( RWriteStream &)
void ExternalizePhraseIxL ( RWriteStream &, const TLogicalPosition &, TLogicalPosition &, const RPhraseAttribsEntry *)
void ExternalizePhrasesL ( RWriteStream &, TInt , TInt , const RPhraseAttribsEntry *)
void ExternalizeReferencedStylesL ( RWriteStream &, const TLogicalPosition &, const TLogicalPosition &)
void ExternalizeRtiHeaderL ( RWriteStream &, const TLogicalPosition &, const CStyleList *)
void ExternalizeSharedFormatsL ( RWriteStream &, const TLogicalPosition &, const TLogicalPosition &, const CStyleList *)
CParaAttribs * FindSharedParaAttribs (const CParaFormatLayer &, const CCharFormatLayer &)
TBool FirstPhraseOfParagraph ()
void GenerateAllPhraseLinksL ()
void GeneratePhraseLink ( CCharFormatLayer *, const CParaFormatLayer *)
void GetCurrentRecords ( TCurrentIndexRecords &)
CParaAttribs * GetParaAttribs (const TLogicalPosition &)
CParaAttribs * GetParaAttribs (CParaAttribs *, CCharFormatLayer &)
CParaAttribs * GetParaAttribsL (const CParaFormatLayer *, const CCharFormatLayer *, CParaAttribs *)
void GetPhraseFormat ( TCurrentIndexRecords &, TCharFormatX &, TCharFormatXMask &, CCharFormatLayer *&)
TTextFragment GetTextFragmentL ( RReadStream &)
void ImposeCharacterStyleL ( CCharFormatLayer **)
void InternalizeParaIxL ( RReadStream &, const TRtPasteContext &)
CParaFormatLayer * InternalizeParagraphFormatL ( RReadStream &, const TRtPasteContext &)
void InternalizePhraseIxL ( RReadStream &, const CCharFormatLayer *)
void InternalizeRtiHeaderL ( RReadStream &, TRtPasteContext &)
void InternalizeSharedFormatsL ( RReadStream &, const TRtPasteContext &)
TInt MarkRegister ( TDes8 &, TInt , TInt )
TInt MarkStyleRegister ( TDes8 &, TInt , TInt )
TBool MergePhrases ( TInt )
TBool MergePhrases (const TLogicalPosition &)
TInt MergePhrases ( TInt , RPhraseAttribsEntry &, CParaAttribs &)
void ModifySpecificFormatting ( CParaFormatLayer &, CCharFormatLayer &, CParagraphStyle::TApplyParaStyleMode )
void NormalizeNow (const TLogicalPosition &)
void NormalizeSharedList ()
TInt OwningParagraph ( TInt , TLogicalPosition *)
TInt ParaLengthFromBuffer ( TDesC &)
void PasteIxL ( RReadStream &, TRtPasteContext &, const CParaAttribsMap &, CStyleMap *)
TInt PasteParaIxL ( RReadStream &, TRtPasteContext &, TInt , const CParaAttribsMap &, RPhraseAttribsEntry *&, CStyleMap *)
CParaFormatLayer * PasteParagraphFormatL ( RReadStream &, const TRtPasteContext &, CStyleMap *)
void PastePhraseIxL ( RReadStream &, TRtPasteContext &, const RPhraseAttribsEntry *)
void PasteSharedFormatsL ( RReadStream &, CParaAttribsMap &, const TRtPasteContext &, CStyleMap *)
void PasteStylesL ( RReadStream &, CStyleMap &, const TRtPasteContext &)
TInt PhraseCount ()
TBool PhraseSplit ()
void RbInsertPicture (CParaAttribs *)
void RbPasteParaIxL (const TLogicalPosition &, TInt , TInt )
void RbPastePhraseIxL (const TLogicalPosition &, TInt , TInt )
void RbPasteSharedFormatsL ( TInt )
void RbRemoveInsertedParaAttribsEntries ( TInt , TInt )
void RbRemoveInsertedPhraseAttribsEntries ( TInt , TInt )
TUint8 ReadTUint8CountL ( RReadStream &)
void RebalanceIndex ()
TUint8 RefNum (const CParaAttribs *)
void RemoveFromPhraseIx ( TInt , TInt )
CParaAttribs * RequestReclaimShareL (CParaAttribs *, TParaAttribsEntry *)
CParaAttribs * RequestShare (const TLogicalPosition &)
CParaAttribs * RequestShareL (CParaAttribs *, CCharFormatLayer *, CParaAttribs *)
CParaAttribs * ReserveCellL ()
CParaAttribs * ReserveCellLC ()
const CStreamStore * ResolvedStreamStore ( TInt )
void ScanToPosition ( TInt , TScanToPositionMode , TLogicalPosition *)
void SetPhraseSplit ( TBool )
void Share ( TParaAttribsEntry &, TInt )
CParaAttribs * SharedParaAttribs ( TUint8 )
TUint8 SharedParaAttribsEntryCountL ()
void SplitParagraphAtPastePosL ( TLogicalPosition &, TLogicalPosition &, const CParaFormatLayer &)
void SplitPhraseL ( TInt )
void SplitPhraseL ( TInt , TInt , CParaAttribs *)
void SplitPhraseL ( TInt , TInt , RPhraseAttribsEntry &, CParaAttribs &)
void TidyAfterDelete (const TIndexDeleteInfo &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Member Enumerations
enum TPositionOrPhrase { EPositionOnly , EFollowingPhrase }
enum TScanToPositionMode { EScanToPositionMatchLeft , EScanToPositionAbsolute }
Public Attributes
__DECLARE_TEST
CArrayFixSeg < TParaAttribsEntry > * iParaIx
CArrayFixSeg < RPhraseAttribsEntry > * iPhraseIx
TInt iPictureCount
__MUTABLE TLogicalPosition iPos
Private Attributes
TUint32 iFlags
CCharFormatLayer * iLastCharacterStyle
__MUTABLE TLogicalPosition iLastUsed
TInt iPendingNewPhrasePos
CParaAttribs * iRollbackParaAttribsHandle
__MUTABLE TDblQue < CParaAttribs > iSharedParaQueHead
const CRichText & iText

Constructor & Destructor Documentation

CRichTextIndex(const CRichText &)

CRichTextIndex ( const CRichText & aText ) [private]

Parameters

const CRichText & aText

~CRichTextIndex()

~CRichTextIndex ( )

Member Functions Documentation

AppendParaIndexL(const CRichTextIndex *, const TGlobalLayerInfoAppend &)

void AppendParaIndexL ( const CRichTextIndex * aSource,
const TGlobalLayerInfoAppend & aGlobalLayerInfo
) [private]

Parameters

const CRichTextIndex * aSource
const TGlobalLayerInfoAppend & aGlobalLayerInfo

AppendParagraphL(const CParaFormatLayer *, const CCharFormatLayer *, TInt)

void AppendParagraphL ( const CParaFormatLayer * aGlobalParaFormatLayer,
const CCharFormatLayer * aGlobalCharFormatLayer,
TInt aReplicas
)

Parameters

const CParaFormatLayer * aGlobalParaFormatLayer
const CCharFormatLayer * aGlobalCharFormatLayer
TInt aReplicas

AppendPhraseIndexL(const CRichTextIndex *, const TGlobalLayerInfoAppend &)

void AppendPhraseIndexL ( const CRichTextIndex * aSource,
const TGlobalLayerInfoAppend & aGlobalLayerInfo
) [private]

Parameters

const CRichTextIndex * aSource
const TGlobalLayerInfoAppend & aGlobalLayerInfo

AppendSharedFormatsL(CParaAttribsMap &, const CRichTextIndex *, const TGlobalLayerInfoAppend &)

void AppendSharedFormatsL ( CParaAttribsMap & aMap,
const CRichTextIndex * aSource,
const TGlobalLayerInfoAppend & aGlobalLayerInfo
) [private]

Parameters

CParaAttribsMap & aMap
const CRichTextIndex * aSource
const TGlobalLayerInfoAppend & aGlobalLayerInfo

AppendTakingSolePictureOwnershipL(const CRichTextIndex *, const TGlobalLayerInfoAppend &)

void AppendTakingSolePictureOwnershipL ( const CRichTextIndex * aSource,
const TGlobalLayerInfoAppend & aGlobalLayerInfo
)

Parameters

const CRichTextIndex * aSource
const TGlobalLayerInfoAppend & aGlobalLayerInfo

ApplyCharFormatCleanup(TAny *)

void ApplyCharFormatCleanup ( TAny * aPtr ) [private, static]

Parameters

TAny * aPtr

ApplyCharFormatL(const TCharFormatX &, const TCharFormatXMask &, TInt, TInt, TBool)

void ApplyCharFormatL ( const TCharFormatX & aFormat,
const TCharFormatXMask & aMask,
TInt aPos,
TInt aLength,
TBool aRemoveSpecific = EFalse
)

Parameters

const TCharFormatX & aFormat
const TCharFormatXMask & aMask
TInt aPos
TInt aLength
TBool aRemoveSpecific = EFalse

ApplyCharFormatRollback()

void ApplyCharFormatRollback ( ) [private]

ApplyParaFormatL(const CParaFormat *, const TParaFormatMask &, TInt, TInt)

void ApplyParaFormatL ( const CParaFormat * aFormat,
const TParaFormatMask & aMask,
TInt aPos,
TInt aLength
)

Parameters

const CParaFormat * aFormat
const TParaFormatMask & aMask
TInt aPos
TInt aLength

ApplyParagraphStyleL(const CParagraphStyle &, TInt, TInt, const CCharFormatLayer *, CParagraphStyle::TApplyParaStyleMode)

void ApplyParagraphStyleL ( const CParagraphStyle & aStyle,
TInt aPos,
TInt aLength,
const CCharFormatLayer * aCharStyleNormal,
CParagraphStyle::TApplyParaStyleMode aMode
)

Parameters

const CParagraphStyle & aStyle
TInt aPos
TInt aLength
const CCharFormatLayer * aCharStyleNormal
CParagraphStyle::TApplyParaStyleMode aMode

CancelInsertCharFormat()

void CancelInsertCharFormat ( )

Cancels the transitory state where a specified character format is applied on top of any inherited formatting. eg, when bold is on. Cancel when: (1) the text position is altered. (2) the first character (or picture) has been inserted following the setting of this state. If a zero length phrase is removed OR has content entered into it, the newly abutting phrases are checked to see if they can be merged. Then a request share of this para is issued.

CharPosOfParagraph(TInt &, TInt)

TInt CharPosOfParagraph ( TInt & aLength,
TInt aParaOffset
) const

Parameters

TInt & aLength
TInt aParaOffset

CheckForUndetermined(const TCharFormatX &, const TCharFormatX &, TCharFormatXMask &)

void CheckForUndetermined ( const TCharFormatX & aFormatA,
const TCharFormatX & aFormatB,
TCharFormatXMask & aVaries
) const [private]

Parameters

const TCharFormatX & aFormatA
const TCharFormatX & aFormatB
TCharFormatXMask & aVaries

ConsolidateAt(TInt, TPositionOrPhrase)

void ConsolidateAt ( TInt aPosition,
TPositionOrPhrase aPositionOrPhrase
) [private]

Attempts to merge phrases and share paragraphs.

Parameters

TInt aPosition Phrase boundary here is merged if possible, paragraph here is shared if possible.
TPositionOrPhrase aPositionOrPhrase If EPositionOnly the phrases either side of aPosition are considered for merging. If EFollowingPhrase, the end of the phrase following aPosition is also considered.

ConstructL(const CParaFormatLayer *, const CCharFormatLayer *, TInt, TInt)

void ConstructL ( const CParaFormatLayer * aGlobalParaFormat,
const CCharFormatLayer * aGlobalCharFormat,
TInt aParaGran,
TInt aPhraseGran
) [private]

Parameters

const CParaFormatLayer * aGlobalParaFormat
const CCharFormatLayer * aGlobalCharFormat
TInt aParaGran
TInt aPhraseGran

CopyToStreamL(RWriteStream &, TInt, TInt, TBool)

void CopyToStreamL ( RWriteStream & aStream,
TInt aPos,
TInt aLength,
TBool aCopyStyles
) const

Parameters

RWriteStream & aStream
TInt aPos
TInt aLength
TBool aCopyStyles

CurrentPhraseLength()

TInt CurrentPhraseLength ( ) const [private]

CurrentPhraseOffset()

TInt CurrentPhraseOffset ( ) const [private]

DelSetInsertCharFormatL(TInt, TInt)

TBool DelSetInsertCharFormatL ( TInt aPos,
TInt aLength
)

Parameters

TInt aPos
TInt aLength

DeleteFromParagraph(TInt, TInt)

void DeleteFromParagraph ( TInt aPos,
TInt aLength
)

Parameters

TInt aPos
TInt aLength

DeleteInsertCharFormat()

TBool DeleteInsertCharFormat ( ) [private]
Attempts to delete a zero-length phrase at the insert character format position. Does not delete any phrase of non-zero length.
Pre-condition
The insert character format must be active

DeleteNow(TIndexDeleteInfo &)

TBool DeleteNow ( TIndexDeleteInfo & aInfo )

Parameters

TIndexDeleteInfo & aInfo

DeleteParagraph(TInt, TInt)

TBool DeleteParagraph ( TInt aPos,
TInt aLength
)

Parameters

TInt aPos
TInt aLength

DeleteParagraphText(TInt &)

TBool DeleteParagraphText ( TInt & aLength ) [private]

Parameters

TInt & aLength

DetachFromStoreL(CPicture::TDetach, TInt, TInt)

void DetachFromStoreL ( CPicture::TDetach aDegree,
TInt aPos,
TInt aLength
)

Parameters

CPicture::TDetach aDegree
TInt aPos
TInt aLength

DoDeleteFromParagraph(const TIndexDeleteInfo &)

TBool DoDeleteFromParagraph ( const TIndexDeleteInfo & aInfo ) [private]

Parameters

const TIndexDeleteInfo & aInfo

DoNewInsertCharFormatL(const TCharFormatX &, const TCharFormatXMask &, CCharFormatLayer *, CParaAttribs *)

void DoNewInsertCharFormatL ( const TCharFormatX & aFormat,
const TCharFormatXMask & aMask,
CCharFormatLayer * aBasedOn,
CParaAttribs * aParaAttribs
) [private]

Parameters

const TCharFormatX & aFormat
const TCharFormatXMask & aMask
CCharFormatLayer * aBasedOn
CParaAttribs * aParaAttribs

DoPasteCleanup(TLogicalPosition &, CParaAttribs *)

void DoPasteCleanup ( TLogicalPosition & aNormalizePos,
CParaAttribs * aReclaimed
) [private]

Parameters

TLogicalPosition & aNormalizePos
CParaAttribs * aReclaimed

DoPasteFirstIntoParaL(RReadStream &, const CParaAttribsMap &, const TRtPasteContext &, RPhraseAttribsEntry *&, CStyleMap *)

TParaAttribsEntry DoPasteFirstIntoParaL ( RReadStream & aStream,
const CParaAttribsMap & aMap,
const TRtPasteContext & aContext,
RPhraseAttribsEntry *& aFirstParaVirtualPhrase,
CStyleMap * aStyleMap
) [private]

Parameters

RReadStream & aStream
const CParaAttribsMap & aMap
const TRtPasteContext & aContext
RPhraseAttribsEntry *& aFirstParaVirtualPhrase
CStyleMap * aStyleMap

DoPasteIntoParaL(RReadStream &, const CParaAttribsMap &, const TRtPasteContext &, CStyleMap *)

TParaAttribsEntry DoPasteIntoParaL ( RReadStream & aStream,
const CParaAttribsMap & aMap,
const TRtPasteContext & aContext,
CStyleMap * aStyleMap
) [private]

Parameters

RReadStream & aStream
const CParaAttribsMap & aMap
const TRtPasteContext & aContext
CStyleMap * aStyleMap

DoPastePhraseL(RReadStream &, const TRtPasteContext &, RPhraseAttribsEntry &)

void DoPastePhraseL ( RReadStream & aStream,
const TRtPasteContext & aContext,
RPhraseAttribsEntry & aPhrase
) [private]

Parameters

RReadStream & aStream
const TRtPasteContext & aContext
RPhraseAttribsEntry & aPhrase

DoSoloInsertL(TInt, TInt)

void DoSoloInsertL ( TInt aPos,
TInt aLength
) [private]

Parameters

TInt aPos
TInt aLength

DoSplitPhraseL(RPhraseAttribsEntry &, TInt, CParaAttribs *)

void DoSplitPhraseL ( RPhraseAttribsEntry & aCurrentPhrase,
TInt aPhraseOffset,
CParaAttribs * aParaAttribs
) [private]

Parameters

RPhraseAttribsEntry & aCurrentPhrase
TInt aPhraseOffset
CParaAttribs * aParaAttribs

DocumentChanged()

void DocumentChanged ( ) const

ExternalizeItemsPresentInRegisterL(RWriteStream &, TInt, const TDes8 &, const CStyleList *)

void ExternalizeItemsPresentInRegisterL ( RWriteStream & aStream,
TInt aParaCount,
const TDes8 & aBuf,
const CStyleList * aStyleList
) const [private]

Parameters

RWriteStream & aStream
TInt aParaCount
const TDes8 & aBuf
const CStyleList * aStyleList

ExternalizeItemsPresentInStyleRegisterL(RWriteStream &, TInt, const TDes8 &)

void ExternalizeItemsPresentInStyleRegisterL ( RWriteStream & aStream,
TInt aRefStyleCount,
const TDes8 & aBuf
) const [private]

Parameters

RWriteStream & aStream
TInt aRefStyleCount
const TDes8 & aBuf

ExternalizeL(RWriteStream &)

void ExternalizeL ( RWriteStream & aStream ) const

Parameters

RWriteStream & aStream

ExternalizeParaIxL(RWriteStream &, const TLogicalPosition &, const TLogicalPosition &, const CStyleList *)

RPhraseAttribsEntry * ExternalizeParaIxL ( RWriteStream & aStream,
const TLogicalPosition & aStart,
const TLogicalPosition & aEnd,
const CStyleList * aStyleList
) const [private]

Parameters

RWriteStream & aStream
const TLogicalPosition & aStart
const TLogicalPosition & aEnd
const CStyleList * aStyleList

ExternalizeParagraphFormatL(RWriteStream &, const CParaFormatLayer &, const CStyleList *)

void ExternalizeParagraphFormatL ( RWriteStream & aStream,
const CParaFormatLayer & aSpecificParaFormatLayer,
const CStyleList * aStyleList
) const [private]

Parameters

RWriteStream & aStream
const CParaFormatLayer & aSpecificParaFormatLayer
const CStyleList * aStyleList

ExternalizePhraseCountL(RWriteStream &, TInt)

void ExternalizePhraseCountL ( RWriteStream & aStream,
TInt aPhraseCount
) const [private, inline]

Parameters

RWriteStream & aStream
TInt aPhraseCount

ExternalizePhraseIxL(RWriteStream &)

void ExternalizePhraseIxL ( RWriteStream & aStream ) const [private]

Parameters

RWriteStream & aStream

ExternalizePhraseIxL(RWriteStream &, const TLogicalPosition &, TLogicalPosition &, const RPhraseAttribsEntry *)

void ExternalizePhraseIxL ( RWriteStream & aStream,
const TLogicalPosition & aStartPos,
TLogicalPosition & aEndPos,
const RPhraseAttribsEntry * aVirtualTrailingText
) const [private]

Parameters

RWriteStream & aStream
const TLogicalPosition & aStartPos
TLogicalPosition & aEndPos
const RPhraseAttribsEntry * aVirtualTrailingText

ExternalizePhrasesL(RWriteStream &, TInt, TInt, const RPhraseAttribsEntry *)

void ExternalizePhrasesL ( RWriteStream & aStream,
TInt aStart,
TInt aPhraseCount,
const RPhraseAttribsEntry * aVirtualPhrase = NULL
) const [private]

Parameters

RWriteStream & aStream
TInt aStart
TInt aPhraseCount
const RPhraseAttribsEntry * aVirtualPhrase = NULL

ExternalizeReferencedStylesL(RWriteStream &, const TLogicalPosition &, const TLogicalPosition &)

void ExternalizeReferencedStylesL ( RWriteStream & aStream,
const TLogicalPosition & aStart,
const TLogicalPosition & aEnd
) const [private]

Parameters

RWriteStream & aStream
const TLogicalPosition & aStart
const TLogicalPosition & aEnd

ExternalizeRtiHeaderL(RWriteStream &, const TLogicalPosition &, const CStyleList *)

void ExternalizeRtiHeaderL ( RWriteStream & aStream,
const TLogicalPosition & aEnd,
const CStyleList * aStyleList
) const [private]

Parameters

RWriteStream & aStream
const TLogicalPosition & aEnd
const CStyleList * aStyleList

ExternalizeSharedFormatsL(RWriteStream &, const TLogicalPosition &, const TLogicalPosition &, const CStyleList *)

void ExternalizeSharedFormatsL ( RWriteStream & aStream,
const TLogicalPosition & aStart,
const TLogicalPosition & aEnd,
const CStyleList * aStyleList
) const [private]

Parameters

RWriteStream & aStream
const TLogicalPosition & aStart
const TLogicalPosition & aEnd
const CStyleList * aStyleList

FindSharedParaAttribs(const CParaFormatLayer &, const CCharFormatLayer &)

CParaAttribs * FindSharedParaAttribs ( const CParaFormatLayer & aParaFormatLayer,
const CCharFormatLayer & aCharFormatLayer
) [private]

Parameters

const CParaFormatLayer & aParaFormatLayer
const CCharFormatLayer & aCharFormatLayer

FirstPhraseOfParagraph()

TBool FirstPhraseOfParagraph ( ) const [private]

GenerateAllPhraseLinksL()

void GenerateAllPhraseLinksL ( ) [private]

GeneratePhraseLink(CCharFormatLayer *, const CParaFormatLayer *)

void GeneratePhraseLink ( CCharFormatLayer * aPhraseCharFormatLayer,
const CParaFormatLayer * aBase
) [private]

Parameters

CCharFormatLayer * aPhraseCharFormatLayer
const CParaFormatLayer * aBase

GetCharFormat(TCharFormatX &, TCharFormatXMask &, TInt, TInt)

void GetCharFormat ( TCharFormatX & aFormat,
TCharFormatXMask & aMask,
TInt aPos,
TInt aLength
) const

Parameters

TCharFormatX & aFormat
TCharFormatXMask & aMask
TInt aPos
TInt aLength

GetChars(TCharFormatX &, TInt)

TInt GetChars ( TCharFormatX & aFormat,
TInt aPos
) const

Parameters

TCharFormatX & aFormat
TInt aPos

GetCurrentInsertCharFormat()

CCharFormatLayer * GetCurrentInsertCharFormat ( )

GetCurrentRecords(TCurrentIndexRecords &)

void GetCurrentRecords ( TCurrentIndexRecords & aRecord ) const [private]

Parameters

TCurrentIndexRecords & aRecord

GetParaAttribs(const TLogicalPosition &)

CParaAttribs * GetParaAttribs ( const TLogicalPosition & aLogicalPosition ) [private]

Parameters

const TLogicalPosition & aLogicalPosition

GetParaAttribs(CParaAttribs *, CCharFormatLayer &)

CParaAttribs * GetParaAttribs ( CParaAttribs * aParaAttribs,
CCharFormatLayer & aCharFormatLayer
) [private]

Parameters

CParaAttribs * aParaAttribs
CCharFormatLayer & aCharFormatLayer

GetParaAttribsL(const CParaFormatLayer *, const CCharFormatLayer *, CParaAttribs *)

CParaAttribs * GetParaAttribsL ( const CParaFormatLayer * aParaFormat,
const CCharFormatLayer * aCharFormat,
CParaAttribs * aReservedCell = NULL
) [private]

Parameters

const CParaFormatLayer * aParaFormat
const CCharFormatLayer * aCharFormat
CParaAttribs * aReservedCell = NULL

GetParaFormatL(CParaFormat *, TParaFormatMask &, TInt, TInt, CParaFormat::TParaFormatGetMode)

void GetParaFormatL ( CParaFormat * aFormat,
TParaFormatMask & aUndeterminedMask,
TInt aPos,
TInt aLength,
CParaFormat::TParaFormatGetMode aMode
) const

Parameters

CParaFormat * aFormat
TParaFormatMask & aUndeterminedMask
TInt aPos
TInt aLength
CParaFormat::TParaFormatGetMode aMode

GetParagraphFormatL(CParaFormat *, TInt)

void GetParagraphFormatL ( CParaFormat * aFormat,
TInt aPos
) const

Parameters

CParaFormat * aFormat
TInt aPos

GetPhraseFormat(TCurrentIndexRecords &, TCharFormatX &, TCharFormatXMask &, CCharFormatLayer *&)

void GetPhraseFormat ( TCurrentIndexRecords & aCurrent,
TCharFormatX & aFormat,
TCharFormatXMask & aMask,
CCharFormatLayer *& aCharBase
) const [private]

Parameters

TCurrentIndexRecords & aCurrent
TCharFormatX & aFormat
TCharFormatXMask & aMask
CCharFormatLayer *& aCharBase

GetPictureSizeInTwips(TSize &, TInt)

TInt GetPictureSizeInTwips ( TSize & aSize,
TInt aPos
) const

Parameters

TSize & aSize
TInt aPos

GetSpecificCharFormat(TCharFormatX &, TCharFormatXMask &, TInt)

void GetSpecificCharFormat ( TCharFormatX & aFormat,
TCharFormatXMask & aMask,
TInt aPos
) const

Parameters

TCharFormatX & aFormat
TCharFormatXMask & aMask
TInt aPos

GetSpecificCharFormatDirection(TCharFormatX &, TCharFormatXMask &, TInt, TBool)

void GetSpecificCharFormatDirection ( TCharFormatX & aFormat,
TCharFormatXMask & aMask,
TInt aPos,
TBool aGetLeft
) const

Parameters

TCharFormatX & aFormat
TCharFormatXMask & aMask
TInt aPos
TBool aGetLeft

GetSpecificParagraphFormatL(CParaFormat *, TParaFormatMask &, TInt)

void GetSpecificParagraphFormatL ( CParaFormat * aFormat,
TParaFormatMask & aMask,
TInt aPos
) const

Parameters

CParaFormat * aFormat
TParaFormatMask & aMask
TInt aPos

GetTextFragmentL(RReadStream &)

TTextFragment GetTextFragmentL ( RReadStream & aStream ) [private]

Parameters

RReadStream & aStream

HasMarkupData(const CFormatLayer *)

TBool HasMarkupData ( const CFormatLayer * aGlobalParaFormatLayer ) const

Parameters

const CFormatLayer * aGlobalParaFormatLayer

ImposeCharacterStyleL(CCharFormatLayer **)

void ImposeCharacterStyleL ( CCharFormatLayer ** aCharLayer ) [private]

Parameters

CCharFormatLayer ** aCharLayer

InsertCharFormatIsActive()

TBool InsertCharFormatIsActive ( )

InsertL(TInt, const TDesC &, const CParaFormatLayer &)

void InsertL ( TInt aPos,
const TDesC & aBuf,
const CParaFormatLayer & aGlobalParaFormatLayer
)

Parameters

TInt aPos
const TDesC & aBuf
const CParaFormatLayer & aGlobalParaFormatLayer

InsertL(TInt, const TPictureHeader &, TBool &)

void InsertL ( TInt aPos,
const TPictureHeader & aPicHdr,
TBool & aPictureOwnershipTaken
)

Parameters

TInt aPos
const TPictureHeader & aPicHdr
TBool & aPictureOwnershipTaken

InsertParagraphL(TInt, const CParaFormatLayer &)

void InsertParagraphL ( TInt aPos,
const CParaFormatLayer & aGlobalParaFormatLayer
)

Parameters

TInt aPos
const CParaFormatLayer & aGlobalParaFormatLayer

InternalizeL(RReadStream &, const CParaFormatLayer *, const CCharFormatLayer *, const CStyleList *)

void InternalizeL ( RReadStream & aStream,
const CParaFormatLayer * aGlobalParaLayer,
const CCharFormatLayer * aGlobalCharLayer,
const CStyleList * aStyleList
)

Parameters

RReadStream & aStream
const CParaFormatLayer * aGlobalParaLayer
const CCharFormatLayer * aGlobalCharLayer
const CStyleList * aStyleList

InternalizeParaIxL(RReadStream &, const TRtPasteContext &)

void InternalizeParaIxL ( RReadStream & aStream,
const TRtPasteContext & aContext
) [private]

Parameters

RReadStream & aStream
const TRtPasteContext & aContext

InternalizeParagraphFormatL(RReadStream &, const TRtPasteContext &)

CParaFormatLayer * InternalizeParagraphFormatL ( RReadStream & aStream,
const TRtPasteContext & aContext
) [private]

Parameters

RReadStream & aStream
const TRtPasteContext & aContext

InternalizePhraseIxL(RReadStream &, const CCharFormatLayer *)

void InternalizePhraseIxL ( RReadStream & aStream,
const CCharFormatLayer * aGlobalCharFormat
) [private]

Parameters

RReadStream & aStream
const CCharFormatLayer * aGlobalCharFormat

InternalizeRtiHeaderL(RReadStream &, TRtPasteContext &)

void InternalizeRtiHeaderL ( RReadStream & aStream,
TRtPasteContext & aContext
) [private]

Parameters

RReadStream & aStream
TRtPasteContext & aContext

InternalizeSharedFormatsL(RReadStream &, const TRtPasteContext &)

void InternalizeSharedFormatsL ( RReadStream & aStream,
const TRtPasteContext & aContext
) [private]

Parameters

RReadStream & aStream
const TRtPasteContext & aContext

MarkRegister(TDes8 &, TInt, TInt)

TInt MarkRegister ( TDes8 & aBuf,
TInt aStartPara,
TInt aEndPara
) const [private]

Parameters

TDes8 & aBuf
TInt aStartPara
TInt aEndPara

MarkStyleRegister(TDes8 &, TInt, TInt)

TInt MarkStyleRegister ( TDes8 & aBuf,
TInt aStartPara,
TInt aEndPara
) const [private]

Parameters

TDes8 & aBuf
TInt aStartPara
TInt aEndPara

MergePhrases(TInt)

TBool MergePhrases ( TInt aPos ) [private]

Parameters

TInt aPos

MergePhrases(const TLogicalPosition &)

TBool MergePhrases ( const TLogicalPosition & aPos ) [private]

Parameters

const TLogicalPosition & aPos

MergePhrases(TInt, RPhraseAttribsEntry &, CParaAttribs &)

TInt MergePhrases ( TInt aPhrase,
RPhraseAttribsEntry & aPhraseAttribs,
CParaAttribs & aParaAttribs
) [private]

Parameters

TInt aPhrase
RPhraseAttribsEntry & aPhraseAttribs
CParaAttribs & aParaAttribs

ModifySpecificFormatting(CParaFormatLayer &, CCharFormatLayer &, CParagraphStyle::TApplyParaStyleMode)

void ModifySpecificFormatting ( CParaFormatLayer & aPl,
CCharFormatLayer & aCl,
CParagraphStyle::TApplyParaStyleMode aMode
) [private]

NewInsertCharFormatL(const TCharFormatX &, const TCharFormatXMask &, TInt)

void NewInsertCharFormatL ( const TCharFormatX & aFormat,
const TCharFormatXMask & aMask,
TInt aPos
)

Parameters

const TCharFormatX & aFormat
const TCharFormatXMask & aMask
TInt aPos

NewL(const CParaFormatLayer *, const CCharFormatLayer *, const CRichText &, TInt, TInt)

CRichTextIndex * NewL ( const CParaFormatLayer * aGlobalParaLayer,
const CCharFormatLayer * aGlobalCharLayer,
const CRichText & aText,
TInt aParaGran,
TInt aPhraseGran
) [static]

Parameters

const CParaFormatLayer * aGlobalParaLayer
const CCharFormatLayer * aGlobalCharLayer
const CRichText & aText
TInt aParaGran
TInt aPhraseGran

NewL(const CStreamStore &, TStreamId, const CParaFormatLayer *, const CCharFormatLayer *, const CRichText &)

CRichTextIndex * NewL ( const CStreamStore & aStore,
TStreamId aId,
const CParaFormatLayer * aGlobalParaLayer,
const CCharFormatLayer * aGlobalCharLayer,
const CRichText & aText
) [static]

Parameters

const CStreamStore & aStore
TStreamId aId
const CParaFormatLayer * aGlobalParaLayer
const CCharFormatLayer * aGlobalCharLayer
const CRichText & aText

Normalize(TInt)

void Normalize ( TInt aPos )

Parameters

TInt aPos

NormalizeNow(const TLogicalPosition &)

void NormalizeNow ( const TLogicalPosition & aNormalizePos ) [private]

Parameters

const TLogicalPosition & aNormalizePos

NormalizeSharedList()

void NormalizeSharedList ( ) [private]

NotifyStyleChangedL(const CParagraphStyle *, const CParagraphStyle *, const CParaFormatLayer &, const CCharFormatLayer &)

void NotifyStyleChangedL ( const CParagraphStyle * aTo,
const CParagraphStyle * aFrom,
const CParaFormatLayer & aGlobalParaFormatLayer,
const CCharFormatLayer & aGlobalCharFormatLayer
)

Parameters

const CParagraphStyle * aTo
const CParagraphStyle * aFrom
const CParaFormatLayer & aGlobalParaFormatLayer
const CCharFormatLayer & aGlobalCharFormatLayer

OwningParagraph(TInt, TLogicalPosition *)

TInt OwningParagraph ( TInt aPos,
TLogicalPosition * aLastUsed = NULL
) const [private]

Parameters

TInt aPos
TLogicalPosition * aLastUsed = NULL

ParaLengthFromBuffer(TDesC &)

TInt ParaLengthFromBuffer ( TDesC & aBuf ) const [private]

Parameters

TDesC & aBuf

ParagraphCount()

TInt ParagraphCount ( ) const [inline]

ParagraphNumberForPos(TInt &)

TInt ParagraphNumberForPos ( TInt & aPos ) const

Parameters

TInt & aPos

ParagraphStyle(TBool &, TInt, TInt)

const CParaFormatLayer * ParagraphStyle ( TBool & aStylesChangesOverRange,
TInt aPos,
TInt aLength
) const

Parameters

TBool & aStylesChangesOverRange
TInt aPos
TInt aLength

PasteFromStreamL(const CStreamStore &, RReadStream &, TInt, CParagraphStyle::TStylePasteMode, const CParaFormatLayer *, const CCharFormatLayer *)

void PasteFromStreamL ( const CStreamStore & aStore,
RReadStream & aStream,
TInt aPos,
CParagraphStyle::TStylePasteMode aStylePasteMode,
const CParaFormatLayer * aGlobalParaLayer,
const CCharFormatLayer * aGlobalCharLayer
)

Parameters

const CStreamStore & aStore
RReadStream & aStream
TInt aPos
CParagraphStyle::TStylePasteMode aStylePasteMode
const CParaFormatLayer * aGlobalParaLayer
const CCharFormatLayer * aGlobalCharLayer

PasteIxL(RReadStream &, TRtPasteContext &, const CParaAttribsMap &, CStyleMap *)

void PasteIxL ( RReadStream & aStream,
TRtPasteContext & aContext,
const CParaAttribsMap & aMap,
CStyleMap * aStyleMap
) [private]

Parameters

RReadStream & aStream
TRtPasteContext & aContext
const CParaAttribsMap & aMap
CStyleMap * aStyleMap

PasteParaIxL(RReadStream &, TRtPasteContext &, TInt, const CParaAttribsMap &, RPhraseAttribsEntry *&, CStyleMap *)

TInt PasteParaIxL ( RReadStream & aStream,
TRtPasteContext & aContext,
TInt aCompleteParaCount,
const CParaAttribsMap & aMap,
RPhraseAttribsEntry *& aFirstParaVirtualPhrase,
CStyleMap * aStyleMap
) [private]

Parameters

RReadStream & aStream
TRtPasteContext & aContext
TInt aCompleteParaCount
const CParaAttribsMap & aMap
RPhraseAttribsEntry *& aFirstParaVirtualPhrase
CStyleMap * aStyleMap

PasteParagraphFormatL(RReadStream &, const TRtPasteContext &, CStyleMap *)

CParaFormatLayer * PasteParagraphFormatL ( RReadStream & aStream,
const TRtPasteContext & aContext,
CStyleMap * styleMap
) [private]

Parameters

RReadStream & aStream
const TRtPasteContext & aContext
CStyleMap * styleMap

PastePhraseIxL(RReadStream &, TRtPasteContext &, const RPhraseAttribsEntry *)

void PastePhraseIxL ( RReadStream & aStream,
TRtPasteContext & aContext,
const RPhraseAttribsEntry * aFirstParaVirtualPhrase
) [private]

Parameters

RReadStream & aStream
TRtPasteContext & aContext
const RPhraseAttribsEntry * aFirstParaVirtualPhrase

PasteSharedFormatsL(RReadStream &, CParaAttribsMap &, const TRtPasteContext &, CStyleMap *)

void PasteSharedFormatsL ( RReadStream & aStream,
CParaAttribsMap & aMap,
const TRtPasteContext & aContext,
CStyleMap * aStyleMap
) [private]

Parameters

RReadStream & aStream
CParaAttribsMap & aMap
const TRtPasteContext & aContext
CStyleMap * aStyleMap

PasteStylesL(RReadStream &, CStyleMap &, const TRtPasteContext &)

void PasteStylesL ( RReadStream & aStream,
CStyleMap & aMap,
const TRtPasteContext & aContext
) [private]

Parameters

RReadStream & aStream
CStyleMap & aMap
const TRtPasteContext & aContext

PhraseCount()

TInt PhraseCount ( ) const [private, inline]

PhraseSplit()

TBool PhraseSplit ( ) const [private, inline]

PictureHandleL(TInt, MLayDoc::TForcePictureLoad)

CPicture * PictureHandleL ( TInt aPos,
MLayDoc::TForcePictureLoad aForceLoad
) const

Parameters

TInt aPos
MLayDoc::TForcePictureLoad aForceLoad

PictureHeader(TInt)

TPictureHeader PictureHeader ( TInt aPos ) const

Parameters

TInt aPos

PictureHeaderPtr(TInt)

TPictureHeader * PictureHeaderPtr ( TInt aPos )

Parameters

TInt aPos

RbInsertPicture(CParaAttribs *)

void RbInsertPicture ( CParaAttribs * aGoodParaAttribs ) [private]

Parameters

CParaAttribs * aGoodParaAttribs

RbPasteParaIxL(const TLogicalPosition &, TInt, TInt)

void RbPasteParaIxL ( const TLogicalPosition & aPastePos,
TInt aParaCount,
TInt aRet
) [private]

Parameters

const TLogicalPosition & aPastePos
TInt aParaCount
TInt aRet

RbPastePhraseIxL(const TLogicalPosition &, TInt, TInt)

void RbPastePhraseIxL ( const TLogicalPosition & aPos,
TInt aPhraseCount,
TInt aRet
) [private]

Parameters

const TLogicalPosition & aPos
TInt aPhraseCount
TInt aRet

RbPasteSharedFormatsL(TInt)

void RbPasteSharedFormatsL ( TInt aRet ) [private]

Parameters

TInt aRet

RbRemoveInsertedParaAttribsEntries(TInt, TInt)

void RbRemoveInsertedParaAttribsEntries ( TInt aFirstParaInsertPos,
TInt aInsertedParaCount
) [private]

Parameters

TInt aFirstParaInsertPos
TInt aInsertedParaCount

RbRemoveInsertedPhraseAttribsEntries(TInt, TInt)

void RbRemoveInsertedPhraseAttribsEntries ( TInt aFirstPhraseInsertPos,
TInt aInsertedPhraseCount
) [private]

Parameters

TInt aFirstPhraseInsertPos
TInt aInsertedPhraseCount

ReadTUint8CountL(RReadStream &)

TUint8 ReadTUint8CountL ( RReadStream & aStream ) const [private]

Parameters

RReadStream & aStream

RebalanceIndex()

void RebalanceIndex ( ) [private]

RefNum(const CParaAttribs *)

TUint8 RefNum ( const CParaAttribs * aParaAttribs ) const [private]

Parameters

const CParaAttribs * aParaAttribs

RemoveFromPhraseIx(TInt, TInt)

void RemoveFromPhraseIx ( TInt aPos,
TInt aCount = 1
) [private]

Remove phrases from the containing object. This includes freeing referenced resources. (pictures etc.)

Parameters

TInt aPos The first phrase to be deleted
TInt aCount = 1 The number of phrases to be deleted

RemoveSpecificCharFormatL(TInt, TInt)

void RemoveSpecificCharFormatL ( TInt aPos,
TInt aLength
)

Parameters

TInt aPos
TInt aLength

RemoveSpecificParaFormatL(TInt, TInt)

void RemoveSpecificParaFormatL ( TInt aPos,
TInt aLength
)

Parameters

TInt aPos
TInt aLength

RequestReclaimShareL(CParaAttribs *, TParaAttribsEntry *)

CParaAttribs * RequestReclaimShareL ( CParaAttribs * aParaAttribs,
TParaAttribsEntry * aParaEntry
) [private]

Parameters

CParaAttribs * aParaAttribs
TParaAttribsEntry * aParaEntry

RequestShare(const TLogicalPosition &)

CParaAttribs * RequestShare ( const TLogicalPosition & aLogicalPosition ) [private]

Parameters

const TLogicalPosition & aLogicalPosition

RequestShareL(CParaAttribs *, CCharFormatLayer *, CParaAttribs *)

CParaAttribs * RequestShareL ( CParaAttribs * aParaAttribs,
CCharFormatLayer * aCharFormat = NULL,
CParaAttribs * aReservedCell = NULL
) [private]

Parameters

CParaAttribs * aParaAttribs
CCharFormatLayer * aCharFormat = NULL
CParaAttribs * aReservedCell = NULL

ReserveCellL()

CParaAttribs * ReserveCellL ( ) [private]

ReserveCellLC()

CParaAttribs * ReserveCellLC ( ) [private]

Reset(const CParaFormatLayer &)

void Reset ( const CParaFormatLayer & aNormalParagraphStyle )

Parameters

const CParaFormatLayer & aNormalParagraphStyle

ResolvedStreamStore(TInt)

const CStreamStore * ResolvedStreamStore ( TInt aPos ) const [private, inline]

Parameters

TInt aPos

RestoreL(const CStreamStore &, TStreamId, const CParaFormatLayer *, const CCharFormatLayer *, const CStyleList *)

void RestoreL ( const CStreamStore & aStore,
TStreamId aId,
const CParaFormatLayer * aGlobalParaLayer,
const CCharFormatLayer * aGlobalCharLayer,
const CStyleList * aStyleList
)

Parameters

const CStreamStore & aStore
TStreamId aId
const CParaFormatLayer * aGlobalParaLayer
const CCharFormatLayer * aGlobalCharLayer
const CStyleList * aStyleList

ScanToPosition(TInt, TScanToPositionMode, TLogicalPosition *)

void ScanToPosition ( TInt aCharPos,
TScanToPositionMode aMode,
TLogicalPosition * aLastUsed = NULL
) [private]

Parameters

TInt aCharPos
TScanToPositionMode aMode
TLogicalPosition * aLastUsed = NULL

SetForDeleteL(TIndexDeleteInfo &, TInt, TInt)

void SetForDeleteL ( TIndexDeleteInfo & aInfo,
TInt aPos,
TInt aLength
)

Parameters

TIndexDeleteInfo & aInfo
TInt aPos
TInt aLength

SetInsertCharFormatL(const TCharFormatX &, const TCharFormatXMask &, TInt)

void SetInsertCharFormatL ( const TCharFormatX & aFormat,
const TCharFormatXMask & aMask,
TInt aPos
)

Sets an *InsertPending* state, where format has been inserted into the text, but no content has yet been inserted. This *state* is cancelled by cursor movement etc. Split the current phrase at aPos (if necessary) and insert a zero length phrase, ready to accept the pending content of the specified format.

Parameters

const TCharFormatX & aFormat
const TCharFormatXMask & aMask
TInt aPos

SetPhraseSplit(TBool)

void SetPhraseSplit ( TBool aBool ) [private, inline]

Parameters

TBool aBool

SetSpecificMarkupInternalized(TBool)

void SetSpecificMarkupInternalized ( TBool aBool ) [inline]

Parameters

TBool aBool

Share(TParaAttribsEntry &, TInt)

void Share ( TParaAttribsEntry & aParaEntry,
TInt aPhrase
) [private]

Parameters

TParaAttribsEntry & aParaEntry
TInt aPhrase

SharedParaAttribs(TUint8)

CParaAttribs * SharedParaAttribs ( TUint8 aOrdinal ) [private]

Parameters

TUint8 aOrdinal

SharedParaAttribsEntryCountL()

TUint8 SharedParaAttribsEntryCountL ( ) const [private]

SharedParaCount(const CRichTextIndex *)

TInt SharedParaCount ( const CRichTextIndex * aSource ) const

Parameters

const CRichTextIndex * aSource

SpecificMarkupInternalized()

TBool SpecificMarkupInternalized ( ) const [inline]

SplitParagraphAtPastePosL(TLogicalPosition &, TLogicalPosition &, const CParaFormatLayer &)

void SplitParagraphAtPastePosL ( TLogicalPosition & aPastePos,
TLogicalPosition & aNewPos,
const CParaFormatLayer & aGlobalParaFormatLayer
) [private]

Parameters

TLogicalPosition & aPastePos
TLogicalPosition & aNewPos
const CParaFormatLayer & aGlobalParaFormatLayer

SplitPhraseL(TInt)

void SplitPhraseL ( TInt aSplitPos ) [private]

Parameters

TInt aSplitPos

SplitPhraseL(TInt, TInt, CParaAttribs *)

void SplitPhraseL ( TInt aPhraseElement,
TInt aPhraseOffset,
CParaAttribs * aParaAttribs
) [private]

Parameters

TInt aPhraseElement
TInt aPhraseOffset
CParaAttribs * aParaAttribs

SplitPhraseL(TInt, TInt, RPhraseAttribsEntry &, CParaAttribs &)

void SplitPhraseL ( TInt aPhrase,
TInt anOffset,
RPhraseAttribsEntry & aPhraseAttribs,
CParaAttribs & aParaAttribs
) [private]

Parameters

TInt aPhrase
TInt anOffset
RPhraseAttribsEntry & aPhraseAttribs
CParaAttribs & aParaAttribs

StoreMarkupL(CStreamStore &, const CStyleList *)

TStreamId StoreMarkupL ( CStreamStore & aStore,
const CStyleList * aStyleList
) const

Parameters

CStreamStore & aStore
const CStyleList * aStyleList

StorePicturesL(CStreamStore &, CStoreMap &)

void StorePicturesL ( CStreamStore & aStore,
CStoreMap & aMap
) const

Parameters

CStreamStore & aStore
CStoreMap & aMap

StorePicturesL(CStreamStore &, CStoreMap &, TInt, TInt)

void StorePicturesL ( CStreamStore & aStore,
CStoreMap & aMap,
TInt aPos,
TInt aLength
) const

Parameters

CStreamStore & aStore
CStoreMap & aMap
TInt aPos
TInt aLength

TidyAfterDelete(const TIndexDeleteInfo &)

void TidyAfterDelete ( const TIndexDeleteInfo & aInfo ) [private]

Parameters

const TIndexDeleteInfo & aInfo

UpdateInsertCharFormatL(const TCharFormatX &, const TCharFormatXMask &)

void UpdateInsertCharFormatL ( const TCharFormatX & aFormat,
const TCharFormatXMask & aMask
)

Parameters

const TCharFormatX & aFormat
const TCharFormatXMask & aMask

Member Enumerations Documentation

Enum TPositionOrPhrase

Enumerators

EPositionOnly
EFollowingPhrase

Enum TScanToPositionMode

Enumerators

EScanToPositionMatchLeft
EScanToPositionAbsolute

Member Data Documentation

__DECLARE_TEST

__DECLARE_TEST

TUint32 iFlags

TUint32 iFlags [private]

CCharFormatLayer * iLastCharacterStyle

CCharFormatLayer * iLastCharacterStyle [private]

__MUTABLE TLogicalPosition iLastUsed

__MUTABLE TLogicalPosition iLastUsed [private]

CArrayFixSeg< TParaAttribsEntry > * iParaIx

CArrayFixSeg < TParaAttribsEntry > * iParaIx

TInt iPendingNewPhrasePos

TInt iPendingNewPhrasePos [private]

CArrayFixSeg< RPhraseAttribsEntry > * iPhraseIx

CArrayFixSeg < RPhraseAttribsEntry > * iPhraseIx

TInt iPictureCount

TInt iPictureCount

__MUTABLE TLogicalPosition iPos

__MUTABLE TLogicalPosition iPos

CParaAttribs * iRollbackParaAttribsHandle

CParaAttribs * iRollbackParaAttribsHandle [private]

__MUTABLE TDblQue< CParaAttribs > iSharedParaQueHead

__MUTABLE TDblQue < CParaAttribs > iSharedParaQueHead [private]

const CRichText & iText

const CRichText & iText [private]