CFsTextViewerVisualizer Class Reference

class CFsTextViewerVisualizer : public CBase

Inherits from

  • CFsTextViewerVisualizer
Public Member Functions
~CFsTextViewerVisualizer()
CAlfLayout *BackgroundLayout()
TSize CalculateSizeL(MFsRichTextObject *)
TInt CalculateWidthL(const TDesC &, TInt)
voidClickedL()
voidCollapseL(CAlfLayout *, TInt)
CAlfControl *Control()
voidEnableMarkL(TBool)
voidEnableSmileys(TBool)
voidExpandExistingL(CAlfLayout *, TSize, TInt)
CAlfLayout *ExpandL(TInt, TInt, CAlfVisual *)
voidFocusLineL(TInt, TBool)
TInt GetCurrentHotspotByOrder()
HBufC *GetCurrentHotspotTextL()
voidGetHotspotRangeL(TInt &, TInt &)
voidGetMarkedRange(TInt &, TInt &)
CAknDoubleSpanScrollBar *GetScrollBar()
CAlfLayout *GetStatusLayout()
TInt GetTotalHeight()
TPoint GetViewCenterPosition()
TInt GetViewTopPosition()
TBool GetVisibleFocusedHotspotLine(TInt &)
TBool IsHotspotHighlighted()
TSize LayoutVisualsL(CAlfLayout *, TInt, TInt)
TBool MarkEnabled()
voidMoveDownL()
voidMoveLeftL()
voidMoveRightL()
voidMoveUpL()
CFsTextViewerVisualizerData *Navigator()
CFsTextViewerVisualizer *NewL(CFsTextViewerControl &, CFsRichText *, CFsSmileyDictionary *, CFsTextViewerVisualizerSettings *)
TBool NextVisibleHotspotL(TBool &)
voidNotifyControlVisibilityChange(TBool)
voidPageDownL(TInt)
voidPageUpL(TInt)
CFsTextParser *Parser()
TBool PrevVisibleHotspotL(TBool &)
voidRedrawPartBgsL()
voidRefreshPartBgsL()
voidReloadL()
voidReloadPicturesL(TInt)
voidRemoveEndLinesL(TInt)
voidRemoveStatusLayout()
voidReplaceTextL(CFsRichText *, CFsSmileyDictionary *)
voidReset()
CAlfLayout *RootLayout()
voidScrollDownL(TInt, TInt)
voidScrollUpL(TInt, TInt)
voidSetBackgroundColorL(const TRgb &)
voidSetBackgroundImageL(CAlfTexture &)
voidSetBackgroundOpacity()
voidSetCurrentHotspotByCharL(TInt)
voidSetCurrentHotspotByOrderL(TInt, TBool)
voidSetCursorDelay(TInt)
voidSetScrollDelay(TInt)
voidSetScrollOffsetInLines(TInt)
voidSetScrollOffsetInPx(TInt)
voidSetSmileySize(TSize)
voidSetWatermarkL(CFsTextViewerWatermark *)
TBool SmileysEnabled()
CAlfLayout *StackLayout()
voidSwitchMarkL()
voidUpdateDisplaySize()
voidUpdateStatusLayout()
Private Member Functions
CFsTextViewerVisualizer(CFsTextViewerVisualizerSettings *)
voidConstructL(CFsTextViewerControl &, CFsRichText *, CFsSmileyDictionary *)
voidConstructSelfL(CFsRichText *, CFsSmileyDictionary *, TBool)
voidConstructVisualsL(TBool)
voidDrawCursorL(TInt)
voidDrawMarkL(TInt)
TInt FindMaxLengthL(CAlfVisual *)
TInt FindMaxLengthL(MFsRichTextObject *)
voidInitDefaultsL()
TFsRangedVisual PrepareRangedVisL(MFsRichTextObject *, CAlfLayout *)
voidSetColumnsL(TBool)
voidUpdateScrollbarL()
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 Member Enumerations
enumanonymous { EUseDefaultScrollOffset = -10000, EUseDefaultScrollTime = -1 }
Public Attributes
TSize iContentSize
TSize iDisplaySize
TInt iFirstLine
CFsTextViewerVisualizerSettings *iSettings
CFsTextViewerSkinData *iSkinData
CFsTextStyleManager *iTextStyleManager
TInt iTotalLines
Private Attributes
CAlfBrush *iBackgroundBrush
CAlfLayout *iBackgroundLayout
CAlfBorderBrush *iBorder
CFsRichText *iCFsRichText
CAlfGridLayout *iComponentLayout
CAlfAnchorLayout *iContentLayout
CFsTextViewerControl *iControl
CAlfVisual *iCursor
TInt iCursorDelay
TBool iCursorEnabled
CAlfImageVisual *iDummyScrollbar
TAlfTimedValue iEffectiveOffset
CAlfEnv *iEnv
TInt iExpandDelay
TFsTextureObserver iFsTextureObserver
CFsTextViewerCoordinator *iHelper
TBool iIsLayouted
CFsTextViewerLayouter *iLayouter
TInt iLineOffset
TBool iMark
CFsTextViewerMarkFacility *iMarkFacility
CAlfLayout *iMarkingLayout
CFsTextViewerVisualizerData *iNavigator
CFsTextParser *iParser
TInt iRichTextLength
CAlfDeckLayout *iRootLayout
CWsScreenDevice *iScreenDev
TBool iScrollByCursor
CAknDoubleSpanScrollBar *iScrollbar
TAknDoubleSpanScrollBarModel iScrollbarModel
TInt iScrollbarPos
TFsScrollbarVisibility iScrollbarVisibility
TBool iScrollbarVisible
TInt iScrollingDelay
TInt iScrollingOffset
CFsTextViewerSelectsManager *iSelector
CFsSmileyDictionary *iSmileyDict
TBool iSmileyEnabled
CAlfAnchorLayout *iStatusLineLayout
CAlfTextVisual *iText
CFsTextureLoader *iTextureLoader
TInt iTotalHeight
CFsTextViewerWatermark *iWatermark
CAlfImageVisual *iWatermarkVisual

