CFsTextViewerLayouter Class Reference

class CFsTextViewerLayouter : public CBase

Inherits from

Public Member Functions
~CFsTextViewerLayouter ()
TBool AppendObjectL ( MFsRichTextObject *, CAlfLayout *, CFsTextParser *, TBool )
TSize CalculateSizeL ( MFsRichTextObject *)
void ChangeDirection ( TBidiText::TDirectionality )
void ConstructLineL ( TInt )
void EnableSmileys ( TBool )
TInt FindMaxLengthL ( MFsRichTextObject *)
TInt GetCurrentLineOffset ()
TBidiText::TDirectionality GetDirection ()
TBool InsertObjectL ( MFsRichTextObject *, CAlfLayout *, CFsTextParser *, TBool )
TBool IsNewLine ()
void JoinRangedVisuals ( TFsRangedVisual *, TFsRangedVisual *)
TInt Lines ()
TInt MeasureBidiTextBoundsWidth (const CFont &, const TDesC &, CFont::TMeasureTextInput::TFlags )
CFsTextViewerLayouter * NewL (CAlfEnv *)
TFsRangedVisual * PrepareRangedVisL ( MFsRichTextObject *, CAlfLayout *)
void SetCurrentLineOffset ( TInt )
void SetDirection ( TBidiText::TDirectionality )
void SetDisplaySize ( TSize )
void SetHelper ( CFsTextViewerCoordinator *)
void SetMargins (const TInt , const TInt )
void SetNavigator ( CFsTextViewerVisualizerData *)
void SetPosition ( TInt , TInt )
Private Member Functions
CFsTextViewerLayouter (CAlfEnv *)
void ConstructL ()
TBool ReorderLineFromLeftL ( MFsRichTextObject *, CAlfLayout *, CFsTextParser *, TSize , TBool )
TBool ReorderLineFromRightL ( MFsRichTextObject *, CAlfLayout *, CFsTextParser *, TSize , TBool )
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()
Public Attributes
CAlfControl * iControl
CFsTextViewerVisualizer * iVisualizer
Private Attributes
CFsRichText * iCFsRichText
RPointerArray < TFsRangedVisual > iCurrentLineArray
TInt iCurrentLineOffset
TSize iDisplaySize
CAlfEnv * iEnv
CFsTextViewerCoordinator * iHelper
TInt iLastCol
TInt iLeftMargin
TInt iLineHeight
TInt iLines
TInt iLowestPicPosition
TBidiText::TDirectionality iMainDirection
CFsTextViewerVisualizerData * iNavigator
TBool iNewLine
TInt iRightMargin
CWsScreenDevice * iScreenDev
TBool iSmileyEnabled

Constructor & Destructor Documentation

CFsTextViewerLayouter(CAlfEnv *)

CFsTextViewerLayouter ( CAlfEnv * aEnv ) [private]

Parameters

CAlfEnv * aEnv

~CFsTextViewerLayouter()

~CFsTextViewerLayouter ( )

Member Functions Documentation

AppendObjectL(MFsRichTextObject *, CAlfLayout *, CFsTextParser *, TBool)

TBool AppendObjectL ( MFsRichTextObject * aObject,
CAlfLayout * aLayout,
CFsTextParser * aParser,
TBool aRegisterSelects = ETrue
)

Parameters

MFsRichTextObject * aObject
CAlfLayout * aLayout
CFsTextParser * aParser
TBool aRegisterSelects = ETrue

CalculateSizeL(MFsRichTextObject *)

TSize CalculateSizeL ( MFsRichTextObject * aObject )

Parameters

MFsRichTextObject * aObject

ChangeDirection(TBidiText::TDirectionality)

void ChangeDirection ( TBidiText::TDirectionality aDirection )

Parameters

TBidiText::TDirectionality aDirection

ConstructL()

void ConstructL ( ) [private]

ConstructLineL(TInt)

void ConstructLineL ( TInt aHeight = 1 )

Parameters

TInt aHeight = 1

EnableSmileys(TBool)

void EnableSmileys ( TBool aEnable = ETrue )

Parameters

TBool aEnable = ETrue

FindMaxLengthL(MFsRichTextObject *)

TInt FindMaxLengthL ( MFsRichTextObject * aObject )

Parameters

MFsRichTextObject * aObject

GetCurrentLineOffset()

TInt GetCurrentLineOffset ( )

GetDirection()

TBidiText::TDirectionality GetDirection ( )

InsertObjectL(MFsRichTextObject *, CAlfLayout *, CFsTextParser *, TBool)

TBool InsertObjectL ( MFsRichTextObject * aObject,
CAlfLayout * aLayout,
CFsTextParser * aParser,
TBool aRegisterSelects = ETrue
)

Parameters

MFsRichTextObject * aObject
CAlfLayout * aLayout
CFsTextParser * aParser
TBool aRegisterSelects = ETrue

IsNewLine()

TBool IsNewLine ( )

