CRichText Class Reference

class CRichText : public CGlobalText

Text with rich formatting.

In rich text, each paragraph can have a different paragraph format, and each character can have a different character format.

All formatting in a rich text object is based on a global character and paragraph format layer, and a chain of layers on which they may be based. In case of conflict, upper layers override lower layers. These two format layers are specified on construction, and are not owned by the text object. Additional formatting may then be added to any portion of the text. This is called specific formatting and in case of conflict, it overrides the formatting in the global layers. Specific formatting is owned by the text object. So, the effective formatting of a rich text object may be composed of specific formatting and formatting specified in a chain of format layers.

Rich text supports styles. A style is a named set of paragraph and character format attributes. Styles are stored in a list which is passed to the rich text object on construction, or which is assigned to the object after construction. Styles can be appended to and removed from the list and existing styles can be modified. Only paragraph styles are supported. This means that styles are applied to entire paragraphs, although both character and paragraph format attributes may be set in the style.

Rich text also supports object embedding. Embedded objects are represented in rich text by CPicture-derived objects. A rich text object which supports the display of pictures needs to be supplied with a picture factory.

CParagraphStyle

Public Member Functions
~CRichText()
IMPORT_C voidActivateDefaultParserL(MParser *)
IMPORT_C voidActivateParserL(MParser *)
IMPORT_C voidAppendParagraphL(TInt)
IMPORT_C voidAppendTakingSolePictureOwnershipL(const CRichText &)
IMPORT_C voidApplyCharFormatL(const TCharFormat &, const TCharFormatMask &, TInt, TInt)
voidApplyExtendedCharFormatL(const TCharFormatX &, const TCharFormatXMask &, TInt, TInt)
IMPORT_C voidApplyParaFormatL(const CParaFormat *, const TParaFormatMask &, TInt, TInt)
IMPORT_C voidApplyParagraphStyleL(const CParagraphStyle &, TInt, TInt, CParagraphStyle::TApplyParaStyleMode)
IMPORT_C voidCancelInsertCharFormat()
IMPORT_C TIntCharPosOfParagraph(TInt &, TInt)
IMPORT_C TEtextComponentInfoComponentInfo()
IMPORT_C voidCopyToStoreL(CStreamStore &, CStreamDictionary &, TInt, TInt)
IMPORT_C TBoolCursorOverTag(TInt, MParser *&, TInt &, TInt &)
IMPORT_C voidDeactivateParser(MParser *)
IMPORT_C voidDeactivateParserDefaults()
IMPORT_C TBoolDelSetInsertCharFormatL(TInt, TInt)
IMPORT_C voidDeleteFromParagraph(TInt, TInt)
IMPORT_C TBoolDeleteL(TInt, TInt)
IMPORT_C voidDeleteParagraph(TInt, TInt)
IMPORT_C voidDetachFromStoreL(CPicture::TDetach)
IMPORT_C voidDetachFromStoreL(CPicture::TDetach, TInt, TInt)
IMPORT_C voidDropPictureOwnership(TInt)
IMPORT_C voidExtendedInterface(TAny *&, TUid)
IMPORT_C voidExternalizeL(RWriteStream &)
IMPORT_C voidExternalizeMarkupDataL(RWriteStream &)
IMPORT_C voidExternalizeStyleDataL(RWriteStream &)
IMPORT_C voidGetCharFormat(TCharFormat &, TCharFormatMask &, TInt, TInt)
IMPORT_C voidGetChars(TPtrC &, TCharFormat &, TInt)
voidGetExtendedCharFormat(TCharFormatX &, TCharFormatXMask &, TInt, TInt)
IMPORT_C voidGetParaFormatL(CParaFormat *, TParaFormatMask &, TInt, TInt, CParaFormat::TParaFormatGetMode)
IMPORT_C voidGetParagraphFormatL(CParaFormat *, TInt)
IMPORT_C TIntGetPictureSizeInTwips(TSize &, TInt)
IMPORT_C voidGetSpecificCharFormat(TCharFormat &, TCharFormatMask &, TInt)
IMPORT_C voidGetSpecificCharFormatRight(TCharFormat &, TCharFormatMask &, TInt)
IMPORT_C voidGetSpecificParagraphFormatL(CParaFormat *, TParaFormatMask &, TInt)
voidGetTextAndExtendedFormat(TPtrC &, TCharFormatX &, TInt)
IMPORT_C TBoolHasMarkupData()
IMPORT_C voidInsertL(TInt, const TChar &)
IMPORT_C voidInsertL(TInt, const TDesC &)
IMPORT_C voidInsertL(TInt, const TPictureHeader &)
IMPORT_C voidInternalizeL(RReadStream &)
IMPORT_C voidInternalizeMarkupDataL(RReadStream &)
IMPORT_C voidInternalizeStyleDataL(RReadStream &)
IMPORT_C CRichText *NewL(const CParaFormatLayer *, const CCharFormatLayer *, TDocumentStorage, TInt, TParaType)
IMPORT_C CRichText *NewL(const CParaFormatLayer *, const CCharFormatLayer *, const CStyleList &, TDocumentStorage, TInt, TParaType)
IMPORT_C CRichText *NewL(const CStreamStore &, TStreamId, const CParaFormatLayer *, const CCharFormatLayer *, MTextFieldFactory *, TDocumentStorage)
IMPORT_C CRichText *NewL(const CStreamStore &, TStreamId, const CParaFormatLayer *, const CCharFormatLayer *, MPictureFactory *, MRichTextStoreResolver *, MTextFieldFactory *, TDocumentStorage)
IMPORT_C voidNotifyStyleChangedL(const CParagraphStyle *, const CParagraphStyle *)
voidNotifyStyleDeletedL(const CParagraphStyle *)
IMPORT_C TIntParagraphCount()
IMPORT_C TIntParagraphNumberForPos(TInt &)
IMPORT_C const CParaFormatLayer *ParagraphStyle(TBool &, TInt, TInt)
IMPORT_C TBoolParseText(TInt &, TInt &, TBool)
IMPORT_C TIntPasteFromStoreL(const CStreamStore &, const CStreamDictionary &, TInt)
IMPORT_C TIntPasteFromStoreL(const CStreamStore &, const CStreamDictionary &, TInt, CParagraphStyle::TStylePasteMode)
IMPORT_C TIntPictureCount()
MPictureFactory *PictureFactory()
IMPORT_C CPicture *PictureHandleL(TInt, MLayDoc::TForcePictureLoad)
IMPORT_C TPictureHeaderPictureHeader(TInt)
IMPORT_C TIntPositionOfNextTag(TInt)
IMPORT_C TIntPositionOfNextTag(TInt, const MParser *)
IMPORT_C TIntPositionOfPrevTag(TInt)
IMPORT_C TIntPositionOfPrevTag(TInt, const MParser *)
IMPORT_C voidRemoveSpecificCharFormatL(TInt, TInt)
IMPORT_C voidRemoveSpecificParaFormatL(TInt, TInt)
IMPORT_C voidReset()
IMPORT_C voidRestoreComponentsL(const CStreamStore &)
IMPORT_C voidRestoreWithStyleListL(const CStreamStore &, TStreamId, const CStyleList &)
IMPORT_C voidSetEditObserver(MEditObserver *)
IMPORT_C voidSetHasChanged(TBool)
IMPORT_C voidSetInsertCharFormatL(const TCharFormat &, const TCharFormatMask &, TInt)
IMPORT_C voidSetPictureFactory(MPictureFactory *, MRichTextStoreResolver *)
voidSetStyleListExternallyOwned(TBool)
IMPORT_C voidSetStyleListExternallyOwned(const CStyleList &)
IMPORT_C voidStoreComponentsL(CStreamStore &, CStoreMap &)
IMPORT_C voidStoreMarkupComponentsL(CStreamStore &, CStoreMap &)
MRichTextStoreResolver *StoreResolver()
TInt StyleCount()
CStyleList *StyleList()
TBool StyleListExternallyOwned()
TBool StyleListPresent()
IMPORT_C voidUpdateFieldL(TInt)
Protected Member Functions
CRichText(const CParaFormatLayer *, const CCharFormatLayer *, CStyleList *)
voidCompletePasteRichTextFromStoreL(const CStreamStore &, TStreamId &, TInt, CParagraphStyle::TStylePasteMode)
IMPORT_C voidConstructL(TDocumentStorage, TInt, TParaType)
IMPORT_C voidConstructL(const CStreamStore &, TStreamId, MPictureFactory *, MRichTextStoreResolver *, MTextFieldFactory *, TDocumentStorage)
IMPORT_C voidCopyComponentsL(CStreamStore &, CStoreMap &, TInt, TInt, TStreamId)
IMPORT_C voidCopyToStreamL(RWriteStream &, TInt, TInt, TStreamId)
IMPORT_C voidCopyToStreamL(RWriteStream &, TInt, TInt)
voidCopyToStreamL(RWriteStream &, TInt, TInt, TStreamId, TBool)
voidDoAppendTakingSolePictureOwnershipL(const CRichText &)
TStreamId DoCopyToStoreL(CStreamStore &, TInt, TInt, TStreamId, TBool)
IMPORT_C voidDoExternalizeMarkupDataL(RWriteStream &)
IMPORT_C voidDoExternalizeStyleDataL(RWriteStream &)
IMPORT_C voidDoInternalizeMarkupDataL(RReadStream &)
IMPORT_C voidDoInternalizeStyleDataL(RReadStream &)
voidDoInternalizeStyleDataL(RReadStream &, const CStyleList *)
voidInternalizeL(RReadStream &, const CStyleList *)
TInt PastePlainTextFromStoreL(const CStreamStore &, TStreamId &, TInt)
TInt PasteRichTextFromStoreL(const CStreamStore &, const CStreamDictionary &, TStreamId &, TInt, CParagraphStyle::TStylePasteMode)
voidPrepareAppendMarkupL(const CRichText &)
voidRestoreStylesL(const CStreamStore &, TStreamId, const CParaFormatLayer *, const CCharFormatLayer *)
IMPORT_C voidRtInsertL(TInt, const TDesC &)
voidStoreMarkupL(CStreamStore &, CStoreMap &)
voidStoreStylesL(CStreamStore &, CStoreMap &)
Private Member Functions
CRichText(const CRichText &)
voidCallEditObserver(TInt, TInt)
voidCompletePastePlainTextL(TInt, TInt)
voidCreateAndGenerateMarkupComponentL()
TBool CreateEmptyMarkupComponentL()
voidCreateParserETextTLSL()
voidDoApplyExtendedCharFormatL(const TCharFormatX &, const TCharFormatXMask &, TInt, TInt)
TBool DoCursorOverTag(TInt, MParser *&, TInt &, TInt &)
TInt DoPasteRtFromStoreL(const CStreamStore &, const CStreamDictionary &, TInt, CParagraphStyle::TStylePasteMode)
voidGenerateMarkupL()
voidGetSpecificCharFormatLeftRight(TCharFormat &, TCharFormatMask &, TInt, TBool)
TBool IndexPresent()
voidKillIndex()
voidKillStyleList()
voidOverrideFormatForParsersIfApplicable(TPtrC &, TCharFormatX &, TInt)
TBool ParaTypeIsSingle()
voidSetExtendedInsertCharFormatL(const TCharFormatX &, const TCharFormatXMask &, TInt)
voidSetParaTypeIsSingle(TBool)
CRichText &operator=(const CRichText &)
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()
CEditableText::CancelFepInlineEdit(TBool &,TInt &,TInt &,TInt &,TInt)
CEditableText::CommitFepInlineEditL(TBool &,TInt &,TInt &,TInt &,TInt)
CEditableText::GetLengthOfInlineText()const
CEditableText::GetPositionOfInlineTextInDocument()const
CEditableText::HasChanged()const
CEditableText::OverrideFormatOfInlineTextIfApplicable(TPtrC &,TCharFormat &,TInt)const
CEditableText::RestoreL(const CStreamStore &,TStreamId)
CEditableText::StartFepInlineEditL(TBool &,TInt &,TInt &,TInt &,TInt,const TDesC &,TInt,TInt,MFepInlineTextFormatRetriever &)
CEditableText::StoreL(CStreamStore &)const
CEditableText::UpdateFepInlineTextL(TBool &,TInt &,TInt &,TInt &,TInt,const TDesC &)
CEditableText::~CEditableText()
CGlobalText::CGlobalText()
CGlobalText::CGlobalText(const CParaFormatLayer *,const CCharFormatLayer *)
CGlobalText::CancelSelectLabel()
CGlobalText::EnquirePageBreak(TInt,TInt)const
CGlobalText::GlobalCharFormatLayer()const
CGlobalText::GlobalParaFormatLayer()const
CGlobalText::LdDocumentLength()const
CGlobalText::LdToParagraphStart(TInt &)const
CGlobalText::NewL(const CParaFormatLayer *,const CCharFormatLayer *,TDocumentStorage,TInt)
CGlobalText::SelectParagraphLabel(TInt)
CGlobalText::SetGlobalCharFormat(const CCharFormatLayer *)
CGlobalText::SetGlobalParaFormat(const CParaFormatLayer *)
CGlobalText::~CGlobalText()
CPlainText::CPlainText()
CPlainText::ConstructL(TDocumentStorage,TInt)
CPlainText::ConstructL(const CStreamStore &,TStreamId,MTextFieldFactory *,TDocumentStorage)
CPlainText::ConsumeAdornmentL(RReadStream &)
CPlainText::ConvertAllFieldsToText()
CPlainText::ConvertFieldToText(TInt)
CPlainText::CopyComponentsL(CStreamStore &,CStoreMap &,TInt,TInt)const
CPlainText::Delete(TInt,TInt)
CPlainText::DoConstructL(TDocumentStorage,TInt,MTextFieldFactory *)
CPlainText::DoCopyToStoreL(CStreamStore &,CStreamDictionary &,TInt,TInt)const
CPlainText::DoExternalizeFieldDataL(RWriteStream &)const
CPlainText::DoExternalizePlainTextL(RWriteStream &)const
CPlainText::DoExtract(TDes &,TInt,TInt,TUint)const
CPlainText::DoInternalizeFieldDataL(RReadStream &)
CPlainText::DoInternalizePlainTextL(RReadStream &)
CPlainText::DoPasteFromStoreL(const CStreamStore &,TStreamId,TInt)
CPlainText::DoPtDelete(TInt,TInt)
CPlainText::DoPtInsertL(TInt,const TDesC &)
CPlainText::DocumentLength()const
CPlainText::ExportAsTextL(const TDes &,TTextOrganisation,TInt)const
CPlainText::ExportTextL(TInt,RWriteStream &,TTextOrganisation,TInt,TInt,TInt,TInt *,TInt *)const
CPlainText::ExportTextL(TInt,RWriteStream &,const TImportExportParam &,TImportExportResult &)const
CPlainText::ExternalizeFieldDataL(RWriteStream &)const
CPlainText::ExternalizePlainTextL(RWriteStream &)const
CPlainText::ExternalizePlainTextNoLengthCountL(RWriteStream &)const
CPlainText::Extract(TDes &,TInt)const
CPlainText::Extract(TDes &,TInt,TInt)const
CPlainText::ExtractSelectively(TDes &,TInt,TInt,TUint)
CPlainText::FieldCount()const
CPlainText::FieldFactory()const
CPlainText::FindFields(TFindFieldInfo &,TInt,TInt)const
CPlainText::FindFields(TInt)const
CPlainText::GetWordInfo(TInt,TInt &,TInt &,TBool,TBool)const
CPlainText::ImportTextFileL(TInt,const TDes &,TTextOrganisation)
CPlainText::ImportTextL(TInt,RReadStream &,TTextOrganisation,TInt,TInt,TInt *,TInt *)
CPlainText::ImportTextL(TInt,RReadStream &,const TImportExportParam &,TImportExportResult &)
CPlainText::InsertFieldL(TInt,CTextField *,TUid)
CPlainText::InsertL(TInt,const CPlainText *)
CPlainText::InternalizeFieldDataL(RReadStream &)
CPlainText::InternalizePlainTextL(RReadStream &)
CPlainText::InternalizePlainTextL(RReadStream &,TInt)
CPlainText::NewL(TDocumentStorage,TInt)
CPlainText::NewL(const CStreamStore &,TStreamId,MTextFieldFactory *,TDocumentStorage)
CPlainText::NewTextFieldL(TUid)const
CPlainText::PageContainingPos(TInt)const
CPlainText::PasteComponentsL(const CStreamStore &,TInt)
CPlainText::PtInsertL(TInt,const TDesC &)
CPlainText::Read(TInt)const
CPlainText::Read(TInt,TInt)const
CPlainText::RemoveField(TInt)
CPlainText::RestoreFieldComponentsL(const CStreamStore &)
CPlainText::ScanParas(TInt &,TUint &)const
CPlainText::ScanWords(TInt &,TUint &)const
CPlainText::SetFieldFactory(MTextFieldFactory *)
CPlainText::SetPageTable(TPageTable *)
CPlainText::StoreFieldComponentsL(CStreamStore &,CStoreMap &)const
CPlainText::TextField(TInt)const
CPlainText::ToParagraphStart(TInt &)const
CPlainText::UidFromStreamL(RReadStream &)
CPlainText::UpdateAllFieldsL()
CPlainText::WordCount()const
CPlainText::~CPlainText()
Public Member Enumerations
enumTParaType { ESinglePara, EMultiPara }
Inherited Enumerations
CEditableText:@52
CEditableText:@53
CEditableText:TDocumentStorage
CPlainText:@54
CPlainText:@55
CPlainText:@56
CPlainText:TScanDataEnd
CPlainText:TTextOrganisation
CPlainText:TUnitOfText
Private Attributes
__DECLARE_TEST
TUint32 iFlags
TSwizzle< CRichTextIndex >iIndex
CParserData *iParserData
MPictureFactory *iPictureFactory
void *iReserved_3
MRichTextStoreResolver *iStoreResolver
TSwizzle< CStyleList >iStyleList
Inherited Attributes
CEditableText::iHasChanged
CGlobalText::iGlobalCharFormatLayer
CGlobalText::iGlobalParaFormatLayer
CPlainText::iByteStore
CPlainText::iFieldFactory
CPlainText::iFieldSet
CPlainText::iPageTable

