CTmTextLayout Class Reference

class CTmTextLayout : public CBase

WARNING: this Class is for internal use ONLY. Compatibility is not guaranteed in future releases. The text layout for a single rectangular piece of text. The object does not own its text or format attributes but gets them from an interface class called MTmSource.

There are functions for setting the text, drawing it, and converting between x-y coordinates and document positions.

Ranges

All ranges of character positions and pixels include the start but not the end. This means that if a line is described by a TTmLineInfo object as starting at document position 345 and ending at 389, character positions 345 to 388 are in the line; 389 is in the next line if any.

Coordinates and units

All coordinates used in TAGMA classes and function arguments are in pixels and are relative to the origin of the object, which is the top left corner of the ordinary text, not including paragraph labels. Vertical coordinates increase from top to bottom.

Document format and positions

A TAGMA document, as supplied by the MTmSource interface, has a length as returned by MTmSource::DocumentLength of zero or more characters. It consists of Unicode text split into paragraphs by standard Unicode paragraph delimiters (character value 0x2029), so the number of paragraphs in the entire document is one more than the number of paragraph delimiters. A document position is a value in the range 0 to one more than the document length. Lines contain all document positions from their start to one less than their end position. These conventions allow all lines to end in a delimiter; the last line contains an imaginary paragraph end, which need not be supplied by the MTmSource interface, at a position equal to the document length. A CTmTextLayout object formatted for an empty document will thus have a start position (returned by StartChar) of 0 and an end position (returned by EndChar) of 1. WARNING: this Class is for internal use ONLY. Compatibility is not guaranteed in future releases.

Inherits from

Nested Classes and Structures