Constructor & Destructor Documentation

CFsTextViewerVisualizer(CFsTextViewerVisualizerSettings *)

CFsTextViewerVisualizer(CFsTextViewerVisualizerSettings *aSettings)[private]

Parameters

CFsTextViewerVisualizerSettings * aSettings

~CFsTextViewerVisualizer()

~CFsTextViewerVisualizer()

Member Functions Documentation

BackgroundLayout()

CAlfLayout *BackgroundLayout()

CalculateSizeL(MFsRichTextObject *)

TSize CalculateSizeL(MFsRichTextObject *aObject)

Parameters

MFsRichTextObject * aObject

CalculateWidthL(const TDesC &, TInt)

TInt CalculateWidthL(const TDesC &aText,
TIntaTextStyleId
)

Parameters

const TDesC & aText
TInt aTextStyleId

ClickedL()

voidClickedL()

CollapseL(CAlfLayout *, TInt)

voidCollapseL(CAlfLayout *aLayout,
TIntaId
)

Parameters

CAlfLayout * aLayout
TInt aId

ConstructL(CFsTextViewerControl &, CFsRichText *, CFsSmileyDictionary *)

voidConstructL(CFsTextViewerControl &aControl,
CFsRichText *aRichText,
CFsSmileyDictionary *aSmDict
)[private]

Parameters

CFsTextViewerControl & aControl
CFsRichText * aRichText
CFsSmileyDictionary * aSmDict

ConstructSelfL(CFsRichText *, CFsSmileyDictionary *, TBool)

voidConstructSelfL(CFsRichText *aRichText,
CFsSmileyDictionary *aSmDict,
TBoolaNew = ETrue
)[private]

Parameters

CFsRichText * aRichText
CFsSmileyDictionary * aSmDict
TBool aNew = ETrue

ConstructVisualsL(TBool)

voidConstructVisualsL(TBoolaRefreshBg = ETrue)[private]

Parameters

TBool aRefreshBg = ETrue

Control()

CAlfControl *Control()

DrawCursorL(TInt)

voidDrawCursorL(TIntaTime)[private]

Parameters

TInt aTime

DrawMarkL(TInt)

voidDrawMarkL(TIntaTime = 0)[private]

Parameters

TInt aTime = 0

EnableMarkL(TBool)

voidEnableMarkL(TBoolaEnabled = ETrue)

Parameters

TBool aEnabled = ETrue

EnableSmileys(TBool)

voidEnableSmileys(TBoolaStatus = ETrue)