Constructor & Destructor Documentation

CRichText(const CRichText &)

CRichText(const CRichText &aRichText)[private]

Parameters

const CRichText & aRichText

CRichText(const CParaFormatLayer *, const CCharFormatLayer *, CStyleList *)

IMPORT_CCRichText(const CParaFormatLayer *aGlobalParaLayer,
const CCharFormatLayer *aGlobalCharLayer,
CStyleList *aStyleList = NULL
)[protected]

Parameters

const CParaFormatLayer * aGlobalParaLayer
const CCharFormatLayer * aGlobalCharLayer
CStyleList * aStyleList = NULL

~CRichText()

IMPORT_C~CRichText()[virtual]

Member Functions Documentation

ActivateDefaultParserL(MParser *)

IMPORT_C voidActivateDefaultParserL(MParser *aParser)[static]

Parameters

MParser * aParser

ActivateParserL(MParser *)

IMPORT_C voidActivateParserL(MParser *aParser)[static]

Parameters

MParser * aParser

AppendParagraphL(TInt)

IMPORT_C voidAppendParagraphL(TIntaReplicas = 1)

Parameters

TInt aReplicas = 1

AppendTakingSolePictureOwnershipL(const CRichText &)

IMPORT_C voidAppendTakingSolePictureOwnershipL(const CRichText &aSource)