Public Member Functions
CTmTextLayout()
~CTmTextLayout()
IMPORT_C TBoolAddParL(const TTmFormatParamBase &, TBool, TInt &, TInt &)
IMPORT_C voidClear()
const CTmCode &Code()
IMPORT_C voidDeleteFormattingFromEndL(const TTmFormatParamBase &, TInt, TInt &)
IMPORT_C TBoolDeletePar(const TTmFormatParamBase &, TBool, TInt, TInt &)
IMPORT_C TBoolDocPosToLine(const TTmDocPosSpec &, TTmLineInfo &)
IMPORT_C TBoolDocPosToLine(const TTmDocPos &, TTmLineInfo &)
IMPORT_C voidDrawBackground(CGraphicsContext &, const TPoint &, const TRect &, const TLogicalRgb &)
IMPORT_C voidDrawLayout(CGraphicsContext &, const TPoint &, const TRect &, const TLogicalRgb *, TBool)
IMPORT_C voidDrawLayout(CGraphicsContext &, const TPoint &, const TRect &, const TLogicalRgb *, TBool, const TCursorSelection *, const TTmHighlightExtensions *)
IMPORT_C voidDrawSection(CGraphicsContext &, const TPoint &, TInt, TInt, const TRect &)
IMPORT_C voidDrawSection(CGraphicsContext &, const TPoint &, TInt, TInt, const TRect &, const TTmHighlightExtensions &, TInt, TInt)
TInt EndChar()
IMPORT_C voidExtendFormattingDownwardsL(TTmFormatParam &)
IMPORT_C TBoolFindAdjacentChunks(const TTmDocPosSpec &, TTmChunkDescription &, TTmChunkDescription &)
IMPORT_C TBoolFindDocPos(const TTmDocPosSpec &, TTmPosInfo2 &, TTmLineInfo &)
IMPORT_C TBoolFindDocPos(const TTmDocPos &, TTmPosInfo &, TTmLineInfo &)
IMPORT_C TBoolFindDocPos(const TTmDocPosSpec &, TTmPosInfo2 &, TTmLineInfo &, TInt &)
IMPORT_C TIntFindNextPos(TInt)
IMPORT_C TIntFindPreviousPos(TInt)
IMPORT_C TBoolFindXyPos(const TPoint &, TTmPosInfo2 &, TTmLineInfo &)
IMPORT_C TBoolFindXyPos(const TPoint &, TTmPosInfo &, TTmLineInfo &)
IMPORT_C TBoolFindXyPosWithDisambiguation(const TPoint &, TTmPosInfo2 &, TTmPosInfo2 &, TTmLineInfo &)
IMPORT_C voidFormatL(const TTmFormatParamBase &, const TTmReformatParam &, TTmReformatResult &)
TUint GetCurrentContextChar()
IMPORT_C TBoolGetCursor(const TTmDocPosSpec &, TTmCursorPlacement, TTmLineInfo &, TPoint &, TInt &, TInt &, TInt &)
IMPORT_C TBoolGetCursor(const TTmDocPos &, TTmCursorPlacement, TTmLineInfo &, TPoint &, TInt &, TInt &, TInt &)
IMPORT_C TBoolGetDisplayedText(TInt, TDes &, TInt &)
IMPORT_C TBoolGetDisplayedTextL(TInt, TDes &, TInt &)
TInt GetDrawingInterpFlags()
IMPORT_C voidGetMinimumLayoutSizeL(TInt, TSize &)
IMPORT_C voidGetMinimumLayoutSizeL(TInt, TBool, TSize &)
IMPORT_C TBoolGetNextPosLeftWithDisambiguation(const TTmDocPosSpec &, TTmPosInfo2 &, TTmPosInfo2 &)
IMPORT_C TBoolGetNextPosRightWithDisambiguation(const TTmDocPosSpec &, TTmPosInfo2 &, TTmPosInfo2 &)
IMPORT_C TBoolGetNextVisualCursorPos(const TTmDocPosSpec &, TTmPosInfo2 &, TBool)
IMPORT_C TBoolGetNextVisualCursorPos(const TTmDocPos &, TTmPosInfo &, TBool)
IMPORT_C voidGetUpdateBoundingRect(TInt, TInt, const TPoint &, TRect &)
IMPORT_C voidHighlightSection(CGraphicsContext &, const TPoint &, TInt, TInt, const TRect &)
IMPORT_C voidHighlightSection(CGraphicsContext &, const TPoint &, TInt, TInt, const TRect &, const TTmHighlightExtensions &, TInt, TInt)
IMPORT_C voidHorizontalExtremes(TInt &, TInt &, TInt, TInt)
IMPORT_C voidInvertLayout(CGraphicsContext &, const TPoint &, TInt, TInt)
IMPORT_C voidInvertLayout(CGraphicsContext &, const TPoint &, TInt, TInt, const TTmHighlightExtensions &, TInt, TInt)
TInt LayoutHeight()
TInt LayoutWidth()
IMPORT_C TBoolLineExtreme(const TTmDocPosSpec &, TBool, TTmDocPos &)
IMPORT_C TBoolLineNumberToLine(TInt, TTmLineInfo &)
IMPORT_C TIntLines()
IMPORT_C voidMakeVisible(TBool)
IMPORT_C TIntMemoryUsed()
IMPORT_C TBoolParNumberToLine(TInt, TInt, TTmLineInfo &)
IMPORT_C TIntParagraphs()
voidSetCurrentContextChar(TUint)
IMPORT_C voidSetTextL(MTmSource &, const TTmFormatParam &)
MTmSource *Source()
const MTmSource *Source()
TInt StartChar()
IMPORT_C TIntWidthOfWidestLine(TInt, TInt)
IMPORT_C TBoolYPosToLine(TInt, TTmLineInfo &)
Private Member Functions
voidAdjustWidth(const TTmFormatParamBase &, TInt)
voidInvariant()
TBool LastLine(TTmLineInfo &)
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 Attributes
TBidirectionalContext *iBdStateAtEnd
CTmCode iCode
TUint iCurrentContextChar
TInt iDrawingInterpFlags
TInt iEndChar
TInt iHeight
MTmSource *iSource
TInt iStartChar
TInt iWidth

Constructor & Destructor Documentation

CTmTextLayout()

IMPORT_CCTmTextLayout()

~CTmTextLayout()

IMPORT_C~CTmTextLayout()

Member Functions Documentation

AddParL(const TTmFormatParamBase &, TBool, TInt &, TInt &)