Parameters

TBool aStatus = ETrue

ExpandExistingL(CAlfLayout *, TSize, TInt)

voidExpandExistingL(CAlfLayout *aLayout,
TSizeaTargetSize,
TIntaId
)

Parameters

CAlfLayout * aLayout
TSize aTargetSize
TInt aId

ExpandL(TInt, TInt, CAlfVisual *)

CAlfLayout *ExpandL(TIntaId,
TIntaStart,
CAlfVisual *aVisual
)

Parameters

TInt aId
TInt aStart
CAlfVisual * aVisual

FindMaxLengthL(CAlfVisual *)

TInt FindMaxLengthL(CAlfVisual *aVisual)[private]

Parameters

CAlfVisual * aVisual

FindMaxLengthL(MFsRichTextObject *)

TInt FindMaxLengthL(MFsRichTextObject *aObject)[private]

Parameters

MFsRichTextObject * aObject

FocusLineL(TInt, TBool)

voidFocusLineL(TIntaLine,
TBoolaShowAsFirstLine = EFalse
)

Parameters

TInt aLine
TBool aShowAsFirstLine = EFalse

GetCurrentHotspotByOrder()

TInt GetCurrentHotspotByOrder()

GetCurrentHotspotTextL()

HBufC *GetCurrentHotspotTextL()

GetHotspotRangeL(TInt &, TInt &)

voidGetHotspotRangeL(TInt &aBegin,
TInt &aEnd
)

Parameters

TInt & aBegin
TInt & aEnd

GetMarkedRange(TInt &, TInt &)

voidGetMarkedRange(TInt &aBegin,
TInt &aEnd
)

Parameters

TInt & aBegin
TInt & aEnd

GetScrollBar()

CAknDoubleSpanScrollBar *GetScrollBar()

GetStatusLayout()

CAlfLayout *GetStatusLayout()

GetTotalHeight()

TInt GetTotalHeight()

GetViewCenterPosition()

TPoint GetViewCenterPosition()

GetViewTopPosition()

TInt GetViewTopPosition()

GetVisibleFocusedHotspotLine(TInt &)

TBool GetVisibleFocusedHotspotLine(TInt &aLineNum)const

Parameters

TInt & aLineNum

InitDefaultsL()

voidInitDefaultsL()[private]

IsHotspotHighlighted()

TBool IsHotspotHighlighted()

LayoutVisualsL(CAlfLayout *, TInt, TInt)

TSize LayoutVisualsL(CAlfLayout *aLayout,
TIntaStart,
TIntaEnd
)

Parameters

CAlfLayout * aLayout
TInt aStart
TInt aEnd

MarkEnabled()

TBool MarkEnabled()

MoveDownL()

voidMoveDownL()

MoveLeftL()

voidMoveLeftL()

MoveRightL()

voidMoveRightL()

MoveUpL()

voidMoveUpL()

Navigator()

CFsTextViewerVisualizerData *Navigator()

NewL(CFsTextViewerControl &, CFsRichText *, CFsSmileyDictionary *, CFsTextViewerVisualizerSettings *)

CFsTextViewerVisualizer *NewL(CFsTextViewerControl &aControl,
CFsRichText *aRichText,
CFsSmileyDictionary *aSmDict,
CFsTextViewerVisualizerSettings *aSettings
)[static]

Parameters

CFsTextViewerControl & aControl
CFsRichText * aRichText
CFsSmileyDictionary * aSmDict
CFsTextViewerVisualizerSettings * aSettings

NextVisibleHotspotL(TBool &)

TBool NextVisibleHotspotL(TBool &aChanged)

Parameters

TBool & aChanged

NotifyControlVisibilityChange(TBool)

voidNotifyControlVisibilityChange(TBoolaIsVisible)

Parameters

TBool aIsVisible

PageDownL(TInt)

voidPageDownL(TIntaTime = EUseDefaultScrollTime)

Parameters

TInt aTime = EUseDefaultScrollTime

PageUpL(TInt)

voidPageUpL(TIntaTime = EUseDefaultScrollTime)

Parameters

TInt aTime = EUseDefaultScrollTime

Parser()

CFsTextParser *Parser()

PrepareRangedVisL(MFsRichTextObject *, CAlfLayout *)