Parameters

const CRichText & aSource

ApplyCharFormatL(const TCharFormat &, const TCharFormatMask &, TInt, TInt)

IMPORT_C voidApplyCharFormatL(const TCharFormat &aFormat,
const TCharFormatMask &aMask,
TIntaPos,
TIntaLength
)[virtual]

Parameters

const TCharFormat & aFormat
const TCharFormatMask & aMask
TInt aPos
TInt aLength

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

voidApplyExtendedCharFormatL(const TCharFormatX &aFormat,
const TCharFormatXMask &aMask,
TIntaPos,
TIntaLength
)

Parameters

const TCharFormatX & aFormat
const TCharFormatXMask & aMask
TInt aPos
TInt aLength

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

IMPORT_C voidApplyParaFormatL(const CParaFormat *aFormat,
const TParaFormatMask &aMask,
TIntaPos,
TIntaLength
)[virtual]

Parameters

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

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

IMPORT_C voidApplyParagraphStyleL(const CParagraphStyle &aStyle,
TIntaPos,
TIntaLength,
CParagraphStyle::TApplyParaStyleModeaMode
)

Parameters

const CParagraphStyle & aStyle
TInt aPos
TInt aLength
CParagraphStyle::TApplyParaStyleMode aMode

CallEditObserver(TInt, TInt)