JoinRangedVisuals(TFsRangedVisual *, TFsRangedVisual *)

void JoinRangedVisuals ( TFsRangedVisual * aFirst,
TFsRangedVisual * aSecond
)

Parameters

TFsRangedVisual * aFirst
TFsRangedVisual * aSecond

Lines()

TInt Lines ( )

MeasureBidiTextBoundsWidth(const CFont &, const TDesC &, CFont::TMeasureTextInput::TFlags)

TInt MeasureBidiTextBoundsWidth ( const CFont & aFont,
const TDesC & aText,
CFont::TMeasureTextInput::TFlags aOrder
)

Parameters

const CFont & aFont
const TDesC & aText
CFont::TMeasureTextInput::TFlags aOrder

NewL(CAlfEnv *)

CFsTextViewerLayouter * NewL ( CAlfEnv * aEnv ) [static]

Parameters

CAlfEnv * aEnv

PrepareRangedVisL(MFsRichTextObject *, CAlfLayout *)

TFsRangedVisual * PrepareRangedVisL ( MFsRichTextObject * aObject,
CAlfLayout * aLayout
)

Parameters

MFsRichTextObject * aObject
CAlfLayout * aLayout

ReorderLineFromLeftL(MFsRichTextObject *, CAlfLayout *, CFsTextParser *, TSize, TBool)

TBool ReorderLineFromLeftL ( MFsRichTextObject * aObject,
CAlfLayout * aLayout,
CFsTextParser * aParser,
TSize aObjectSize,
TBool aRegisterSelects = ETrue
) [private]

Parameters

MFsRichTextObject * aObject
CAlfLayout * aLayout
CFsTextParser * aParser
TSize aObjectSize
TBool aRegisterSelects = ETrue

ReorderLineFromRightL(MFsRichTextObject *, CAlfLayout *, CFsTextParser *, TSize, TBool)

TBool ReorderLineFromRightL ( MFsRichTextObject * aObject,
CAlfLayout * aLayout,
CFsTextParser * aParser,
TSize aObjectSize,
TBool aRegisterSelects = ETrue
) [private]

Parameters

MFsRichTextObject * aObject
CAlfLayout * aLayout
CFsTextParser * aParser
TSize aObjectSize
TBool aRegisterSelects = ETrue

SetCurrentLineOffset(TInt)

void SetCurrentLineOffset ( TInt aOffset )

Parameters

TInt aOffset

SetDirection(TBidiText::TDirectionality)

void SetDirection ( TBidiText::TDirectionality aDirection )

Parameters

TBidiText::TDirectionality aDirection

SetDisplaySize(TSize)

void SetDisplaySize ( TSize aDisplaySize )

Parameters

TSize aDisplaySize

SetHelper(CFsTextViewerCoordinator *)

void SetHelper ( CFsTextViewerCoordinator * aHelper )

Parameters

CFsTextViewerCoordinator * aHelper

SetMargins(const TInt, const TInt)

void SetMargins ( const TInt aLeft,
const TInt aRight
)

Parameters

const TInt aLeft
const TInt aRight

SetNavigator(CFsTextViewerVisualizerData *)

void SetNavigator ( CFsTextViewerVisualizerData * aNavigator )

Parameters

CFsTextViewerVisualizerData * aNavigator

SetPosition(TInt, TInt)

void SetPosition ( TInt aLine,
TInt aLineOffset
)

Parameters

TInt aLine
TInt aLineOffset

Member Data Documentation

CFsRichText * iCFsRichText

CFsRichText * iCFsRichText [private]

CAlfControl * iControl

CAlfControl * iControl

RPointerArray< TFsRangedVisual > iCurrentLineArray

RPointerArray < TFsRangedVisual > iCurrentLineArray [private]

TInt iCurrentLineOffset

TInt iCurrentLineOffset [private]

TSize iDisplaySize

TSize iDisplaySize [private]

CAlfEnv * iEnv

CAlfEnv * iEnv [private]

CFsTextViewerCoordinator * iHelper

CFsTextViewerCoordinator * iHelper [private]

TInt iLastCol

TInt iLastCol [private]

TInt iLeftMargin

TInt iLeftMargin [private]

TInt iLineHeight

TInt iLineHeight [private]

TInt iLines

TInt iLines [private]

TInt iLowestPicPosition

TInt iLowestPicPosition [private]

TBidiText::TDirectionality iMainDirection

TBidiText::TDirectionality iMainDirection [private]

CFsTextViewerVisualizerData * iNavigator

CFsTextViewerVisualizerData * iNavigator [private]

TBool iNewLine

TBool iNewLine [private]

TInt iRightMargin

TInt iRightMargin [private]

CWsScreenDevice * iScreenDev

CWsScreenDevice * iScreenDev [private]

TBool iSmileyEnabled

TBool iSmileyEnabled [private]

CFsTextViewerVisualizer * iVisualizer

CFsTextViewerVisualizer * iVisualizer