TFsRangedVisual PrepareRangedVisL(MFsRichTextObject *aObject,
CAlfLayout *aLayout
)[private]

Parameters

MFsRichTextObject * aObject
CAlfLayout * aLayout

PrevVisibleHotspotL(TBool &)

TBool PrevVisibleHotspotL(TBool &aChanged)

Parameters

TBool & aChanged

RedrawPartBgsL()

voidRedrawPartBgsL()

RefreshPartBgsL()

voidRefreshPartBgsL()

ReloadL()

voidReloadL()

ReloadPicturesL(TInt)

voidReloadPicturesL(TIntaLine)

Parameters

TInt aLine

RemoveEndLinesL(TInt)

voidRemoveEndLinesL(TIntaLines)

Parameters

TInt aLines

RemoveStatusLayout()

voidRemoveStatusLayout()

ReplaceTextL(CFsRichText *, CFsSmileyDictionary *)

voidReplaceTextL(CFsRichText *aRichText,
CFsSmileyDictionary *aSmDict = NULL
)

Parameters

CFsRichText * aRichText
CFsSmileyDictionary * aSmDict = NULL

Reset()

voidReset()

RootLayout()

CAlfLayout *RootLayout()

ScrollDownL(TInt, TInt)

voidScrollDownL(TIntaOffset = EUseDefaultScrollOffset,
TIntaTime = EUseDefaultScrollTime
)

Parameters

TInt aOffset = EUseDefaultScrollOffset
TInt aTime = EUseDefaultScrollTime

ScrollUpL(TInt, TInt)

voidScrollUpL(TIntaOffset = EUseDefaultScrollOffset,
TIntaTime = EUseDefaultScrollTime
)

Parameters

TInt aOffset = EUseDefaultScrollOffset
TInt aTime = EUseDefaultScrollTime

SetBackgroundColorL(const TRgb &)

voidSetBackgroundColorL(const TRgb &aColor)

Parameters

const TRgb & aColor

SetBackgroundImageL(CAlfTexture &)

voidSetBackgroundImageL(CAlfTexture &aTexture)

Parameters

CAlfTexture & aTexture

SetBackgroundOpacity()

voidSetBackgroundOpacity()

SetColumnsL(TBool)

voidSetColumnsL(TBoolaShowScrollBar)[private]

Parameters

TBool aShowScrollBar

SetCurrentHotspotByCharL(TInt)

voidSetCurrentHotspotByCharL(TIntaIndex)

Parameters

TInt aIndex

SetCurrentHotspotByOrderL(TInt, TBool)

voidSetCurrentHotspotByOrderL(TIntaIndex,
TBoolaFocusLine = EFalse
)

Parameters

TInt aIndex
TBool aFocusLine = EFalse

SetCursorDelay(TInt)

voidSetCursorDelay(TIntaDelay)

Parameters

TInt aDelay

SetScrollDelay(TInt)

voidSetScrollDelay(TIntaDelay)

Parameters

TInt aDelay

SetScrollOffsetInLines(TInt)

voidSetScrollOffsetInLines(TIntaLineOffset)

Parameters

TInt aLineOffset

SetScrollOffsetInPx(TInt)

voidSetScrollOffsetInPx(TIntaPxOffset)

Parameters

TInt aPxOffset

SetSmileySize(TSize)

voidSetSmileySize(TSizeaSize)

Parameters

TSize aSize

SetWatermarkL(CFsTextViewerWatermark *)

voidSetWatermarkL(CFsTextViewerWatermark *aWatermark)

Parameters

CFsTextViewerWatermark * aWatermark

SmileysEnabled()

TBool SmileysEnabled()

StackLayout()

CAlfLayout *StackLayout()

SwitchMarkL()

voidSwitchMarkL()

UpdateDisplaySize()

voidUpdateDisplaySize()

UpdateScrollbarL()

voidUpdateScrollbarL()[private]

UpdateStatusLayout()

voidUpdateStatusLayout()

Member Enumerations Documentation

Enum anonymous

Enumerators

EUseDefaultScrollOffset = -10000
EUseDefaultScrollTime = -1

Member Data Documentation

CAlfBrush * iBackgroundBrush

CAlfBrush *iBackgroundBrush[private]

CAlfLayout * iBackgroundLayout

CAlfLayout *iBackgroundLayout[private]