voidCallEditObserver(TIntaStart,
TIntaExtent
)const [private]

Parameters

TInt aStart
TInt aExtent

CancelInsertCharFormat()

IMPORT_C voidCancelInsertCharFormat()

CharPosOfParagraph(TInt &, TInt)

IMPORT_C TIntCharPosOfParagraph(TInt &aLength,
TIntaParaOffset
)const [virtual]

Parameters

TInt & aLength
TInt aParaOffset

CompletePastePlainTextL(TInt, TInt)

voidCompletePastePlainTextL(TIntaPos,
TIntaCharacterCount
)[private]

Parameters

TInt aPos
TInt aCharacterCount

CompletePasteRichTextFromStoreL(const CStreamStore &, TStreamId &, TInt, CParagraphStyle::TStylePasteMode)

voidCompletePasteRichTextFromStoreL(const CStreamStore &aStore,
TStreamId &aRichTextStreamId,
TIntaPos,
CParagraphStyle::TStylePasteModeaStylePasteMode
)[protected]

Parameters

const CStreamStore & aStore
TStreamId & aRichTextStreamId
TInt aPos
CParagraphStyle::TStylePasteMode aStylePasteMode

ComponentInfo()

IMPORT_C TEtextComponentInfoComponentInfo()const [virtual]

ConstructL(TDocumentStorage, TInt, TParaType)

IMPORT_C voidConstructL(TDocumentStorageaStorage,
TIntaDefaultTextGranularity,
TParaTypeaParaType
)[protected]

Parameters

TDocumentStorage aStorage
TInt aDefaultTextGranularity
TParaType aParaType

ConstructL(const CStreamStore &, TStreamId, MPictureFactory *, MRichTextStoreResolver *, MTextFieldFactory *, TDocumentStorage)

IMPORT_C voidConstructL(const CStreamStore &aStore,
TStreamIdaStreamId,
MPictureFactory *aFactory,
MRichTextStoreResolver *aStoreResolver,
MTextFieldFactory *aFieldFactory = NULL,
TDocumentStorageaStorage = ESegmentedStorage
)[protected]

Parameters

const CStreamStore & aStore
TStreamId aStreamId
MPictureFactory * aFactory
MRichTextStoreResolver * aStoreResolver
MTextFieldFactory * aFieldFactory = NULL
TDocumentStorage aStorage = ESegmentedStorage

CopyComponentsL(CStreamStore &, CStoreMap &, TInt, TInt, TStreamId)

IMPORT_C voidCopyComponentsL(CStreamStore &aStore,
CStoreMap &aMap,
TIntaPos,
TIntaLength,
TStreamIdaGlobalTextId
)const [protected]

Parameters

CStreamStore & aStore
CStoreMap & aMap
TInt aPos
TInt aLength
TStreamId aGlobalTextId

CopyToStoreL(CStreamStore &, CStreamDictionary &, TInt, TInt)

IMPORT_C voidCopyToStoreL(CStreamStore &aStore,
CStreamDictionary &aDictionary,
TIntaPos,
TIntaLength
)const [virtual]

Copies a portion of the text to the clipboard.

Parameters

CStreamStore & aStoreThe clipboard's store (see class CClipboard).
CStreamDictionary & aDictionaryThe clipboard's stream dictionary (see class CClipboard).
TInt aPosA valid document position from which to begin copying.
TInt aLengthThe number of characters to copy.

CopyToStreamL(RWriteStream &, TInt, TInt, TStreamId)

IMPORT_C voidCopyToStreamL(RWriteStream &aStream,
TIntaPos,
TIntaLength,
TStreamIdaGlobalTextId
)const [protected]

Parameters

RWriteStream & aStream
TInt aPos
TInt aLength
TStreamId aGlobalTextId

CopyToStreamL(RWriteStream &, TInt, TInt)

IMPORT_C voidCopyToStreamL(RWriteStream &aStream,
TIntaPos,
TIntaLength
)const [protected]

Parameters

RWriteStream & aStream
TInt aPos
TInt aLength

CopyToStreamL(RWriteStream &, TInt, TInt, TStreamId, TBool)

voidCopyToStreamL(RWriteStream &aStream,
TIntaPos,
TIntaLength,
TStreamIdaGlobalTextId,
TBoolaCopyStyles
)const [protected]

Parameters

RWriteStream & aStream
TInt aPos
TInt aLength
TStreamId aGlobalTextId
TBool aCopyStyles

CreateAndGenerateMarkupComponentL()

voidCreateAndGenerateMarkupComponentL()[private]

CreateEmptyMarkupComponentL()

TBool CreateEmptyMarkupComponentL()[private]

CreateParserETextTLSL()

voidCreateParserETextTLSL()[private, static]

CursorOverTag(TInt, MParser *&, TInt &, TInt &)

IMPORT_C TBoolCursorOverTag(TIntaPos,
MParser *&aParser,
TInt &aTagStart,
TInt &aLength
)const

Parameters

TInt aPos
MParser *& aParser
TInt & aTagStart
TInt & aLength

DeactivateParser(MParser *)

IMPORT_C voidDeactivateParser(MParser *aParser)[static]

Parameters

MParser * aParser

DeactivateParserDefaults()

IMPORT_C voidDeactivateParserDefaults()[static]

DelSetInsertCharFormatL(TInt, TInt)

IMPORT_C TBoolDelSetInsertCharFormatL(TIntaPos,
TIntaLength
)

Parameters

TInt aPos
TInt aLength

DeleteFromParagraph(TInt, TInt)

IMPORT_C voidDeleteFromParagraph(TIntaPos,
TIntaLength
)

Parameters

TInt aPos
TInt aLength

DeleteL(TInt, TInt)

