CFsTextViewer Class Reference
class CFsTextViewer : public CBase
|
Public Member Functions
|
|
~CFsTextViewer
()
|
IMPORT_C const
TAlfTimedValue
&
|
BackgroundOpacity
()
|
IMPORT_C
TBool
|
CursorUpDown
()
|
IMPORT_C void
|
EnableCursorUpDown
(
TBool
)
|
IMPORT_C void
|
EnableSmileys
(
TBool
)
|
IMPORT_C void
|
FocusLineL
(
TInt
,
TBool
)
|
IMPORT_C
CAlfControl
*
|
GetControl
()
|
IMPORT_C
TInt
|
GetCurrentHotspotByOrder
()
|
IMPORT_C void
|
GetCurrentHotspotL
(
TInt
&,
TInt
&)
|
IMPORT_C
HBufC
*
|
GetCurrentHotspotTextL
()
|
IMPORT_C
TInt
|
GetFirstCharInLine
(
TInt
)
|
IMPORT_C
TInt
|
GetFirstDisplayedLine
()
|
IMPORT_C
TInt
|
GetLastDisplayedLine
()
|
IMPORT_C
TInt
|
GetLineNumber
(
TInt
)
|
IMPORT_C void
|
GetMarkedArea
(
TInt
&,
TInt
&)
|
IMPORT_C
CAlfLayout
*
|
GetStatusLayout
()
|
IMPORT_C
TInt
|
GetTotalLines
()
|
IMPORT_C
TBool
|
GetVisibleFocusedHotspotLine
(
TInt
&)
|
IMPORT_C void
|
Hide
()
|
IMPORT_C void
|
HideActionButtonFromCurrentHighlightedHotspot
()
|
IMPORT_C
CFsTextViewerKeys
*
|
Keys
()
|
IMPORT_C
CFsTextViewer
*
|
NewL
(CAlfEnv &)
|
IMPORT_C void
|
ReloadPicturesL
(
TInt
)
|
IMPORT_C void
|
ReloadTextL
()
|
IMPORT_C void
|
RemoveEndLinesL
(
TInt
)
|
IMPORT_C void
|
RemoveStatusLayout
()
|
IMPORT_C void
|
ReplaceTextL
(
CFsRichText
*,
CFsSmileyDictionary
*)
|
IMPORT_C
CAlfLayout
*
|
RootLayout
()
|
IMPORT_C void
|
SetActionButton
(CAlfTexture &,
TReal32
)
|
IMPORT_C void
|
SetActionButtonMargin
(
TReal32
)
|
IMPORT_C void
|
SetActionButtonSize
(
TReal32
,
TReal32
)
|
IMPORT_C void
|
SetBackgroundColorL
(const
TRgb
&)
|
IMPORT_C void
|
SetBackgroundImageL
(CAlfTexture &)
|
IMPORT_C void
|
SetBackgroundOpacity
(const
TAlfTimedValue
&)
|
IMPORT_C void
|
SetCurrentHotspotByCharL
(
TInt
)
|
IMPORT_C void
|
SetCurrentHotspotByOrderL
(
TInt
,
TBool
)
|
IMPORT_C void
|
SetCursorDelay
(
TInt
)
|
IMPORT_C void
|
SetCustomKeys
(
CFsTextViewerKeys
*)
|
IMPORT_C void
|
SetLeftMargin
(
TInt
)
|
IMPORT_C void
|
SetLiteLineBg
(CAlfTexture &,
TReal32
)
|
IMPORT_C void
|
SetMirroring
(
TBool
)
|
IMPORT_C void
|
SetObserver
(MFsTextViewerObserver *)
|
IMPORT_C void
|
SetPartBgColorL
(
TInt
,
TInt
, const
TRgb
&)
|
IMPORT_C void
|
SetPartBgImageL
(
TInt
,
TInt
, CAlfTexture &)
|
IMPORT_C void
|
SetPictureSize
(
TSize
)
|
IMPORT_C void
|
SetRightMargin
(
TInt
)
|
IMPORT_C void
|
SetScrollDelay
(
TInt
)
|
IMPORT_C void
|
SetScrollOffsetInLines
(
TInt
)
|
IMPORT_C void
|
SetScrollOffsetInPx
(
TInt
)
|
IMPORT_C void
|
SetSmileySize
(
TSize
)
|
IMPORT_C void
|
SetTextL
(
CFsRichText
*,
CFsSmileyDictionary
*)
|
IMPORT_C void
|
SetWatermarkL
(
CFsTextViewerWatermark
*)
|
IMPORT_C void
|
Show
()
|
IMPORT_C void
|
ShowActionButtonForCurrentHighlightedHotspotL
()
|
IMPORT_C
TBool
|
Smileys
()
|
IMPORT_C void
|
UpdateStatusLayout
()
|
Constructor & Destructor Documentation
CFsTextViewer(CAlfEnv &)
CFsTextViewer
|
(
|
CAlfEnv &
|
aEnv
|
)
|
[private]
|
~CFsTextViewer()
IMPORT_C
|
~CFsTextViewer
|
(
|
)
|
|
Member Functions Documentation
ConstructL(CAlfEnv &)
void
|
ConstructL
|
(
|
CAlfEnv &
|
aEnv
|
)
|
[private]
|
CursorUpDown()
IMPORT_C
TBool
|
CursorUpDown
|
(
|
)
|
|
EnableCursorUpDown(TBool)
IMPORT_C void
|
EnableCursorUpDown
|
(
|
TBool
|
aStatus = ETrue
|
)
|
|
EnableSmileys(TBool)
IMPORT_C void
|
EnableSmileys
|
(
|
TBool
|
aStatus = ETrue
|
)
|
|
FocusLineL(TInt, TBool)
IMPORT_C void
|
FocusLineL
|
(
|
TInt
|
aLine,
|
|
TBool
|
aShowAsFirstLine = EFalse
|
|
)
|
|
GetCurrentHotspotByOrder()
IMPORT_C
TInt
|
GetCurrentHotspotByOrder
|
(
|
)
|
|
GetCurrentHotspotL(TInt &, TInt &)
IMPORT_C void
|
GetCurrentHotspotL
|
(
|
TInt
&
|
aBegin,
|
|
TInt
&
|
aEnd
|
|
)
|
|
GetCurrentHotspotTextL()
IMPORT_C
HBufC
*
|
GetCurrentHotspotTextL
|
(
|
)
|
|
GetFirstCharInLine(TInt)
IMPORT_C
TInt
|
GetFirstCharInLine
|
(
|
TInt
|
aChar
|
)
|
|
GetFirstDisplayedLine()
IMPORT_C
TInt
|
GetFirstDisplayedLine
|
(
|
)
|
|
GetLastDisplayedLine()
IMPORT_C
TInt
|
GetLastDisplayedLine
|
(
|
)
|
|
GetLineNumber(TInt)
IMPORT_C
TInt
|
GetLineNumber
|
(
|
TInt
|
aLineOffset
|
)
|
|
GetMarkedArea(TInt &, TInt &)
IMPORT_C void
|
GetMarkedArea
|
(
|
TInt
&
|
aBegin,
|
|
TInt
&
|
aEnd
|
|
)
|
|
GetTotalLines()
IMPORT_C
TInt
|
GetTotalLines
|
(
|
)
|
|
GetVisibleFocusedHotspotLine(TInt &)
IMPORT_C
TBool
|
GetVisibleFocusedHotspotLine
|
(
|
TInt
&
|
aLineNum
|
)
|
const
|
HideActionButtonFromCurrentHighlightedHotspot()
IMPORT_C void
|
HideActionButtonFromCurrentHighlightedHotspot
|
(
|
)
|
|
ReloadPicturesL(TInt)
IMPORT_C void
|
ReloadPicturesL
|
(
|
TInt
|
aLine = -1
|
)
|
|
ReloadTextL()
IMPORT_C void
|
ReloadTextL
|
(
|
)
|
|
RemoveEndLinesL(TInt)
IMPORT_C void
|
RemoveEndLinesL
|
(
|
TInt
|
aLines
|
)
|
|
RemoveStatusLayout()
IMPORT_C void
|
RemoveStatusLayout
|
(
|
)
|
|
ReplaceTextL(CFsRichText *, CFsSmileyDictionary *)
SetActionButton(CAlfTexture &, TReal32)
IMPORT_C void
|
SetActionButton
|
(
|
CAlfTexture &
|
aTexture,
|
|
TReal32
|
aOpacity
|
|
)
|
|
Parameters
CAlfTexture & aTexture
|
|
TReal32
aOpacity
|
|
SetActionButtonMargin(TReal32)
IMPORT_C void
|
SetActionButtonMargin
|
(
|
TReal32
|
aMargin
|
)
|
|
SetActionButtonSize(TReal32, TReal32)
SetBackgroundColorL(const TRgb &)
IMPORT_C void
|
SetBackgroundColorL
|
(
|
const
TRgb
&
|
aColor
|
)
|
|
SetBackgroundImageL(CAlfTexture &)
IMPORT_C void
|
SetBackgroundImageL
|
(
|
CAlfTexture &
|
aTexture
|
)
|
|
SetBackgroundOpacity(const TAlfTimedValue &)
IMPORT_C void
|
SetBackgroundOpacity
|
(
|
const
TAlfTimedValue
&
|
aOpacity
|
)
|
|
SetCurrentHotspotByCharL(TInt)
IMPORT_C void
|
SetCurrentHotspotByCharL
|
(
|
TInt
|
aIndex
|
)
|
|
SetCurrentHotspotByOrderL(TInt, TBool)
IMPORT_C void
|
SetCurrentHotspotByOrderL
|
(
|
TInt
|
aIndex,
|
|
TBool
|
aFocusLine = EFalse
|
|
)
|
|
SetCursorDelay(TInt)
IMPORT_C void
|
SetCursorDelay
|
(
|
TInt
|
aDelay
|
)
|
|
SetCustomKeys(CFsTextViewerKeys *)
SetLeftMargin(TInt)
IMPORT_C void
|
SetLeftMargin
|
(
|
TInt
|
aMargin
|
)
|
|
SetLiteLineBg(CAlfTexture &, TReal32)
IMPORT_C void
|
SetLiteLineBg
|
(
|
CAlfTexture &
|
aTexture,
|
|
TReal32
|
aOpacity
|
|
)
|
|
Parameters
CAlfTexture & aTexture
|
|
TReal32
aOpacity
|
|
SetMirroring(TBool)
IMPORT_C void
|
SetMirroring
|
(
|
TBool
|
aEnable = ETrue
|
)
|
|
SetObserver(MFsTextViewerObserver *)
IMPORT_C void
|
SetObserver
|
(
|
MFsTextViewerObserver *
|
aObserver
|
)
|
|
Parameters
MFsTextViewerObserver * aObserver
|
|
SetPartBgColorL(TInt, TInt, const TRgb &)
IMPORT_C void
|
SetPartBgColorL
|
(
|
TInt
|
aStartChar,
|
|
TInt
|
aEndChar,
|
|
const
TRgb
&
|
aColor
|
|
)
|
|
SetPartBgImageL(TInt, TInt, CAlfTexture &)
IMPORT_C void
|
SetPartBgImageL
|
(
|
TInt
|
aStartChar,
|
|
TInt
|
aEndChar,
|
|
CAlfTexture &
|
aTexture
|
|
)
|
|
Parameters
TInt
aStartChar
|
|
TInt
aEndChar
|
|
CAlfTexture & aTexture
|
|
SetPictureSize(TSize)
IMPORT_C void
|
SetPictureSize
|
(
|
TSize
|
aSize
|
)
|
|
SetRightMargin(TInt)
IMPORT_C void
|
SetRightMargin
|
(
|
TInt
|
aMargin
|
)
|
|
SetScrollDelay(TInt)
IMPORT_C void
|
SetScrollDelay
|
(
|
TInt
|
aDelay
|
)
|
|
SetScrollOffsetInLines(TInt)
IMPORT_C void
|
SetScrollOffsetInLines
|
(
|
TInt
|
aLineOffset
|
)
|
|
SetScrollOffsetInPx(TInt)
IMPORT_C void
|
SetScrollOffsetInPx
|
(
|
TInt
|
aPxOffset
|
)
|
|
SetSmileySize(TSize)
IMPORT_C void
|
SetSmileySize
|
(
|
TSize
|
aSize
|
)
|
|
SetTextL(CFsRichText *, CFsSmileyDictionary *)
SetWatermarkL(CFsTextViewerWatermark *)
ShowActionButtonForCurrentHighlightedHotspotL()
IMPORT_C void
|
ShowActionButtonForCurrentHighlightedHotspotL
|
(
|
)
|
|
Smileys()
IMPORT_C
TBool
|
Smileys
|
(
|
)
|
|
UpdateStatusLayout()
IMPORT_C void
|
UpdateStatusLayout
|
(
|
)
|
|
Member Data Documentation
TBool
iBackColorSet
TBool
|
iBackColorSet
|
[private]
|
CFsTextViewerControl * iControl
CFsTextViewerVisualizerSettings * iSettings
CAlfTexture * iTexture
CAlfTexture *
|
iTexture
|
[private]
|
CFsTextViewerVisualizer * iVisualizer
CFsTextViewerWatermark * iWatermark
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.