IMPORT_C TBoolAddParL(const TTmFormatParamBase &aParam,
TBoolaAtStart,
TInt &aHeightIncrease,
TInt &aParagraphsIncrease
)

Parameters

const TTmFormatParamBase & aParam
TBool aAtStart
TInt & aHeightIncrease
TInt & aParagraphsIncrease

AdjustWidth(const TTmFormatParamBase &, TInt)

voidAdjustWidth(const TTmFormatParamBase &aParam,
TIntaWidthOfNewText
)[private]

Parameters

const TTmFormatParamBase & aParam
TInt aWidthOfNewText

Clear()

IMPORT_C voidClear()

Code()

const CTmCode &Code()const [inline]

Returns a reference to the CTmCode object containing the bytecode representing the text layout.

DeleteFormattingFromEndL(const TTmFormatParamBase &, TInt, TInt &)

IMPORT_C voidDeleteFormattingFromEndL(const TTmFormatParamBase &aParam,
TIntaMaxDeletedHeight,
TInt &aHeightDecrease
)

Parameters

const TTmFormatParamBase & aParam
TInt aMaxDeletedHeight
TInt & aHeightDecrease

DeletePar(const TTmFormatParamBase &, TBool, TInt, TInt &)

IMPORT_C TBoolDeletePar(const TTmFormatParamBase &aParam,
TBoolaAtStart,
TIntaMaxDeletedHeight,
TInt &aHeightDecrease
)

Parameters

const TTmFormatParamBase & aParam
TBool aAtStart
TInt aMaxDeletedHeight
TInt & aHeightDecrease

DocPosToLine(const TTmDocPosSpec &, TTmLineInfo &)

IMPORT_C TBoolDocPosToLine(const TTmDocPosSpec &aDocPos,
TTmLineInfo &aLineInfo
)const

Parameters

const TTmDocPosSpec & aDocPos
TTmLineInfo & aLineInfo

DocPosToLine(const TTmDocPos &, TTmLineInfo &)

IMPORT_C TBoolDocPosToLine(const TTmDocPos &aDocPos,
TTmLineInfo &aLineInfo
)const

Parameters

const TTmDocPos & aDocPos
TTmLineInfo & aLineInfo

DrawBackground(CGraphicsContext &, const TPoint &, const TRect &, const TLogicalRgb &)

IMPORT_C voidDrawBackground(CGraphicsContext &aGc,
const TPoint &aTopLeft,
const TRect &aClipRect,
const TLogicalRgb &aBackground
)const

Parameters

CGraphicsContext & aGc
const TPoint & aTopLeft
const TRect & aClipRect
const TLogicalRgb & aBackground

DrawLayout(CGraphicsContext &, const TPoint &, const TRect &, const TLogicalRgb *, TBool)

IMPORT_C voidDrawLayout(CGraphicsContext &aGc,
const TPoint &aTopLeft,
const TRect &aClipRect,
const TLogicalRgb *aDocBackground,
TBoolaDrawParBackground
)const

Parameters

CGraphicsContext & aGc
const TPoint & aTopLeft
const TRect & aClipRect
const TLogicalRgb * aDocBackground
TBool aDrawParBackground

DrawLayout(CGraphicsContext &, const TPoint &, const TRect &, const TLogicalRgb *, TBool, const TCursorSelection *, const TTmHighlightExtensions *)

IMPORT_C voidDrawLayout(CGraphicsContext &aGc,
const TPoint &aTopLeft,
const TRect &aClipRect,
const TLogicalRgb *aDocBackground,
TBoolaDrawParBackground,
const TCursorSelection *aHighlight,
const TTmHighlightExtensions *aHighlightExtensions
)const

Parameters

CGraphicsContext & aGc
const TPoint & aTopLeft
const TRect & aClipRect
const TLogicalRgb * aDocBackground
TBool aDrawParBackground
const TCursorSelection * aHighlight
const TTmHighlightExtensions * aHighlightExtensions

DrawSection(CGraphicsContext &, const TPoint &, TInt, TInt, const TRect &)