IMPORT_C TBoolDeleteL(TIntaPos,
TIntaLength
)[virtual]

Deletes one or more characters beginning at (and including) the character at the specified document position.

Indicates whether or not two paragraphs have been merged as a result of the delete, so that the resulting paragraph needs to be reformatted. This value is only relevant to rich text, so for plain and global text implementations, the function always returns EFalse.

Parameters

TInt aPosThe document position from which to delete.
TInt aLengthThe number of characters to delete.

DeleteParagraph(TInt, TInt)

IMPORT_C voidDeleteParagraph(TIntaPos,
TIntaLength
)

Parameters

TInt aPos
TInt aLength

DetachFromStoreL(CPicture::TDetach)

IMPORT_C voidDetachFromStoreL(CPicture::TDetachaDegree)

Parameters

CPicture::TDetach aDegree

DetachFromStoreL(CPicture::TDetach, TInt, TInt)

IMPORT_C voidDetachFromStoreL(CPicture::TDetachaDegree,
TIntaPos,
TIntaLength
)

Parameters

CPicture::TDetach aDegree
TInt aPos
TInt aLength

DoAppendTakingSolePictureOwnershipL(const CRichText &)

voidDoAppendTakingSolePictureOwnershipL(const CRichText &aSource)[protected]

Parameters

const CRichText & aSource

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

voidDoApplyExtendedCharFormatL(const TCharFormatX &aFormat,
const TCharFormatXMask &aMask,
TIntaPos,
TIntaLength
)[private]

Parameters

const TCharFormatX & aFormat
const TCharFormatXMask & aMask
TInt aPos
TInt aLength

DoCopyToStoreL(CStreamStore &, TInt, TInt, TStreamId, TBool)

TStreamId DoCopyToStoreL(CStreamStore &aStore,
TIntaPos,
TIntaLength,
TStreamIdaGlobalTextId,
TBoolaCopyStyles
)const [protected]

Parameters

CStreamStore & aStore
TInt aPos
TInt aLength
TStreamId aGlobalTextId
TBool aCopyStyles

DoCursorOverTag(TInt, MParser *&, TInt &, TInt &)

TBool DoCursorOverTag(TIntaPos,
MParser *&aParser,
TInt &aTagStart,
TInt &aLength
)const [private]

Parameters

TInt aPos
MParser *& aParser
TInt & aTagStart
TInt & aLength

DoExternalizeMarkupDataL(RWriteStream &)

IMPORT_C voidDoExternalizeMarkupDataL(RWriteStream &aStream)const [protected]

Parameters

RWriteStream & aStream

DoExternalizeStyleDataL(RWriteStream &)

IMPORT_C voidDoExternalizeStyleDataL(RWriteStream &aStream)const [protected]

Parameters

RWriteStream & aStream

DoInternalizeMarkupDataL(RReadStream &)

IMPORT_C voidDoInternalizeMarkupDataL(RReadStream &aStream)[protected]

Parameters

RReadStream & aStream

DoInternalizeStyleDataL(RReadStream &)

IMPORT_C voidDoInternalizeStyleDataL(RReadStream &aStream)[protected]

Parameters

RReadStream & aStream

DoInternalizeStyleDataL(RReadStream &, const CStyleList *)

voidDoInternalizeStyleDataL(RReadStream &aStream,
const CStyleList *aExternalStyleList
)[protected]

Parameters

RReadStream & aStream
const CStyleList * aExternalStyleList

DoPasteRtFromStoreL(const CStreamStore &, const CStreamDictionary &, TInt, CParagraphStyle::TStylePasteMode)

TInt DoPasteRtFromStoreL(const CStreamStore &aStore,
const CStreamDictionary &aDictionary,
TIntaPos,
CParagraphStyle::TStylePasteModeaStylePasteMode
)[private]

Parameters

const CStreamStore & aStore
const CStreamDictionary & aDictionary
TInt aPos
CParagraphStyle::TStylePasteMode aStylePasteMode

DropPictureOwnership(TInt)

IMPORT_C voidDropPictureOwnership(TIntaPos)

Parameters

TInt aPos

ExtendedInterface(TAny *&, TUid)

IMPORT_C voidExtendedInterface(TAny *&aInterface,
TUidaInterfaceId
)[virtual]

Parameters

TAny *& aInterface
TUid aInterfaceId

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)const [virtual]

Parameters

RWriteStream & aStream

ExternalizeMarkupDataL(RWriteStream &)

IMPORT_C voidExternalizeMarkupDataL(RWriteStream &aStream)const

Parameters

RWriteStream & aStream

ExternalizeStyleDataL(RWriteStream &)

IMPORT_C voidExternalizeStyleDataL(RWriteStream &aStream)const

Parameters

RWriteStream & aStream

GenerateMarkupL()

voidGenerateMarkupL()[private]

GetCharFormat(TCharFormat &, TCharFormatMask &, TInt, TInt)

IMPORT_C voidGetCharFormat(TCharFormat &aFormat,
TCharFormatMask &aVaries,
TIntaPos,
TIntaLength
)const [virtual]

Parameters

TCharFormat & aFormat
TCharFormatMask & aVaries
TInt aPos
TInt aLength

GetChars(TPtrC &, TCharFormat &, TInt)

IMPORT_C voidGetChars(TPtrC &aView,
TCharFormat &aFormat,
TIntaPos
)const [virtual]

Parameters

TPtrC & aView
TCharFormat & aFormat
TInt aPos

GetExtendedCharFormat(TCharFormatX &, TCharFormatXMask &, TInt, TInt)

voidGetExtendedCharFormat(TCharFormatX &aFormat,
TCharFormatXMask &aVaries,
TIntaPos,
TIntaLength
)const

Parameters

TCharFormatX & aFormat
TCharFormatXMask & aVaries
TInt aPos
TInt aLength

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

IMPORT_C voidGetParaFormatL(CParaFormat *aFormat,
TParaFormatMask &aVaries,
TIntaPos,
TIntaLength,
CParaFormat::TParaFormatGetModeaMode = CParaFormat::EAllAttributes
)const [virtual]

Parameters

CParaFormat * aFormat
TParaFormatMask & aVaries
TInt aPos
TInt aLength
CParaFormat::TParaFormatGetMode aMode = CParaFormat::EAllAttributes

GetParagraphFormatL(CParaFormat *, TInt)

IMPORT_C voidGetParagraphFormatL(CParaFormat *aFormat,
TIntaPos
)const [virtual]

Parameters

CParaFormat * aFormat
TInt aPos

GetPictureSizeInTwips(TSize &, TInt)

IMPORT_C TIntGetPictureSizeInTwips(TSize &aSize,
TIntaPos
)const [virtual]

Parameters

