CFsTextViewerControl Class Reference

class CFsTextViewerControl : public CAlfControl

Inherits from

Public Member Functions
~CFsTextViewerControl()
TBool CursorScroll()
voidEnableCursorScroll(TBool)
voidHandleScrollEventL(CEikScrollBar *, TEikScrollEvent)
TBool IsScrollEventHandlingOngoing()
CFsTextViewerKeys *Keys()
CFsTextViewerControl *NewL(CAlfEnv &)
voidScrollL(const TInt, const TInt)
voidScrollL(const MFsTextViewerObserver::TFsTextViewerEvent, const TInt, const TInt)
voidSetKeys(CFsTextViewerKeys *)
voidSetObserver(MFsTextViewerObserver *)
voidSetVisualizer(CFsTextViewerVisualizer *)
Protected Member Functions
voidNotifyControlVisibility(TBool, CAlfDisplay &)
Private Member Functions
CFsTextViewerControl()
voidConstructL(CAlfEnv &)
TBool HandleKeyEventL(const TAlfEvent &)
TBool HandlePointerEventL(const TAlfEvent &)
TBool OfferEventL(const TAlfEvent &)
voidPhysicEmulationEnded()
voidUpdatePhysicsL()
TPoint ViewPosition()
voidViewPositionChanged(const TPoint &, TBool, TUint)
Inherited Functions
CAlfControl::AcceptInput()const
CAlfControl::AcquireFocus()
CAlfControl::AddConnectionL(CAlfControl *,TInt)
CAlfControl::Append(CAlfVisual *,CAlfLayout *)
CAlfControl::AppendLayoutL(TAlfLayoutType,CAlfLayout *,TInt)
CAlfControl::AppendVisualL(TAlfVisualType,CAlfLayout *,TInt)
CAlfControl::BindDisplay(CAlfDisplay &)
CAlfControl::Bounds()const
CAlfControl::CAlfControl()
CAlfControl::CancelAllCommands()
CAlfControl::ClearChanged()
CAlfControl::Connection(TInt)const
CAlfControl::ConnectionAddedL(CAlfControl *,TInt)
CAlfControl::ConnectionByOrdinal(TInt)const
CAlfControl::ConnectionCount()const
CAlfControl::ConnectionOrdinal(TInt)const
CAlfControl::ConnectionRemoved(CAlfControl *,TInt)
CAlfControl::ConnectionRole(TInt)const
CAlfControl::ContainerLayout(const CAlfControl *)const
CAlfControl::ControlGroup()const
CAlfControl::Display()const
CAlfControl::DisplayArea()const
CAlfControl::DisplayCenter()const
CAlfControl::DisplayToHost(const TPoint &)const
CAlfControl::Env()const
CAlfControl::FindConnection(const CAlfControl *)const
CAlfControl::FindTag(const TDesC8 &)const
CAlfControl::Focus()const
CAlfControl::FocusChainChanged(TBool)
CAlfControl::FocusChanged(CAlfDisplay &,TBool)
CAlfControl::FocusedConnection()const
CAlfControl::Hide(CAlfDisplay &)
CAlfControl::HitTest(const TPoint &)const
CAlfControl::Host()const
CAlfControl::HostChangingL(CAlfControl *)
CAlfControl::HostId()const
CAlfControl::HostToDisplay(const TPoint &)const
CAlfControl::Id()const
CAlfControl::Identifier()const
CAlfControl::IsFocusing()const
CAlfControl::PropertyOwnerExtension(const TUid &,TAny **)
CAlfControl::RelinquishFocus()
CAlfControl::Remove(CAlfVisual *)
CAlfControl::RemoveConnection(CAlfControl *)
CAlfControl::RemoveVisualsFromHostControl(CAlfControl &)
CAlfControl::Role()const
CAlfControl::SetControlGroup(CAlfControlGroup &)
CAlfControl::SetFocus(CAlfDisplay &,TBool)
CAlfControl::SetFocusing(TBool)
CAlfControl::SetHost(CAlfControl *)
CAlfControl::SetHostId(TInt)
CAlfControl::SetId(TInt)
CAlfControl::SetRole(TInt)
CAlfControl::ShowL(CAlfDisplay &)
CAlfControl::Visual(TInt)const
CAlfControl::VisualAddedL(CAlfVisual *)
CAlfControl::VisualCount()const
CAlfControl::VisualDestroyed(CAlfVisual &)
CAlfControl::VisualLayoutUpdated(CAlfVisual &)
CAlfControl::VisualPrepareDrawFailed(CAlfVisual &,TInt)
CAlfControl::VisualRemoved(CAlfVisual *)
CAlfControl::~CAlfControl()
CAlfPropertyOwner::CAlfPropertyOwner()
CAlfPropertyOwner::CopyProperty(const CAlfPropertyOwner &,const TDesC8 &)
CAlfPropertyOwner::PropertyClear()
CAlfPropertyOwner::PropertyFindInteger(const TDesC8 &,TInt *)const
CAlfPropertyOwner::PropertyFindString(const TDesC8 &,TDesC **)const
CAlfPropertyOwner::PropertyRemove(const TDesC8 &)
CAlfPropertyOwner::PropertySetIntegerL(const TDesC8 &,TInt,TInt,TInt)
CAlfPropertyOwner::PropertySetStringL(const TDesC8 &,const TDesC &)
CAlfPropertyOwner::~CAlfPropertyOwner()
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
TBool iCursorUDScroll
TBool iIsDragging
TBool iIsFlicking
TBool iIsVisible
CFsTextViewerKeys *iKeys
MFsTextViewerObserver *iObserver
TPoint iOriginalPosition
CAknPhysics *iPhysics
TPoint iPreviousPosition
TBool iScrollEventHandlingOngoing
TBool iStartHotspotAction
TTime iStartTime
CFsTextViewerVisualizer *iVisualizer