IMPORT_C voidDrawSection(CGraphicsContext &aGc,
const TPoint &aTopLeft,
TIntaStartDocPos,
TIntaEndDocPos,
const TRect &aClipRect
)const

Parameters

CGraphicsContext & aGc
const TPoint & aTopLeft
TInt aStartDocPos
TInt aEndDocPos
const TRect & aClipRect

DrawSection(CGraphicsContext &, const TPoint &, TInt, TInt, const TRect &, const TTmHighlightExtensions &, TInt, TInt)

IMPORT_C voidDrawSection(CGraphicsContext &aGc,
const TPoint &aTopLeft,
TIntaStartDocPos,
TIntaEndDocPos,
const TRect &aClipRect,
const TTmHighlightExtensions &aHighlightExtensions,
TIntaHighlightStartDocPos,
TIntaHighlightEndDocPos
)const

Parameters

CGraphicsContext & aGc
const TPoint & aTopLeft
TInt aStartDocPos
TInt aEndDocPos
const TRect & aClipRect
const TTmHighlightExtensions & aHighlightExtensions
TInt aHighlightStartDocPos
TInt aHighlightEndDocPos

EndChar()

TInt EndChar()const [inline]

Returns the character after the last formatted character.

ExtendFormattingDownwardsL(TTmFormatParam &)

IMPORT_C voidExtendFormattingDownwardsL(TTmFormatParam &aParam)

Parameters

TTmFormatParam & aParam

FindAdjacentChunks(const TTmDocPosSpec &, TTmChunkDescription &, TTmChunkDescription &)

IMPORT_C TBoolFindAdjacentChunks(const TTmDocPosSpec &aPos,
TTmChunkDescription &aLeft,
TTmChunkDescription &aRight
)const

Parameters

const TTmDocPosSpec & aPos
TTmChunkDescription & aLeft
TTmChunkDescription & aRight

FindDocPos(const TTmDocPosSpec &, TTmPosInfo2 &, TTmLineInfo &)

IMPORT_C TBoolFindDocPos(const TTmDocPosSpec &aDocPos,
TTmPosInfo2 &aPosInfo,
TTmLineInfo &aLineInfo
)const

Parameters

const TTmDocPosSpec & aDocPos
TTmPosInfo2 & aPosInfo
TTmLineInfo & aLineInfo

FindDocPos(const TTmDocPos &, TTmPosInfo &, TTmLineInfo &)

IMPORT_C TBoolFindDocPos(const TTmDocPos &aDocPos,
TTmPosInfo &aPosInfo,
TTmLineInfo &aLineInfo
)const

Parameters

const TTmDocPos & aDocPos
TTmPosInfo & aPosInfo
TTmLineInfo & aLineInfo

FindDocPos(const TTmDocPosSpec &, TTmPosInfo2 &, TTmLineInfo &, TInt &)

IMPORT_C TBoolFindDocPos(const TTmDocPosSpec &aDocPos,
TTmPosInfo2 &aPosInfo,
TTmLineInfo &aLineInfo,
TInt &aSubscript
)const

Parameters

const TTmDocPosSpec & aDocPos
TTmPosInfo2 & aPosInfo
TTmLineInfo & aLineInfo
TInt & aSubscript

FindNextPos(TInt)

IMPORT_C TIntFindNextPos(TIntaStart)const

Parameters

TInt aStart

FindPreviousPos(TInt)

IMPORT_C TIntFindPreviousPos(TIntaStart)const

Parameters

TInt aStart

FindXyPos(const TPoint &, TTmPosInfo2 &, TTmLineInfo &)

IMPORT_C TBoolFindXyPos(const TPoint &aXyPos,
TTmPosInfo2 &aPosInfo,
TTmLineInfo &aLineInfo
)const

Parameters

const TPoint & aXyPos
TTmPosInfo2 & aPosInfo
TTmLineInfo & aLineInfo

FindXyPos(const TPoint &, TTmPosInfo &, TTmLineInfo &)

IMPORT_C TBoolFindXyPos(const TPoint &aXyPos,
TTmPosInfo &aPosInfo,
TTmLineInfo &aLineInfo
)const