TSize & aSize
TInt aPos

GetSpecificCharFormat(TCharFormat &, TCharFormatMask &, TInt)

IMPORT_C voidGetSpecificCharFormat(TCharFormat &aFormat,
TCharFormatMask &aMask,
TIntaPos
)const

Parameters

TCharFormat & aFormat
TCharFormatMask & aMask
TInt aPos

GetSpecificCharFormatLeftRight(TCharFormat &, TCharFormatMask &, TInt, TBool)

voidGetSpecificCharFormatLeftRight(TCharFormat &aFormat,
TCharFormatMask &aMask,
TIntaPos,
TBoolaLeft
)const [private]

Parameters

TCharFormat & aFormat
TCharFormatMask & aMask
TInt aPos
TBool aLeft

GetSpecificCharFormatRight(TCharFormat &, TCharFormatMask &, TInt)

IMPORT_C voidGetSpecificCharFormatRight(TCharFormat &aFormat,
TCharFormatMask &aMask,
TIntaPos
)const

Parameters

TCharFormat & aFormat
TCharFormatMask & aMask
TInt aPos

GetSpecificParagraphFormatL(CParaFormat *, TParaFormatMask &, TInt)

IMPORT_C voidGetSpecificParagraphFormatL(CParaFormat *aFormat,
TParaFormatMask &aMask,
TIntaPos
)const

Parameters

CParaFormat * aFormat
TParaFormatMask & aMask
TInt aPos

GetTextAndExtendedFormat(TPtrC &, TCharFormatX &, TInt)

voidGetTextAndExtendedFormat(TPtrC &aText,
TCharFormatX &aFormat,
TIntaPos
)const

Parameters

TPtrC & aText
TCharFormatX & aFormat
TInt aPos

HasMarkupData()

IMPORT_C TBoolHasMarkupData()const

IndexPresent()

TBool IndexPresent()const [private]

InsertL(TInt, const TChar &)

IMPORT_C voidInsertL(TIntaInsertPos,
const TChar &aChar
)[virtual]

Inserts a single character or a descriptor into the text object at a specified document position.

Parameters

TInt aInsertPosA valid document position at which to insert the character or descriptor.
const TChar & aCharThe character to insert.

InsertL(TInt, const TDesC &)

IMPORT_C voidInsertL(TIntaInsertPos,
const TDesC &aBuf
)[virtual]

Inserts a single character or a descriptor into the text object at a specified document position.

Parameters

TInt aInsertPosA valid document position at which to insert the character or descriptor.
const TDesC & aBufThe descriptor to insert.

InsertL(TInt, const TPictureHeader &)

IMPORT_C voidInsertL(TIntaPos,
const TPictureHeader &aHeader
)

Parameters

TInt aPos
const TPictureHeader & aHeader

InternalizeL(RReadStream &)

IMPORT_C voidInternalizeL(RReadStream &aStream)[virtual]

Parameters

RReadStream & aStream

InternalizeL(RReadStream &, const CStyleList *)

voidInternalizeL(RReadStream &aStream,
const CStyleList *aExternalStyleList
)[protected]

Parameters

RReadStream & aStream
const CStyleList * aExternalStyleList

InternalizeMarkupDataL(RReadStream &)

IMPORT_C voidInternalizeMarkupDataL(RReadStream &aStream)

Parameters

RReadStream & aStream

InternalizeStyleDataL(RReadStream &)

IMPORT_C voidInternalizeStyleDataL(RReadStream &aStream)

Parameters

RReadStream & aStream

KillIndex()

voidKillIndex()[private]

KillStyleList()

voidKillStyleList()[private]

NewL(const CParaFormatLayer *, const CCharFormatLayer *, TDocumentStorage, TInt, TParaType)

IMPORT_C CRichText *NewL(const CParaFormatLayer *aGlobalParaLayer,
const CCharFormatLayer *aGlobalCharLayer,
TDocumentStorageaStorage = ESegmentedStorage,
TIntaDefaultTextGranularity = EDefaultTextGranularity,
TParaTypeaParaType = EMultiPara
)[static]

Parameters

const CParaFormatLayer * aGlobalParaLayer
const CCharFormatLayer * aGlobalCharLayer
TDocumentStorage aStorage = ESegmentedStorage
TInt aDefaultTextGranularity = EDefaultTextGranularity
TParaType aParaType = EMultiPara

NewL(const CParaFormatLayer *, const CCharFormatLayer *, const CStyleList &, TDocumentStorage, TInt, TParaType)

IMPORT_C CRichText *NewL(const CParaFormatLayer *aGlobalParaLayer,
const CCharFormatLayer *aGlobalCharLayer,
const CStyleList &aStyleList,
TDocumentStorageaStorage = ESegmentedStorage,
TIntaDefaultTextGranularity = EDefaultTextGranularity,
TParaTypeaParaType = EMultiPara
)[static]

Parameters

const CParaFormatLayer * aGlobalParaLayer
const CCharFormatLayer * aGlobalCharLayer
const CStyleList & aStyleList
TDocumentStorage aStorage = ESegmentedStorage
TInt aDefaultTextGranularity = EDefaultTextGranularity
TParaType aParaType = EMultiPara

NewL(const CStreamStore &, TStreamId, const CParaFormatLayer *, const CCharFormatLayer *, MTextFieldFactory *, TDocumentStorage)

IMPORT_C CRichText *NewL(const CStreamStore &aStore,
TStreamIdaStreamId,
const CParaFormatLayer *aGlobalParaLayer,
const CCharFormatLayer *aGlobalCharLayer,
MTextFieldFactory *aFieldFactory = NULL,
TDocumentStorageaStorage = ESegmentedStorage
)[static]

Parameters

const CStreamStore & aStore
TStreamId aStreamId
const CParaFormatLayer * aGlobalParaLayer
const CCharFormatLayer * aGlobalCharLayer
MTextFieldFactory * aFieldFactory = NULL
TDocumentStorage aStorage = ESegmentedStorage

NewL(const CStreamStore &, TStreamId, const CParaFormatLayer *, const CCharFormatLayer *, MPictureFactory *, MRichTextStoreResolver *, MTextFieldFactory *, TDocumentStorage)

IMPORT_C CRichText *NewL(const CStreamStore &aStore,
TStreamIdaStreamId,
const CParaFormatLayer *aGlobalParaLayer,
const CCharFormatLayer *aGlobalCharLayer,
MPictureFactory *aPictureFactory,
MRichTextStoreResolver *aStoreResolver,
MTextFieldFactory *aFieldFactory = NULL,
TDocumentStorageaStorage = ESegmentedStorage
)[static]

Parameters

