CFsTextViewerLayouter Class Reference

class CFsTextViewerLayouter : public CBase

Inherits from

  • CFsTextViewerLayouter
Public Member Functions
~CFsTextViewerLayouter()
TBool AppendObjectL(MFsRichTextObject *, CAlfLayout *, CFsTextParser *, TBool)
TSize CalculateSizeL(MFsRichTextObject *)
voidChangeDirection(TBidiText::TDirectionality)
voidConstructLineL(TInt)
voidEnableSmileys(TBool)
TInt FindMaxLengthL(MFsRichTextObject *)
TInt GetCurrentLineOffset()
TBidiText::TDirectionality GetDirection()
TBool InsertObjectL(MFsRichTextObject *, CAlfLayout *, CFsTextParser *, TBool)
TBool IsNewLine()
voidJoinRangedVisuals(TFsRangedVisual *, TFsRangedVisual *)
TInt Lines()
TInt MeasureBidiTextBoundsWidth(const CFont &, const TDesC &, CFont::TMeasureTextInput::TFlags)
CFsTextViewerLayouter *NewL(CAlfEnv *)
TFsRangedVisual *PrepareRangedVisL(MFsRichTextObject *, CAlfLayout *)
voidSetCurrentLineOffset(TInt)
voidSetDirection(TBidiText::TDirectionality)
voidSetDisplaySize(TSize)
voidSetHelper(CFsTextViewerCoordinator *)
voidSetMargins(const TInt, const TInt)
voidSetNavigator(CFsTextViewerVisualizerData *)
voidSetPosition(TInt, TInt)
Private Member Functions
CFsTextViewerLayouter(CAlfEnv *)
voidConstructL()
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,
TBoolaRegisterSelects = ETrue
)

Parameters

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

CalculateSizeL(MFsRichTextObject *)

TSize CalculateSizeL(MFsRichTextObject *aObject)

Parameters

MFsRichTextObject * aObject

ChangeDirection(TBidiText::TDirectionality)

voidChangeDirection(TBidiText::TDirectionalityaDirection)

Parameters

TBidiText::TDirectionality aDirection

ConstructL()

voidConstructL()[private]

ConstructLineL(TInt)

voidConstructLineL(TIntaHeight = 1)

Parameters

TInt aHeight = 1

EnableSmileys(TBool)

voidEnableSmileys(TBoolaEnable = 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,
TBoolaRegisterSelects = ETrue
)

Parameters

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

IsNewLine()

TBool IsNewLine()

JoinRangedVisuals(TFsRangedVisual *, TFsRangedVisual *)

voidJoinRangedVisuals(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::TFlagsaOrder
)

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,
TSizeaObjectSize,
TBoolaRegisterSelects = 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,
TSizeaObjectSize,
TBoolaRegisterSelects = ETrue
)[private]

Parameters

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

SetCurrentLineOffset(TInt)

voidSetCurrentLineOffset(TIntaOffset)

Parameters

TInt aOffset

SetDirection(TBidiText::TDirectionality)

voidSetDirection(TBidiText::TDirectionalityaDirection)

Parameters

TBidiText::TDirectionality aDirection

SetDisplaySize(TSize)

voidSetDisplaySize(TSizeaDisplaySize)

Parameters

TSize aDisplaySize

SetHelper(CFsTextViewerCoordinator *)

voidSetHelper(CFsTextViewerCoordinator *aHelper)

Parameters

CFsTextViewerCoordinator * aHelper

SetMargins(const TInt, const TInt)

voidSetMargins(const TIntaLeft,
const TIntaRight
)

Parameters

const TInt aLeft
const TInt aRight

SetNavigator(CFsTextViewerVisualizerData *)

voidSetNavigator(CFsTextViewerVisualizerData *aNavigator)

Parameters

CFsTextViewerVisualizerData * aNavigator

SetPosition(TInt, TInt)

voidSetPosition(TIntaLine,
TIntaLineOffset
)

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