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.
Private Member Functions | |
---|---|
CRichText(const CRichText &) | |
void | CallEditObserver(TInt, TInt) |
void | CompletePastePlainTextL(TInt, TInt) |
void | CreateAndGenerateMarkupComponentL() |
TBool | CreateEmptyMarkupComponentL() |
void | CreateParserETextTLSL() |
void | DoApplyExtendedCharFormatL(const TCharFormatX &, const TCharFormatXMask &, TInt, TInt) |
TBool | DoCursorOverTag(TInt, MParser *&, TInt &, TInt &) |
TInt | DoPasteRtFromStoreL(const CStreamStore &, const CStreamDictionary &, TInt, CParagraphStyle::TStylePasteMode) |
void | GenerateMarkupL() |
void | GetSpecificCharFormatLeftRight(TCharFormat &, TCharFormatMask &, TInt, TBool) |
TBool | IndexPresent() |
void | KillIndex() |
void | KillStyleList() |
void | OverrideFormatForParsersIfApplicable(TPtrC &, TCharFormatX &, TInt) |
TBool | ParaTypeIsSingle() |
void | SetExtendedInsertCharFormatL(const TCharFormatX &, const TCharFormatXMask &, TInt) |
void | SetParaTypeIsSingle(TBool) |
CRichText & | operator=(const CRichText &) |
Public Member Enumerations | |
---|---|
enum | TParaType { ESinglePara, EMultiPara } |
Private Attributes | |
---|---|
__DECLARE_TEST | |
TUint32 | iFlags |
TSwizzle< CRichTextIndex > | iIndex |
CParserData * | iParserData |
MPictureFactory * | iPictureFactory |
void * | iReserved_3 |
MRichTextStoreResolver * | iStoreResolver |
TSwizzle< CStyleList > | iStyleList |
CRichText | ( | const CRichText & | aRichText | ) | [private] |
const CRichText & aRichText |
IMPORT_C | CRichText | ( | const CParaFormatLayer * | aGlobalParaLayer, |
const CCharFormatLayer * | aGlobalCharLayer, | |||
CStyleList * | aStyleList = NULL | |||
) | [protected] |
const CParaFormatLayer * aGlobalParaLayer | |
const CCharFormatLayer * aGlobalCharLayer | |
CStyleList * aStyleList = NULL |
IMPORT_C void | ActivateDefaultParserL | ( | MParser * | aParser | ) | [static] |
MParser * aParser |
IMPORT_C void | ActivateParserL | ( | MParser * | aParser | ) | [static] |
MParser * aParser |
IMPORT_C void | AppendParagraphL | ( | TInt | aReplicas = 1 | ) |
TInt aReplicas = 1 |
IMPORT_C void | AppendTakingSolePictureOwnershipL | ( | const CRichText & | aSource | ) |
const CRichText & aSource |
IMPORT_C void | ApplyCharFormatL | ( | const TCharFormat & | aFormat, |
const TCharFormatMask & | aMask, | |||
TInt | aPos, | |||
TInt | aLength | |||
) | [virtual] |
const TCharFormat & aFormat | |
const TCharFormatMask & aMask | |
TInt aPos | |
TInt aLength |
void | ApplyExtendedCharFormatL | ( | const TCharFormatX & | aFormat, |
const TCharFormatXMask & | aMask, | |||
TInt | aPos, | |||
TInt | aLength | |||
) |
IMPORT_C void | ApplyParaFormatL | ( | const CParaFormat * | aFormat, |
const TParaFormatMask & | aMask, | |||
TInt | aPos, | |||
TInt | aLength | |||
) | [virtual] |
const CParaFormat * aFormat | |
const TParaFormatMask & aMask | |
TInt aPos | |
TInt aLength |
IMPORT_C void | ApplyParagraphStyleL | ( | const CParagraphStyle & | aStyle, |
TInt | aPos, | |||
TInt | aLength, | |||
CParagraphStyle::TApplyParaStyleMode | aMode | |||
) |
const CParagraphStyle & aStyle | |
TInt aPos | |
TInt aLength | |
CParagraphStyle::TApplyParaStyleMode aMode |
IMPORT_C TInt | CharPosOfParagraph | ( | TInt & | aLength, |
TInt | aParaOffset | |||
) | const [virtual] |
void | CompletePastePlainTextL | ( | TInt | aPos, |
TInt | aCharacterCount | |||
) | [private] |
void | CompletePasteRichTextFromStoreL | ( | const CStreamStore & | aStore, |
TStreamId & | aRichTextStreamId, | |||
TInt | aPos, | |||
CParagraphStyle::TStylePasteMode | aStylePasteMode | |||
) | [protected] |
const CStreamStore & aStore | |
TStreamId & aRichTextStreamId | |
TInt aPos | |
CParagraphStyle::TStylePasteMode aStylePasteMode |
IMPORT_C void | ConstructL | ( | TDocumentStorage | aStorage, |
TInt | aDefaultTextGranularity, | |||
TParaType | aParaType | |||
) | [protected] |
TDocumentStorage aStorage | |
TInt aDefaultTextGranularity | |
TParaType aParaType |
IMPORT_C void | ConstructL | ( | const CStreamStore & | aStore, |
TStreamId | aStreamId, | |||
MPictureFactory * | aFactory, | |||
MRichTextStoreResolver * | aStoreResolver, | |||
MTextFieldFactory * | aFieldFactory = NULL, | |||
TDocumentStorage | aStorage = ESegmentedStorage | |||
) | [protected] |
const CStreamStore & aStore | |
TStreamId aStreamId | |
MPictureFactory * aFactory | |
MRichTextStoreResolver * aStoreResolver | |
MTextFieldFactory * aFieldFactory = NULL | |
TDocumentStorage aStorage = ESegmentedStorage |
IMPORT_C void | CopyComponentsL | ( | CStreamStore & | aStore, |
CStoreMap & | aMap, | |||
TInt | aPos, | |||
TInt | aLength, | |||
TStreamId | aGlobalTextId | |||
) | const [protected] |
CStreamStore & aStore | |
CStoreMap & aMap | |
TInt aPos | |
TInt aLength | |
TStreamId aGlobalTextId |
IMPORT_C void | CopyToStoreL | ( | CStreamStore & | aStore, |
CStreamDictionary & | aDictionary, | |||
TInt | aPos, | |||
TInt | aLength | |||
) | const [virtual] |
Copies a portion of the text to the clipboard.
CStreamStore & aStore | The clipboard's store (see class CClipboard). |
CStreamDictionary & aDictionary | The clipboard's stream dictionary (see class CClipboard). |
TInt aPos | A valid document position from which to begin copying. |
TInt aLength | The number of characters to copy. |
IMPORT_C void | CopyToStreamL | ( | RWriteStream & | aStream, |
TInt | aPos, | |||
TInt | aLength, | |||
TStreamId | aGlobalTextId | |||
) | const [protected] |
RWriteStream & aStream | |
TInt aPos | |
TInt aLength | |
TStreamId aGlobalTextId |
IMPORT_C void | CopyToStreamL | ( | RWriteStream & | aStream, |
TInt | aPos, | |||
TInt | aLength | |||
) | const [protected] |
RWriteStream & aStream | |
TInt aPos | |
TInt aLength |
void | CopyToStreamL | ( | RWriteStream & | aStream, |
TInt | aPos, | |||
TInt | aLength, | |||
TStreamId | aGlobalTextId, | |||
TBool | aCopyStyles | |||
) | const [protected] |
RWriteStream & aStream | |
TInt aPos | |
TInt aLength | |
TStreamId aGlobalTextId | |
TBool aCopyStyles |
IMPORT_C TBool | CursorOverTag | ( | TInt | aPos, |
MParser *& | aParser, | |||
TInt & | aTagStart, | |||
TInt & | aLength | |||
) | const |
IMPORT_C void | DeactivateParser | ( | MParser * | aParser | ) | [static] |
MParser * aParser |
IMPORT_C TBool | DeleteL | ( | TInt | aPos, |
TInt | aLength | |||
) | [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.
IMPORT_C void | DetachFromStoreL | ( | CPicture::TDetach | aDegree | ) |
CPicture::TDetach aDegree |
IMPORT_C void | DetachFromStoreL | ( | CPicture::TDetach | aDegree, |
TInt | aPos, | |||
TInt | aLength | |||
) |
CPicture::TDetach aDegree | |
TInt aPos | |
TInt aLength |
void | DoAppendTakingSolePictureOwnershipL | ( | const CRichText & | aSource | ) | [protected] |
const CRichText & aSource |
void | DoApplyExtendedCharFormatL | ( | const TCharFormatX & | aFormat, |
const TCharFormatXMask & | aMask, | |||
TInt | aPos, | |||
TInt | aLength | |||
) | [private] |
TStreamId | DoCopyToStoreL | ( | CStreamStore & | aStore, |
TInt | aPos, | |||
TInt | aLength, | |||
TStreamId | aGlobalTextId, | |||
TBool | aCopyStyles | |||
) | const [protected] |
CStreamStore & aStore | |
TInt aPos | |
TInt aLength | |
TStreamId aGlobalTextId | |
TBool aCopyStyles |
TBool | DoCursorOverTag | ( | TInt | aPos, |
MParser *& | aParser, | |||
TInt & | aTagStart, | |||
TInt & | aLength | |||
) | const [private] |
IMPORT_C void | DoExternalizeMarkupDataL | ( | RWriteStream & | aStream | ) | const [protected] |
RWriteStream & aStream |
IMPORT_C void | DoExternalizeStyleDataL | ( | RWriteStream & | aStream | ) | const [protected] |
RWriteStream & aStream |
IMPORT_C void | DoInternalizeMarkupDataL | ( | RReadStream & | aStream | ) | [protected] |
RReadStream & aStream |
IMPORT_C void | DoInternalizeStyleDataL | ( | RReadStream & | aStream | ) | [protected] |
RReadStream & aStream |
void | DoInternalizeStyleDataL | ( | RReadStream & | aStream, |
const CStyleList * | aExternalStyleList | |||
) | [protected] |
RReadStream & aStream | |
const CStyleList * aExternalStyleList |
TInt | DoPasteRtFromStoreL | ( | const CStreamStore & | aStore, |
const CStreamDictionary & | aDictionary, | |||
TInt | aPos, | |||
CParagraphStyle::TStylePasteMode | aStylePasteMode | |||
) | [private] |
const CStreamStore & aStore | |
const CStreamDictionary & aDictionary | |
TInt aPos | |
CParagraphStyle::TStylePasteMode aStylePasteMode |
IMPORT_C void | ExtendedInterface | ( | TAny *& | aInterface, |
TUid | aInterfaceId | |||
) | [virtual] |
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | const [virtual] |
RWriteStream & aStream |
IMPORT_C void | ExternalizeMarkupDataL | ( | RWriteStream & | aStream | ) | const |
RWriteStream & aStream |
IMPORT_C void | ExternalizeStyleDataL | ( | RWriteStream & | aStream | ) | const |
RWriteStream & aStream |
IMPORT_C void | GetCharFormat | ( | TCharFormat & | aFormat, |
TCharFormatMask & | aVaries, | |||
TInt | aPos, | |||
TInt | aLength | |||
) | const [virtual] |
TCharFormat & aFormat | |
TCharFormatMask & aVaries | |
TInt aPos | |
TInt aLength |
IMPORT_C void | GetChars | ( | TPtrC & | aView, |
TCharFormat & | aFormat, | |||
TInt | aPos | |||
) | const [virtual] |
TPtrC & aView | |
TCharFormat & aFormat | |
TInt aPos |
void | GetExtendedCharFormat | ( | TCharFormatX & | aFormat, |
TCharFormatXMask & | aVaries, | |||
TInt | aPos, | |||
TInt | aLength | |||
) | const |
IMPORT_C void | GetParaFormatL | ( | CParaFormat * | aFormat, |
TParaFormatMask & | aVaries, | |||
TInt | aPos, | |||
TInt | aLength, | |||
CParaFormat::TParaFormatGetMode | aMode = CParaFormat::EAllAttributes | |||
) | const [virtual] |
CParaFormat * aFormat | |
TParaFormatMask & aVaries | |
TInt aPos | |
TInt aLength | |
CParaFormat::TParaFormatGetMode aMode = CParaFormat::EAllAttributes |
IMPORT_C void | GetParagraphFormatL | ( | CParaFormat * | aFormat, |
TInt | aPos | |||
) | const [virtual] |
CParaFormat * aFormat | |
TInt aPos |
IMPORT_C TInt | GetPictureSizeInTwips | ( | TSize & | aSize, |
TInt | aPos | |||
) | const [virtual] |
IMPORT_C void | GetSpecificCharFormat | ( | TCharFormat & | aFormat, |
TCharFormatMask & | aMask, | |||
TInt | aPos | |||
) | const |
TCharFormat & aFormat | |
TCharFormatMask & aMask | |
TInt aPos |
void | GetSpecificCharFormatLeftRight | ( | TCharFormat & | aFormat, |
TCharFormatMask & | aMask, | |||
TInt | aPos, | |||
TBool | aLeft | |||
) | const [private] |
TCharFormat & aFormat | |
TCharFormatMask & aMask | |
TInt aPos | |
TBool aLeft |
IMPORT_C void | GetSpecificCharFormatRight | ( | TCharFormat & | aFormat, |
TCharFormatMask & | aMask, | |||
TInt | aPos | |||
) | const |
TCharFormat & aFormat | |
TCharFormatMask & aMask | |
TInt aPos |
IMPORT_C void | GetSpecificParagraphFormatL | ( | CParaFormat * | aFormat, |
TParaFormatMask & | aMask, | |||
TInt | aPos | |||
) | const |
CParaFormat * aFormat | |
TParaFormatMask & aMask | |
TInt aPos |
void | GetTextAndExtendedFormat | ( | TPtrC & | aText, |
TCharFormatX & | aFormat, | |||
TInt | aPos | |||
) | const |
IMPORT_C void | InsertL | ( | TInt | aInsertPos, |
const TChar & | aChar | |||
) | [virtual] |
Inserts a single character or a descriptor into the text object at a specified document position.
IMPORT_C void | InsertL | ( | TInt | aInsertPos, |
const TDesC & | aBuf | |||
) | [virtual] |
Inserts a single character or a descriptor into the text object at a specified document position.
IMPORT_C void | InsertL | ( | TInt | aPos, |
const TPictureHeader & | aHeader | |||
) |
TInt aPos | |
const TPictureHeader & aHeader |
IMPORT_C void | InternalizeL | ( | RReadStream & | aStream | ) | [virtual] |
RReadStream & aStream |
void | InternalizeL | ( | RReadStream & | aStream, |
const CStyleList * | aExternalStyleList | |||
) | [protected] |
RReadStream & aStream | |
const CStyleList * aExternalStyleList |
IMPORT_C void | InternalizeMarkupDataL | ( | RReadStream & | aStream | ) |
RReadStream & aStream |
IMPORT_C void | InternalizeStyleDataL | ( | RReadStream & | aStream | ) |
RReadStream & aStream |
IMPORT_C CRichText * | NewL | ( | const CParaFormatLayer * | aGlobalParaLayer, |
const CCharFormatLayer * | aGlobalCharLayer, | |||
TDocumentStorage | aStorage = ESegmentedStorage, | |||
TInt | aDefaultTextGranularity = EDefaultTextGranularity, | |||
TParaType | aParaType = EMultiPara | |||
) | [static] |
const CParaFormatLayer * aGlobalParaLayer | |
const CCharFormatLayer * aGlobalCharLayer | |
TDocumentStorage aStorage = ESegmentedStorage | |
TInt aDefaultTextGranularity = EDefaultTextGranularity | |
TParaType aParaType = EMultiPara |
IMPORT_C CRichText * | NewL | ( | const CParaFormatLayer * | aGlobalParaLayer, |
const CCharFormatLayer * | aGlobalCharLayer, | |||
const CStyleList & | aStyleList, | |||
TDocumentStorage | aStorage = ESegmentedStorage, | |||
TInt | aDefaultTextGranularity = EDefaultTextGranularity, | |||
TParaType | aParaType = EMultiPara | |||
) | [static] |
const CParaFormatLayer * aGlobalParaLayer | |
const CCharFormatLayer * aGlobalCharLayer | |
const CStyleList & aStyleList | |
TDocumentStorage aStorage = ESegmentedStorage | |
TInt aDefaultTextGranularity = EDefaultTextGranularity | |
TParaType aParaType = EMultiPara |
IMPORT_C CRichText * | NewL | ( | const CStreamStore & | aStore, |
TStreamId | aStreamId, | |||
const CParaFormatLayer * | aGlobalParaLayer, | |||
const CCharFormatLayer * | aGlobalCharLayer, | |||
MTextFieldFactory * | aFieldFactory = NULL, | |||
TDocumentStorage | aStorage = ESegmentedStorage | |||
) | [static] |
const CStreamStore & aStore | |
TStreamId aStreamId | |
const CParaFormatLayer * aGlobalParaLayer | |
const CCharFormatLayer * aGlobalCharLayer | |
MTextFieldFactory * aFieldFactory = NULL | |
TDocumentStorage aStorage = ESegmentedStorage |
IMPORT_C CRichText * | NewL | ( | const CStreamStore & | aStore, |
TStreamId | aStreamId, | |||
const CParaFormatLayer * | aGlobalParaLayer, | |||
const CCharFormatLayer * | aGlobalCharLayer, | |||
MPictureFactory * | aPictureFactory, | |||
MRichTextStoreResolver * | aStoreResolver, | |||
MTextFieldFactory * | aFieldFactory = NULL, | |||
TDocumentStorage | aStorage = ESegmentedStorage | |||
) | [static] |
const CStreamStore & aStore | |
TStreamId aStreamId | |
const CParaFormatLayer * aGlobalParaLayer | |
const CCharFormatLayer * aGlobalCharLayer | |
MPictureFactory * aPictureFactory | |
MRichTextStoreResolver * aStoreResolver | |
MTextFieldFactory * aFieldFactory = NULL | |
TDocumentStorage aStorage = ESegmentedStorage |
IMPORT_C void | NotifyStyleChangedL | ( | const CParagraphStyle * | aTo, |
const CParagraphStyle * | aFrom | |||
) |
const CParagraphStyle * aTo | |
const CParagraphStyle * aFrom |
void | NotifyStyleDeletedL | ( | 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()).
const CParagraphStyle * aStyle | Pointer to the style to remove from the rich text object. |
void | OverrideFormatForParsersIfApplicable | ( | TPtrC & | aText, |
TCharFormatX & | aFormat, | |||
TInt | aStartPos | |||
) | const [private] |
IMPORT_C TInt | ParagraphCount | ( | ) | 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.
IMPORT_C TInt | ParagraphNumberForPos | ( | TInt & | aPos | ) | const [virtual] |
TInt & aPos |
IMPORT_C const CParaFormatLayer * | ParagraphStyle | ( | TBool & | aStyleChangesOverRange, |
TInt | aPos, | |||
TInt | aLength | |||
) | const |
IMPORT_C TBool | ParseText | ( | TInt & | aStartOfTags, |
TInt & | aLength, | |||
TBool | aForceScanAllText | |||
) |
IMPORT_C TInt | PasteFromStoreL | ( | const CStreamStore & | aStore, |
const CStreamDictionary & | aDictionary, | |||
TInt | aPos | |||
) | [virtual] |
Pastes the contents of the clipboard into the text object at the specified document position.
The number of characters pasted.
const CStreamStore & aStore | The clipboard's store (see class CClipboard). |
const CStreamDictionary & aDictionary | The clipboard's stream dictionary (see class CClipboard). |
TInt aPos | A valid document position at which to paste the text. |
IMPORT_C TInt | PasteFromStoreL | ( | const CStreamStore & | aStore, |
const CStreamDictionary & | aDictionary, | |||
TInt | aPos, | |||
CParagraphStyle::TStylePasteMode | aStylePasteMode | |||
) |
const CStreamStore & aStore | |
const CStreamDictionary & aDictionary | |
TInt aPos | |
CParagraphStyle::TStylePasteMode aStylePasteMode |
TInt | PastePlainTextFromStoreL | ( | const CStreamStore & | aStore, |
TStreamId & | anId, | |||
TInt | aPos | |||
) | [protected] |
const CStreamStore & aStore | |
TStreamId & anId | |
TInt aPos |
TInt | PasteRichTextFromStoreL | ( | const CStreamStore & | aStore, |
const CStreamDictionary & | aDictionary, | |||
TStreamId & | anId, | |||
TInt | aPos, | |||
CParagraphStyle::TStylePasteMode | aStylePasteMode | |||
) | [protected] |
const CStreamStore & aStore | |
const CStreamDictionary & aDictionary | |
TStreamId & anId | |
TInt aPos | |
CParagraphStyle::TStylePasteMode aStylePasteMode |
MPictureFactory * | PictureFactory | ( | ) | const [inline] |
Gets the picture factory. A picture factory may be set during construction, or by calling CRichText::SetPictureFactory().
The picture factory
IMPORT_C CPicture * | PictureHandleL | ( | TInt | aPos, |
MLayDoc::TForcePictureLoad | aForceLoad = MLayDoc::EForceLoadTrue | |||
) | const [virtual] |
TInt aPos | |
MLayDoc::TForcePictureLoad aForceLoad = MLayDoc::EForceLoadTrue |
IMPORT_C TInt | PositionOfNextTag | ( | TInt | aPos, |
const MParser * | aParser | |||
) | const |
IMPORT_C TInt | PositionOfPrevTag | ( | TInt | aPos, |
const MParser * | aParser | |||
) | const |
void | PrepareAppendMarkupL | ( | const CRichText & | aSource | ) | [protected] |
const CRichText & aSource |
IMPORT_C void | RemoveSpecificCharFormatL | ( | TInt | aPos, |
TInt | aLength | |||
) |
IMPORT_C void | RemoveSpecificParaFormatL | ( | TInt | aPos, |
TInt | aLength | |||
) |
IMPORT_C void | Reset | ( | ) | [virtual] |
Deletes the text content and components from the text object, leaving the single end-of-text paragraph delimiter.
IMPORT_C void | RestoreComponentsL | ( | const CStreamStore & | aStore | ) | [virtual] |
Restores the text components, e.g. fields, pictures and formatting from the stream store. Does not restore the text content.
const CStreamStore & aStore | The stream store from which the text components are restored. |
void | RestoreStylesL | ( | const CStreamStore & | aStore, |
TStreamId | aId, | |||
const CParaFormatLayer * | aParaFormatLayer, | |||
const CCharFormatLayer * | aCharFormatLayer | |||
) | [protected] |
const CStreamStore & aStore | |
TStreamId aId | |
const CParaFormatLayer * aParaFormatLayer | |
const CCharFormatLayer * aCharFormatLayer |
IMPORT_C void | RestoreWithStyleListL | ( | const CStreamStore & | aStore, |
TStreamId | aStreamId, | |||
const CStyleList & | aExternalStyleList | |||
) |
const CStreamStore & aStore | |
TStreamId aStreamId | |
const CStyleList & aExternalStyleList |
IMPORT_C void | SetEditObserver | ( | MEditObserver * | aEditObserver | ) |
MEditObserver * aEditObserver |
void | SetExtendedInsertCharFormatL | ( | const TCharFormatX & | aFormat, |
const TCharFormatXMask & | aMask, | |||
TInt | aPos | |||
) | [private] |
const TCharFormatX & aFormat | |
const TCharFormatXMask & aMask | |
TInt aPos |
IMPORT_C void | SetHasChanged | ( | TBool | aHasChanged | ) | [virtual] |
TBool aHasChanged |
IMPORT_C void | SetInsertCharFormatL | ( | const TCharFormat & | aFormat, |
const TCharFormatMask & | aMask, | |||
TInt | aPos | |||
) |
const TCharFormat & aFormat | |
const TCharFormatMask & aMask | |
TInt aPos |
void | SetParaTypeIsSingle | ( | TBool | aBool | ) | [private, inline] |
TBool aBool |
IMPORT_C void | SetPictureFactory | ( | MPictureFactory * | aPictureFactory, |
MRichTextStoreResolver * | aStoreResolver | |||
) |
MPictureFactory * aPictureFactory | |
MRichTextStoreResolver * aStoreResolver |
void | SetStyleListExternallyOwned | ( | TBool | aExternallyOwned | ) | [inline] |
Sets whether the style list used by this rich text object is owned by the object itself, or is externally owned.
TBool aExternallyOwned | ETrue if the style list should be marked as externally owned, EFalse if not. |
IMPORT_C void | SetStyleListExternallyOwned | ( | const CStyleList & | aStyleList | ) |
const CStyleList & aStyleList |
IMPORT_C void | StoreComponentsL | ( | 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.
CStreamStore & aStore | Stream store to which the text components are written. |
CStoreMap & aMap | A 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. |
IMPORT_C void | StoreMarkupComponentsL | ( | CStreamStore & | aStore, |
CStoreMap & | aMap | |||
) | const |
CStreamStore & aStore | |
CStoreMap & aMap |
void | StoreMarkupL | ( | CStreamStore & | aStore, |
CStoreMap & | aMap | |||
) | const [protected] |
CStreamStore & aStore | |
CStoreMap & aMap |
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.
void | StoreStylesL | ( | CStreamStore & | aStore, |
CStoreMap & | aMap | |||
) | const [protected] |
CStreamStore & aStore | |
CStoreMap & aMap |
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
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.
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.
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
CRichText & | operator= | ( | const CRichText & | aRichText | ) | [private] |
const CRichText & aRichText |
Number of paragraphs in the object.
ESinglePara |
The text object will contain a single paragraph. |
EMultiPara |
The text object will contain multiple paragraphs. |