const CStreamStore & aStore
TStreamId aStreamId
const CParaFormatLayer * aGlobalParaLayer
const CCharFormatLayer * aGlobalCharLayer
MPictureFactory * aPictureFactory
MRichTextStoreResolver * aStoreResolver
MTextFieldFactory * aFieldFactory = NULL
TDocumentStorage aStorage = ESegmentedStorage

NotifyStyleChangedL(const CParagraphStyle *, const CParagraphStyle *)

IMPORT_C voidNotifyStyleChangedL(const CParagraphStyle *aTo,
const CParagraphStyle *aFrom
)

Parameters

const CParagraphStyle * aTo
const CParagraphStyle * aFrom

NotifyStyleDeletedL(const CParagraphStyle *)

voidNotifyStyleDeletedL(const CParagraphStyle *aStyle)[inline]

Removes a style from all paragraphs to which it applies. The formatting is reset to the global character and paragraph format layers, except that any specific formatting which has been applied to the paragraphs is retained.

Notes:

This function should be called on the text content object after deleting a style in the style list.

A panic occurs if the rich text object does not use a style list (this can be tested for using StyleListPresent()).

Parameters

const CParagraphStyle * aStylePointer to the style to remove from the rich text object.

OverrideFormatForParsersIfApplicable(TPtrC &, TCharFormatX &, TInt)

voidOverrideFormatForParsersIfApplicable(TPtrC &aText,
TCharFormatX &aFormat,
TIntaStartPos
)const [private]

Parameters

TPtrC & aText
TCharFormatX & aFormat
TInt aStartPos

ParaTypeIsSingle()

TBool ParaTypeIsSingle()const [private, inline]

ParagraphCount()

IMPORT_C TIntParagraphCount()const [virtual]

Returns a count of the number of paragraphs in the document.

The number of paragraphs in the document. Notes: The end-of-text paragraph delimiter at the end of every document means this function always returns a count of at least one.

ParagraphNumberForPos(TInt &)

IMPORT_C TIntParagraphNumberForPos(TInt &aPos)const [virtual]

Parameters

TInt & aPos

ParagraphStyle(TBool &, TInt, TInt)

IMPORT_C const CParaFormatLayer *ParagraphStyle(TBool &aStyleChangesOverRange,
TIntaPos,
TIntaLength
)const

Parameters

TBool & aStyleChangesOverRange
TInt aPos
TInt aLength

ParseText(TInt &, TInt &, TBool)

IMPORT_C TBoolParseText(TInt &aStartOfTags,
TInt &aLength,
TBoolaForceScanAllText
)

Parameters

TInt & aStartOfTags
TInt & aLength
TBool aForceScanAllText

PasteFromStoreL(const CStreamStore &, const CStreamDictionary &, TInt)

IMPORT_C TIntPasteFromStoreL(const CStreamStore &aStore,
const CStreamDictionary &aDictionary,
TIntaPos
)[virtual]

Pastes the contents of the clipboard into the text object at the specified document position.

The number of characters pasted.

Parameters

const CStreamStore & aStoreThe clipboard's store (see class CClipboard).
const CStreamDictionary & aDictionaryThe clipboard's stream dictionary (see class CClipboard).
TInt aPosA valid document position at which to paste the text.

PasteFromStoreL(const CStreamStore &, const CStreamDictionary &, TInt, CParagraphStyle::TStylePasteMode)

IMPORT_C TIntPasteFromStoreL(const CStreamStore &aStore,
const CStreamDictionary &aDictionary,
TIntaPos,
CParagraphStyle::TStylePasteModeaStylePasteMode
)

Parameters

const CStreamStore & aStore
const CStreamDictionary & aDictionary
TInt aPos
CParagraphStyle::TStylePasteMode aStylePasteMode

PastePlainTextFromStoreL(const CStreamStore &, TStreamId &, TInt)

TInt PastePlainTextFromStoreL(const CStreamStore &aStore,
TStreamId &anId,
TIntaPos
)[protected]

Parameters

const CStreamStore & aStore
TStreamId & anId
TInt aPos

PasteRichTextFromStoreL(const CStreamStore &, const CStreamDictionary &, TStreamId &, TInt, CParagraphStyle::TStylePasteMode)

TInt PasteRichTextFromStoreL(const CStreamStore &aStore,
const CStreamDictionary &aDictionary,
TStreamId &anId,
TIntaPos,
CParagraphStyle::TStylePasteModeaStylePasteMode
)[protected]

Parameters

const CStreamStore & aStore
const CStreamDictionary & aDictionary
TStreamId & anId
TInt aPos
CParagraphStyle::TStylePasteMode aStylePasteMode

PictureCount()

IMPORT_C TIntPictureCount()const

PictureFactory()

MPictureFactory *PictureFactory()const [inline]

Gets the picture factory. A picture factory may be set during construction, or by calling CRichText::SetPictureFactory().

The picture factory

PictureHandleL(TInt, MLayDoc::TForcePictureLoad)

IMPORT_C CPicture *PictureHandleL(TIntaPos,
MLayDoc::TForcePictureLoadaForceLoad = MLayDoc::EForceLoadTrue
)const [virtual]

Parameters

TInt aPos
MLayDoc::TForcePictureLoad aForceLoad = MLayDoc::EForceLoadTrue

PictureHeader(TInt)

IMPORT_C TPictureHeaderPictureHeader(TIntaPos)const

Parameters

TInt aPos

PositionOfNextTag(TInt)

IMPORT_C TIntPositionOfNextTag(TIntaPos)const

Parameters

TInt aPos

PositionOfNextTag(TInt, const MParser *)

IMPORT_C TIntPositionOfNextTag(TIntaPos,
const MParser *aParser
)const

Parameters

TInt aPos
const MParser * aParser

PositionOfPrevTag(TInt)

IMPORT_C TIntPositionOfPrevTag(TIntaPos)const

Parameters

TInt aPos

PositionOfPrevTag(TInt, const MParser *)

IMPORT_C TIntPositionOfPrevTag(TIntaPos,
const MParser *aParser
)const

Parameters

TInt aPos
const MParser * aParser

PrepareAppendMarkupL(const CRichText &)

voidPrepareAppendMarkupL(const CRichText &aSource)[protected]

Parameters

const CRichText & aSource

RemoveSpecificCharFormatL(TInt, TInt)

IMPORT_C voidRemoveSpecificCharFormatL(TIntaPos,
TIntaLength
)

Parameters

TInt aPos
TInt aLength

RemoveSpecificParaFormatL(TInt, TInt)

IMPORT_C voidRemoveSpecificParaFormatL(TIntaPos,
TIntaLength
)

Parameters

TInt aPos
TInt aLength

Reset()

IMPORT_C voidReset()[virtual]

Deletes the text content and components from the text object, leaving the single end-of-text paragraph delimiter.