Parameters

const TPoint & aXyPos
TTmPosInfo & aPosInfo
TTmLineInfo & aLineInfo

FindXyPosWithDisambiguation(const TPoint &, TTmPosInfo2 &, TTmPosInfo2 &, TTmLineInfo &)

IMPORT_C TBoolFindXyPosWithDisambiguation(const TPoint &aXyPos,
TTmPosInfo2 &aPosLeft,
TTmPosInfo2 &aPosRight,
TTmLineInfo &aLineInfo
)const

Parameters

const TPoint & aXyPos
TTmPosInfo2 & aPosLeft
TTmPosInfo2 & aPosRight
TTmLineInfo & aLineInfo

FormatL(const TTmFormatParamBase &, const TTmReformatParam &, TTmReformatResult &)

IMPORT_C voidFormatL(const TTmFormatParamBase &aParam,
const TTmReformatParam &aReformatParam,
TTmReformatResult &TTmReformatResult
)

Parameters

const TTmFormatParamBase & aParam
const TTmReformatParam & aReformatParam
TTmReformatResult & TTmReformatResult

GetCurrentContextChar()

TUint GetCurrentContextChar()const

GetCursor(const TTmDocPosSpec &, TTmCursorPlacement, TTmLineInfo &, TPoint &, TInt &, TInt &, TInt &)

IMPORT_C TBoolGetCursor(const TTmDocPosSpec &aDocPos,
TTmCursorPlacementaPlacement,
TTmLineInfo &aLineInfo,
TPoint &aOrigin,
TInt &aWidth,
TInt &aAscent,
TInt &aDescent
)const

Parameters

const TTmDocPosSpec & aDocPos
TTmCursorPlacement aPlacement
TTmLineInfo & aLineInfo
TPoint & aOrigin
TInt & aWidth
TInt & aAscent
TInt & aDescent

GetCursor(const TTmDocPos &, TTmCursorPlacement, TTmLineInfo &, TPoint &, TInt &, TInt &, TInt &)

IMPORT_C TBoolGetCursor(const TTmDocPos &aDocPos,
TTmCursorPlacementaPlacement,
TTmLineInfo &aLineInfo,
TPoint &aOrigin,
TInt &aWidth,
TInt &aAscent,
TInt &aDescent
)const

Parameters

const TTmDocPos & aDocPos
TTmCursorPlacement aPlacement
TTmLineInfo & aLineInfo
TPoint & aOrigin
TInt & aWidth
TInt & aAscent
TInt & aDescent

GetDisplayedText(TInt, TDes &, TInt &)

IMPORT_C TBoolGetDisplayedText(TIntaLineNumber,
TDes &aText,
TInt &aNeeded
)const

Parameters

TInt aLineNumber
TDes & aText
TInt & aNeeded

GetDisplayedTextL(TInt, TDes &, TInt &)

IMPORT_C TBoolGetDisplayedTextL(TIntaLineNumber,
TDes &aText,
TInt &aNeeded
)const

Parameters

TInt aLineNumber
TDes & aText
TInt & aNeeded

GetDrawingInterpFlags()

TInt GetDrawingInterpFlags()const

GetMinimumLayoutSizeL(TInt, TSize &)

IMPORT_C voidGetMinimumLayoutSizeL(TIntaWrapWidth,
TSize &aSize
)const

Parameters

TInt aWrapWidth
TSize & aSize

GetMinimumLayoutSizeL(TInt, TBool, TSize &)

IMPORT_C voidGetMinimumLayoutSizeL(TIntaWrapWidth,
TBoolaAllowLegalLineBreaksOnly,
TSize &aSize
)const

Parameters

TInt aWrapWidth
TBool aAllowLegalLineBreaksOnly
TSize & aSize

GetNextPosLeftWithDisambiguation(const TTmDocPosSpec &, TTmPosInfo2 &, TTmPosInfo2 &)

IMPORT_C TBoolGetNextPosLeftWithDisambiguation(const TTmDocPosSpec &aDocPos,
TTmPosInfo2 &aPosLeft,
TTmPosInfo2 &aPosRight
)const

