CFsTextViewerControl Class Reference

class CFsTextViewerControl : public CAlfControl

Inherits from

Public Member Functions
~CFsTextViewerControl ()
TBool CursorScroll ()
void EnableCursorScroll ( TBool )
void HandleScrollEventL ( CEikScrollBar *, TEikScrollEvent )
TBool IsScrollEventHandlingOngoing ()
CFsTextViewerKeys * Keys ()
CFsTextViewerControl * NewL (CAlfEnv &)
void ScrollL (const TInt , const TInt )
void ScrollL (const MFsTextViewerObserver::TFsTextViewerEvent, const TInt , const TInt )
void SetKeys ( CFsTextViewerKeys *)
void SetObserver (MFsTextViewerObserver *)
void SetVisualizer ( CFsTextViewerVisualizer *)
Protected Member Functions
void NotifyControlVisibility ( TBool , CAlfDisplay &)
Private Member Functions
CFsTextViewerControl ()
void ConstructL (CAlfEnv &)
TBool HandleKeyEventL (const TAlfEvent &)
TBool HandlePointerEventL (const TAlfEvent &)
TBool OfferEventL (const TAlfEvent &)
void PhysicEmulationEnded ()
void UpdatePhysicsL ()
TPoint ViewPosition ()
void ViewPositionChanged (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 &)

void ConstructL ( CAlfEnv & aEnv ) [private]

Second-phase constructor.

Parameters

CAlfEnv & aEnv

CursorScroll()

TBool CursorScroll ( )

EnableCursorScroll(TBool)

void EnableCursorScroll ( TBool aStatus = 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)

void HandleScrollEventL ( CEikScrollBar * aScrollBar,
TEikScrollEvent aEventType
)

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 * aScrollBar A pointer to scrollbar which created the event
TEikScrollEvent aEventType The 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 &)

void NotifyControlVisibility ( TBool aIsVisible,
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 & aEvent Event to be handled.

PhysicEmulationEnded()

void PhysicEmulationEnded ( ) [private, virtual]

ScrollL(const TInt, const TInt)

void ScrollL ( const TInt aOffset,
const TInt aTime = CFsTextViewerVisualizer::EUseDefaultScrollTime
)

Parameters

const TInt aOffset
const TInt aTime = CFsTextViewerVisualizer::EUseDefaultScrollTime

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

void ScrollL ( const MFsTextViewerObserver::TFsTextViewerEvent aEventDirection,
const TInt aOffset = CFsTextViewerVisualizer::EUseDefaultScrollOffset,
const TInt aTime = CFsTextViewerVisualizer::EUseDefaultScrollTime
)

Parameters

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

SetKeys(CFsTextViewerKeys *)

void SetKeys ( CFsTextViewerKeys * aKeys )

Parameters

CFsTextViewerKeys * aKeys

SetObserver(MFsTextViewerObserver *)

void SetObserver ( MFsTextViewerObserver * aObserver )

Parameters

MFsTextViewerObserver * aObserver

SetVisualizer(CFsTextViewerVisualizer *)

void SetVisualizer ( CFsTextViewerVisualizer * aVis )

Parameters

CFsTextViewerVisualizer * aVis

UpdatePhysicsL()

void UpdatePhysicsL ( ) [private]

ViewPosition()

TPoint ViewPosition ( ) const [private, virtual]

ViewPositionChanged(const TPoint &, TBool, TUint)

void ViewPositionChanged ( const TPoint & aNewPosition,
TBool aDrawNow,
TUint aFlags
) [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]