RestoreComponentsL(const CStreamStore &)

IMPORT_C voidRestoreComponentsL(const CStreamStore &aStore)[virtual]

Restores the text components, e.g. fields, pictures and formatting from the stream store. Does not restore the text content.

Parameters

const CStreamStore & aStoreThe stream store from which the text components are restored.

RestoreStylesL(const CStreamStore &, TStreamId, const CParaFormatLayer *, const CCharFormatLayer *)

voidRestoreStylesL(const CStreamStore &aStore,
TStreamIdaId,
const CParaFormatLayer *aParaFormatLayer,
const CCharFormatLayer *aCharFormatLayer
)[protected]

Parameters

const CStreamStore & aStore
TStreamId aId
const CParaFormatLayer * aParaFormatLayer
const CCharFormatLayer * aCharFormatLayer

RestoreWithStyleListL(const CStreamStore &, TStreamId, const CStyleList &)

IMPORT_C voidRestoreWithStyleListL(const CStreamStore &aStore,
TStreamIdaStreamId,
const CStyleList &aExternalStyleList
)

Parameters

const CStreamStore & aStore
TStreamId aStreamId
const CStyleList & aExternalStyleList

RtInsertL(TInt, const TDesC &)

IMPORT_C voidRtInsertL(TIntaPos,
const TDesC &aBuf
)[protected]

Parameters

TInt aPos
const TDesC & aBuf

SetEditObserver(MEditObserver *)

IMPORT_C voidSetEditObserver(MEditObserver *aEditObserver)

Parameters

MEditObserver * aEditObserver

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

voidSetExtendedInsertCharFormatL(const TCharFormatX &aFormat,
const TCharFormatXMask &aMask,
TIntaPos
)[private]

Parameters

const TCharFormatX & aFormat
const TCharFormatXMask & aMask
TInt aPos

SetHasChanged(TBool)

IMPORT_C voidSetHasChanged(TBoolaHasChanged)[virtual]

Parameters

TBool aHasChanged

SetInsertCharFormatL(const TCharFormat &, const TCharFormatMask &, TInt)

IMPORT_C voidSetInsertCharFormatL(const TCharFormat &aFormat,
const TCharFormatMask &aMask,
TIntaPos
)

Parameters

const TCharFormat & aFormat
const TCharFormatMask & aMask
TInt aPos

SetParaTypeIsSingle(TBool)

voidSetParaTypeIsSingle(TBoolaBool)[private, inline]

Parameters

TBool aBool

SetPictureFactory(MPictureFactory *, MRichTextStoreResolver *)

IMPORT_C voidSetPictureFactory(MPictureFactory *aPictureFactory,
MRichTextStoreResolver *aStoreResolver
)

Parameters

MPictureFactory * aPictureFactory
MRichTextStoreResolver * aStoreResolver

SetStyleListExternallyOwned(TBool)

voidSetStyleListExternallyOwned(TBoolaExternallyOwned)[inline]

Sets whether the style list used by this rich text object is owned by the object itself, or is externally owned.

Parameters

TBool aExternallyOwnedETrue if the style list should be marked as externally owned, EFalse if not.

SetStyleListExternallyOwned(const CStyleList &)

IMPORT_C voidSetStyleListExternallyOwned(const CStyleList &aStyleList)

Parameters

const CStyleList & aStyleList

StoreComponentsL(CStreamStore &, CStoreMap &)

IMPORT_C voidStoreComponentsL(CStreamStore &aStore,
CStoreMap &aMap
)const [virtual]

Stores the text components, e.g. fields, pictures and formatting to the stream store specified. Does not store the text content.

Parameters

CStreamStore & aStoreStream store to which the text components are written.
CStoreMap & aMapA store map. This binds the address of text components to the stream ID of aStore. This is needed to support deferred loading of pictures in rich text.

StoreMarkupComponentsL(CStreamStore &, CStoreMap &)

IMPORT_C voidStoreMarkupComponentsL(CStreamStore &aStore,
CStoreMap &aMap
)const

Parameters

CStreamStore & aStore
CStoreMap & aMap

StoreMarkupL(CStreamStore &, CStoreMap &)

voidStoreMarkupL(CStreamStore &aStore,
CStoreMap &aMap
)const [protected]

Parameters

CStreamStore & aStore
CStoreMap & aMap

StoreResolver()

MRichTextStoreResolver *StoreResolver()const [inline]

Gets the store resolver. A store resolver may be set during construction, or by calling CRichText::SetPictureFactory().

The store resolver. This determines which file store the picture is stored in.

StoreStylesL(CStreamStore &, CStoreMap &)

voidStoreStylesL(CStreamStore &aStore,
CStoreMap &aMap
)const [protected]

Parameters

CStreamStore & aStore
CStoreMap & aMap

StyleCount()

TInt StyleCount()const [inline]

Gets the number of styles contained in the rich text object's style list. Returns zero if there is no style list present.

The number of styles in the style list

StyleList()

CStyleList *StyleList()const [inline]

Gets a pointer to the style list used by the rich text object.

The object's style list. NULL if no style list present.

StyleListExternallyOwned()

TBool StyleListExternallyOwned()const [inline]

Tests whether the style list used by this rich text object is owned by the object itself, or is externally owned. This value is set using SetStyleListExternallyOwned().

ETrue if the rich text object's style list is externally owned. EFalse if it owns its style list, or if it does not use a style list.

StyleListPresent()

TBool StyleListPresent()const [inline]

Tests whether the rich text object uses a style list. The style list may be owned by the object itself, or may be externally owned.

ETrue if the object uses a style list. EFalse if not

UpdateFieldL(TInt)

IMPORT_C voidUpdateFieldL(TIntaPos)[virtual]

Parameters

TInt aPos

operator=(const CRichText &)

CRichText &operator=(const CRichText &aRichText)[private]

Parameters

const CRichText & aRichText

Member Enumerations Documentation

Enum TParaType

Number of paragraphs in the object.

Enumerators

ESinglePara

The text object will contain a single paragraph.

EMultiPara

The text object will contain multiple paragraphs.

Member Data Documentation

__DECLARE_TEST

__DECLARE_TEST[private]

TUint32 iFlags

TUint32 iFlags[private]

TSwizzle< CRichTextIndex > iIndex

TSwizzle< CRichTextIndex >iIndex[private]

CParserData * iParserData

CParserData *iParserData[private]

MPictureFactory * iPictureFactory

MPictureFactory *iPictureFactory[private]

void * iReserved_3

void *iReserved_3[private]

MRichTextStoreResolver * iStoreResolver

MRichTextStoreResolver *iStoreResolver[private]

TSwizzle< CStyleList > iStyleList

TSwizzle< CStyleList >iStyleList[private]