Parameters

const TTmDocPosSpec & aDocPos
TTmPosInfo2 & aPosLeft
TTmPosInfo2 & aPosRight

GetNextPosRightWithDisambiguation(const TTmDocPosSpec &, TTmPosInfo2 &, TTmPosInfo2 &)

IMPORT_C TBoolGetNextPosRightWithDisambiguation(const TTmDocPosSpec &aDocPos,
TTmPosInfo2 &aPosLeft,
TTmPosInfo2 &aPosRight
)const

Parameters

const TTmDocPosSpec & aDocPos
TTmPosInfo2 & aPosLeft
TTmPosInfo2 & aPosRight

GetNextVisualCursorPos(const TTmDocPosSpec &, TTmPosInfo2 &, TBool)

IMPORT_C TBoolGetNextVisualCursorPos(const TTmDocPosSpec &aDocPos,
TTmPosInfo2 &aInfo,
TBoolaToLeft
)const

Parameters

const TTmDocPosSpec & aDocPos
TTmPosInfo2 & aInfo
TBool aToLeft

GetNextVisualCursorPos(const TTmDocPos &, TTmPosInfo &, TBool)

IMPORT_C TBoolGetNextVisualCursorPos(const TTmDocPos &aDocPos,
TTmPosInfo &aInfo,
TBoolaToLeft
)const

Parameters

const TTmDocPos & aDocPos
TTmPosInfo & aInfo
TBool aToLeft

GetUpdateBoundingRect(TInt, TInt, const TPoint &, TRect &)

IMPORT_C voidGetUpdateBoundingRect(TIntaStartDocPos,
TIntaEndDocPos,
const TPoint &aTopLeft,
TRect &aBoundingRect
)const

Parameters

TInt aStartDocPos
TInt aEndDocPos
const TPoint & aTopLeft
TRect & aBoundingRect

HighlightSection(CGraphicsContext &, const TPoint &, TInt, TInt, const TRect &)

IMPORT_C voidHighlightSection(CGraphicsContext &aGc,
const TPoint &aTopLeft,
TIntaStartDocPos,
TIntaEndDocPos,
const TRect &aClipRect
)const

Parameters

CGraphicsContext & aGc
const TPoint & aTopLeft
TInt aStartDocPos
TInt aEndDocPos
const TRect & aClipRect

HighlightSection(CGraphicsContext &, const TPoint &, TInt, TInt, const TRect &, const TTmHighlightExtensions &, TInt, TInt)

IMPORT_C voidHighlightSection(CGraphicsContext &aGc,
const TPoint &aTopLeft,
TIntaStartDocPos,
TIntaEndDocPos,
const TRect &aClipRect,
const TTmHighlightExtensions &aHighlightExtensions,
TIntaHighlightStartDocPos,
TIntaHighlightEndDocPos
)const

Parameters

CGraphicsContext & aGc
const TPoint & aTopLeft
TInt aStartDocPos
TInt aEndDocPos
const TRect & aClipRect
const TTmHighlightExtensions & aHighlightExtensions
TInt aHighlightStartDocPos
TInt aHighlightEndDocPos

HorizontalExtremes(TInt &, TInt &, TInt, TInt)

IMPORT_C voidHorizontalExtremes(TInt &aLeft,
TInt &aRight,
TIntaTopY = 0,
TIntaBottomY =  KMaxTInt
)const

Parameters

TInt & aLeft
TInt & aRight
TInt aTopY = 0
TInt aBottomY =  KMaxTInt

Invariant()

voidInvariant()const [private, inline]

InvertLayout(CGraphicsContext &, const TPoint &, TInt, TInt)

IMPORT_C voidInvertLayout(CGraphicsContext &aGc,
const TPoint &aTopLeft,
TIntaStartDocPos,
TIntaEndDocPos
)const

Parameters

CGraphicsContext & aGc
const TPoint & aTopLeft
TInt aStartDocPos
TInt aEndDocPos