Constructor & Destructor Documentation

CFsTextViewerControl()

CFsTextViewerControl()[private]

~CFsTextViewerControl()

~CFsTextViewerControl()

Member Functions Documentation

ConstructL(CAlfEnv &)

voidConstructL(CAlfEnv &aEnv)[private]

Second-phase constructor.

Parameters

CAlfEnv & aEnv

CursorScroll()

TBool CursorScroll()

EnableCursorScroll(TBool)

voidEnableCursorScroll(TBoolaStatus = ETrue)

Parameters

TBool aStatus = ETrue

HandleKeyEventL(const TAlfEvent &)

TBool HandleKeyEventL(const TAlfEvent &aEvent)[private]

Parameters

const TAlfEvent & aEvent

HandlePointerEventL(const TAlfEvent &)

TBool HandlePointerEventL(const TAlfEvent &aEvent)[private]

Parameters

const TAlfEvent & aEvent

HandleScrollEventL(CEikScrollBar *, TEikScrollEvent)

voidHandleScrollEventL(CEikScrollBar *aScrollBar,
TEikScrollEventaEventType
)

From MEikScrollBarObserver

Callback method for scroll bar events

Scroll bar observer should implement this method to get scroll bar events.

Since
S60 0.9

Parameters

CEikScrollBar * aScrollBarA pointer to scrollbar which created the event
TEikScrollEvent aEventTypeThe event occured on the scroll bar

IsScrollEventHandlingOngoing()

TBool IsScrollEventHandlingOngoing()

Keys()

CFsTextViewerKeys *Keys()

NewL(CAlfEnv &)

CFsTextViewerControl *NewL(CAlfEnv &aEnv)[static]

Parameters

CAlfEnv & aEnv

NotifyControlVisibility(TBool, CAlfDisplay &)

voidNotifyControlVisibility(TBoolaIsVisible,
CAlfDisplay &aDisplay
)[protected, virtual]

Parameters

TBool aIsVisible
CAlfDisplay & aDisplay

OfferEventL(const TAlfEvent &)

TBool OfferEventL(const TAlfEvent &aEvent)[private, virtual]

Called when an input event is being offered to the control.

Parameters

const TAlfEvent & aEventEvent to be handled.

PhysicEmulationEnded()

voidPhysicEmulationEnded()[private, virtual]

ScrollL(const TInt, const TInt)

voidScrollL(const TIntaOffset,
const TIntaTime = CFsTextViewerVisualizer::EUseDefaultScrollTime
)

Parameters

const TInt aOffset
const TInt aTime = CFsTextViewerVisualizer::EUseDefaultScrollTime

ScrollL(const MFsTextViewerObserver::TFsTextViewerEvent, const TInt, const TInt)

voidScrollL(const MFsTextViewerObserver::TFsTextViewerEventaEventDirection,
const TIntaOffset = CFsTextViewerVisualizer::EUseDefaultScrollOffset,
const TIntaTime = CFsTextViewerVisualizer::EUseDefaultScrollTime
)

Parameters

const MFsTextViewerObserver::TFsTextViewerEvent aEventDirection
const TInt aOffset = CFsTextViewerVisualizer::EUseDefaultScrollOffset
const TInt aTime = CFsTextViewerVisualizer::EUseDefaultScrollTime

SetKeys(CFsTextViewerKeys *)

voidSetKeys(CFsTextViewerKeys *aKeys)

Parameters

CFsTextViewerKeys * aKeys

SetObserver(MFsTextViewerObserver *)

voidSetObserver(MFsTextViewerObserver *aObserver)

Parameters

MFsTextViewerObserver * aObserver

SetVisualizer(CFsTextViewerVisualizer *)

voidSetVisualizer(CFsTextViewerVisualizer *aVis)

Parameters

CFsTextViewerVisualizer * aVis

UpdatePhysicsL()

voidUpdatePhysicsL()[private]

ViewPosition()

TPoint ViewPosition()const [private, virtual]

ViewPositionChanged(const TPoint &, TBool, TUint)

voidViewPositionChanged(const TPoint &aNewPosition,
TBoolaDrawNow,
TUintaFlags
)[private, virtual]

Parameters

const TPoint & aNewPosition
TBool aDrawNow
TUint aFlags

Member Data Documentation

TBool iCursorUDScroll

TBool iCursorUDScroll[private]

TBool iIsDragging

TBool iIsDragging[private]

TBool iIsFlicking

TBool iIsFlicking[private]

TBool iIsVisible

TBool iIsVisible[private]

CFsTextViewerKeys * iKeys

CFsTextViewerKeys *iKeys[private]

MFsTextViewerObserver * iObserver

MFsTextViewerObserver *iObserver[private]

TPoint iOriginalPosition

TPoint iOriginalPosition[private]

CAknPhysics * iPhysics

CAknPhysics *iPhysics[private]

TPoint iPreviousPosition

TPoint iPreviousPosition[private]

TBool iScrollEventHandlingOngoing

TBool iScrollEventHandlingOngoing[private]

TBool iStartHotspotAction

TBool iStartHotspotAction[private]

TTime iStartTime

TTime iStartTime[private]

CFsTextViewerVisualizer * iVisualizer

CFsTextViewerVisualizer *iVisualizer[private]