CTextView::TTagmaForwarder Class Reference

class CTextView::TTagmaForwarder : public MTmTextLayoutForwarder

A standard inquiry interface for the text formatting engine, built on top of a CTextView object.

To use it, construct a TTagmaForwarder object, then call InitL() , which finishes background formatting, then call the MTmTextLayoutForwarder functions.

The class should only be used internally by FORM component.

Inherits from

Public Member Functions
TTagmaForwarder ()
void InitL ( CTextView *)
Private Member Functions
void GetOrigin ( TPoint &)
const CTmTextLayout & TextLayout ()
Inherited Functions
MTmTextLayoutForwarder::DocPosToLine(const TTmDocPos &,TTmLineInfo &)const
MTmTextLayoutForwarder::DocPosToLine(const TTmDocPosSpec &,TTmLineInfo &)const
MTmTextLayoutForwarder::DrawBackground(CGraphicsContext &,const TPoint &,const TRect &,const TLogicalRgb &)const
MTmTextLayoutForwarder::DrawLayout(CGraphicsContext &,const TPoint &,const TRect &,const TLogicalRgb *,TBool)const
MTmTextLayoutForwarder::EndChar()const
MTmTextLayoutForwarder::FindDocPos(const TTmDocPos &,TTmPosInfo &,TTmLineInfo &)const
MTmTextLayoutForwarder::FindDocPos(const TTmDocPosSpec &,TTmPosInfo2 &,TTmLineInfo &)const
MTmTextLayoutForwarder::FindXyPos(const TPoint &,TTmPosInfo &,TTmLineInfo &)const
MTmTextLayoutForwarder::FindXyPos(const TPoint &,TTmPosInfo2 &,TTmLineInfo &)const
MTmTextLayoutForwarder::FindXyPosWithDisambiguation(const TPoint &,TTmPosInfo2 &,TTmPosInfo2 &,TTmLineInfo &)const
MTmTextLayoutForwarder::GetCursor(const TTmDocPos &,TTmCursorPlacement,TTmLineInfo &,TPoint &,TInt &,TInt &,TInt &)const
MTmTextLayoutForwarder::GetCursor(const TTmDocPosSpec &,TTmCursorPlacement,TTmLineInfo &,TPoint &,TInt &,TInt &,TInt &)const
MTmTextLayoutForwarder::GetDisplayedText(TInt,TDes &,TInt &)const
MTmTextLayoutForwarder::GetMinimumLayoutSizeL(TInt,TBool,TSize &)const
MTmTextLayoutForwarder::GetMinimumLayoutSizeL(TInt,TSize &)const
MTmTextLayoutForwarder::GetNextPosLeftWithDisambiguation(const TTmDocPosSpec &,TTmPosInfo2 &,TTmPosInfo2 &)const
MTmTextLayoutForwarder::GetNextPosRightWithDisambiguation(const TTmDocPosSpec &,TTmPosInfo2 &,TTmPosInfo2 &)const
MTmTextLayoutForwarder::GetNextVisualCursorPos(const TTmDocPos &,TTmPosInfo &,TBool)const
MTmTextLayoutForwarder::GetNextVisualCursorPos(const TTmDocPosSpec &,TTmPosInfo2 &,TBool)const
MTmTextLayoutForwarder::HorizontalExtremes(TInt &,TInt &,TInt,TInt)const
MTmTextLayoutForwarder::InvertLayout(CGraphicsContext &,const TPoint &,TInt,TInt)
MTmTextLayoutForwarder::LayoutHeight()const
MTmTextLayoutForwarder::LayoutWidth()const
MTmTextLayoutForwarder::LineNumberToLine(TInt,TTmLineInfo &)const
MTmTextLayoutForwarder::Lines()const
MTmTextLayoutForwarder::ParNumberToLine(TInt,TInt,TTmLineInfo &)const
MTmTextLayoutForwarder::Paragraphs()const
MTmTextLayoutForwarder::StartChar()const
MTmTextLayoutForwarder::WidthOfWidestLine(TInt,TInt)const
MTmTextLayoutForwarder::YPosToLine(TInt,TTmLineInfo &)const
Private Attributes
CTextView * iView

Constructor & Destructor Documentation

TTagmaForwarder()

TTagmaForwarder ( ) [inline]

This constructor deliberately does not take a pointer or reference to CTextView , to prevent the class from being used unless InitL() is called.

Member Functions Documentation

GetOrigin(TPoint &)

void GetOrigin ( TPoint & aPoint ) const [private, inline, virtual]

The origin is subtracted from coordinates passed in and added to those passed out.

Parameters

TPoint & aPoint

InitL(CTextView *)

void InitL ( CTextView * aView ) [inline]

Called after construction, to complete background reformatting.

Parameters

CTextView * aView A pointer to the text view object.

TextLayout()

const CTmTextLayout & TextLayout ( ) const [private, inline, virtual]

Returns a reference to the CTmTextLayoutObject this MTmTextLayoutForwarder forwards inquiries to.

Member Data Documentation

CTextView * iView

CTextView * iView [private]