InvertLayout(CGraphicsContext &, const TPoint &, TInt, TInt, const TTmHighlightExtensions &, TInt, TInt)

IMPORT_C voidInvertLayout(CGraphicsContext &aGc,
const TPoint &aTopLeft,
TIntaStartDocPos,
TIntaEndDocPos,
const TTmHighlightExtensions &aHighlightExtensions,
TIntaHighlightStartDocPos,
TIntaHighlightEndDocPos
)const

Parameters

CGraphicsContext & aGc
const TPoint & aTopLeft
TInt aStartDocPos
TInt aEndDocPos
const TTmHighlightExtensions & aHighlightExtensions
TInt aHighlightStartDocPos
TInt aHighlightEndDocPos

LastLine(TTmLineInfo &)

TBool LastLine(TTmLineInfo &aLine)[private]

Parameters

TTmLineInfo & aLine

LayoutHeight()

TInt LayoutHeight()const [inline]

Returns the height in pixels of the formatted text.

LayoutWidth()

TInt LayoutWidth()const [inline]

Return the width in pixels of the formatted text, not including paragraph labels if present.

LineExtreme(const TTmDocPosSpec &, TBool, TTmDocPos &)

IMPORT_C TBoolLineExtreme(const TTmDocPosSpec &aPos,
TBoolaToRight,
TTmDocPos &aExtreme
)const

Parameters

const TTmDocPosSpec & aPos
TBool aToRight
TTmDocPos & aExtreme

LineNumberToLine(TInt, TTmLineInfo &)

IMPORT_C TBoolLineNumberToLine(TIntaLineNumber,
TTmLineInfo &aLineInfo
)const

Parameters

TInt aLineNumber
TTmLineInfo & aLineInfo

Lines()

IMPORT_C TIntLines()const

MakeVisible(TBool)

IMPORT_C voidMakeVisible(TBoolaVisible)

Parameters

TBool aVisible

MemoryUsed()

IMPORT_C TIntMemoryUsed()const

ParNumberToLine(TInt, TInt, TTmLineInfo &)

IMPORT_C TBoolParNumberToLine(TIntaParNumber,
TIntaLineInPar,
TTmLineInfo &aLineInfo
)const

Parameters

TInt aParNumber
TInt aLineInPar
TTmLineInfo & aLineInfo

Paragraphs()

IMPORT_C TIntParagraphs()const

SetCurrentContextChar(TUint)

voidSetCurrentContextChar(TUintaContextChar)

Parameters

TUint aContextChar

SetTextL(MTmSource &, const TTmFormatParam &)

IMPORT_C voidSetTextL(MTmSource &aSource,
const TTmFormatParam &aParam
)

Parameters

MTmSource & aSource
const TTmFormatParam & aParam

Source()

MTmSource *Source()[inline]

Returns a pointer to to the MTmSource object, if any, that provides text and formatting to this object. Returns null if no source object has been set.

Source()

const MTmSource *Source()const [inline]

StartChar()

TInt StartChar()const [inline]

Returns the first formatted character.

WidthOfWidestLine(TInt, TInt)

IMPORT_C TIntWidthOfWidestLine(TIntaTop = 0,
TIntaBottom =  KMaxTInt
)const

Parameters

TInt aTop = 0
TInt aBottom =  KMaxTInt

YPosToLine(TInt, TTmLineInfo &)

IMPORT_C TBoolYPosToLine(TIntaYPos,
TTmLineInfo &aLineInfo
)const

Parameters

TInt aYPos
TTmLineInfo & aLineInfo

Member Data Documentation

TBidirectionalContext * iBdStateAtEnd

TBidirectionalContext *iBdStateAtEnd[private]

CTmCode iCode

CTmCode iCode[private]

TUint iCurrentContextChar

TUint iCurrentContextChar[private]

TInt iDrawingInterpFlags

TInt iDrawingInterpFlags[private]

TInt iEndChar

TInt iEndChar[private]

TInt iHeight

TInt iHeight[private]

MTmSource * iSource

MTmSource *iSource[private]

TInt iStartChar

TInt iStartChar[private]

TInt iWidth

TInt iWidth[private]