CAlfBorderBrush * iBorder

CAlfBorderBrush *iBorder[private]

CFsRichText * iCFsRichText

CFsRichText *iCFsRichText[private]

CAlfGridLayout * iComponentLayout

CAlfGridLayout *iComponentLayout[private]

CAlfAnchorLayout * iContentLayout

CAlfAnchorLayout *iContentLayout[private]

TSize iContentSize

TSize iContentSize

CFsTextViewerControl * iControl

CFsTextViewerControl *iControl[private]

CAlfVisual * iCursor

CAlfVisual *iCursor[private]

TInt iCursorDelay

TInt iCursorDelay[private]

TBool iCursorEnabled

TBool iCursorEnabled[private]

TSize iDisplaySize

TSize iDisplaySize

CAlfImageVisual * iDummyScrollbar

CAlfImageVisual *iDummyScrollbar[private]

TAlfTimedValue iEffectiveOffset

TAlfTimedValue iEffectiveOffset[private]

CAlfEnv * iEnv

CAlfEnv *iEnv[private]

TInt iExpandDelay

TInt iExpandDelay[private]

TInt iFirstLine

TInt iFirstLine

TFsTextureObserver iFsTextureObserver

TFsTextureObserver iFsTextureObserver[private]

CFsTextViewerCoordinator * iHelper

CFsTextViewerCoordinator *iHelper[private]

TBool iIsLayouted

TBool iIsLayouted[private]

CFsTextViewerLayouter * iLayouter

CFsTextViewerLayouter *iLayouter[private]

TInt iLineOffset

TInt iLineOffset[private]

TBool iMark

TBool iMark[private]

CFsTextViewerMarkFacility * iMarkFacility

CFsTextViewerMarkFacility *iMarkFacility[private]

CAlfLayout * iMarkingLayout

CAlfLayout *iMarkingLayout[private]

CFsTextViewerVisualizerData * iNavigator

CFsTextViewerVisualizerData *iNavigator[private]

CFsTextParser * iParser

CFsTextParser *iParser[private]

TInt iRichTextLength

TInt iRichTextLength[private]

CAlfDeckLayout * iRootLayout

CAlfDeckLayout *iRootLayout[private]

CWsScreenDevice * iScreenDev

CWsScreenDevice *iScreenDev[private]

TBool iScrollByCursor

TBool iScrollByCursor[private]

CAknDoubleSpanScrollBar * iScrollbar

CAknDoubleSpanScrollBar *iScrollbar[private]

TAknDoubleSpanScrollBarModel iScrollbarModel

TAknDoubleSpanScrollBarModel iScrollbarModel[private]

TInt iScrollbarPos

TInt iScrollbarPos[private]

Scrollbar position

TFsScrollbarVisibility iScrollbarVisibility

TFsScrollbarVisibility iScrollbarVisibility[private]

Visibility of scrollbar

TBool iScrollbarVisible

TBool iScrollbarVisible[private]

TInt iScrollingDelay

TInt iScrollingDelay[private]

TInt iScrollingOffset

TInt iScrollingOffset[private]

CFsTextViewerSelectsManager * iSelector

CFsTextViewerSelectsManager *iSelector[private]

CFsTextViewerVisualizerSettings * iSettings

CFsTextViewerVisualizerSettings *iSettings

CFsTextViewerSkinData * iSkinData

CFsTextViewerSkinData *iSkinData

CFsSmileyDictionary * iSmileyDict

CFsSmileyDictionary *iSmileyDict[private]

TBool iSmileyEnabled

TBool iSmileyEnabled[private]

CAlfAnchorLayout * iStatusLineLayout

CAlfAnchorLayout *iStatusLineLayout[private]

CAlfTextVisual * iText

CAlfTextVisual *iText[private]

CFsTextStyleManager * iTextStyleManager

CFsTextStyleManager *iTextStyleManager

CFsTextureLoader * iTextureLoader

CFsTextureLoader *iTextureLoader[private]

TInt iTotalHeight

TInt iTotalHeight[private]

TInt iTotalLines

TInt iTotalLines

CFsTextViewerWatermark * iWatermark

CFsTextViewerWatermark *iWatermark[private]

CAlfImageVisual * iWatermarkVisual

CAlfImageVisual *iWatermarkVisual[private]