class MTmTextLayoutForwarder |
A mixin class to make it easy for higher-level classes that own a CTmTextLayout object to have enquiry functions without it being necessary to implement them all as forwarding functions. The owner class just implements TextLayout and overrides GetOrigin if necessary.
Non-const CTmTextLayout functions like Clear are not included because allowing them to be called on owner classes would probably put the owner class into an inconsistent state.
The word Layout is prefixed, suffixed or infixed to functions with names that would usually conflict with owner class names. For example, we have DrawLayout, not Draw, and GetMinimumLayoutSizeL, not GetMinimumSizeL.
The class should only be used internally by FORM component.
Private Member Functions | |
---|---|
void | FixUpLineInfo ( TTmLineInfo &, const TPoint *) |
IMPORT_C void | GetOrigin ( TPoint &) |
const CTmTextLayout & | TextLayout () |
IMPORT_C TBool | DocPosToLine | ( | const TTmDocPosSpec & | aDocPos, |
TTmLineInfo & | aLineInfo | |||
) | const |
const TTmDocPosSpec & aDocPos | |
TTmLineInfo & aLineInfo |
IMPORT_C TBool | DocPosToLine | ( | const TTmDocPos & | aDocPos, |
TTmLineInfo & | aLineInfo | |||
) | const |
const TTmDocPos & aDocPos | |
TTmLineInfo & aLineInfo |
IMPORT_C void | DrawBackground | ( | CGraphicsContext & | aGc, |
const TPoint & | aTopLeft, | |||
const TRect & | aClipRect, | |||
const TLogicalRgb & | aBackground | |||
) | const |
CGraphicsContext & aGc | |
const TPoint & aTopLeft | |
const TRect & aClipRect | |
const TLogicalRgb & aBackground |
IMPORT_C void | DrawLayout | ( | CGraphicsContext & | aGc, |
const TPoint & | aTopLeft, | |||
const TRect & | aClipRect, | |||
const TLogicalRgb * | aDocBackground, | |||
TBool | aDrawParBackground | |||
) | const |
CGraphicsContext & aGc | |
const TPoint & aTopLeft | |
const TRect & aClipRect | |
const TLogicalRgb * aDocBackground | |
TBool aDrawParBackground |
IMPORT_C TBool | FindDocPos | ( | const TTmDocPosSpec & | aDocPos, |
TTmPosInfo2 & | aPosInfo, | |||
TTmLineInfo & | aLineInfo | |||
) | const |
const TTmDocPosSpec & aDocPos | |
TTmPosInfo2 & aPosInfo | |
TTmLineInfo & aLineInfo |
IMPORT_C TBool | FindDocPos | ( | const TTmDocPos & | aDocPos, |
TTmPosInfo & | aPosInfo, | |||
TTmLineInfo & | aLineInfo | |||
) | const |
const TTmDocPos & aDocPos | |
TTmPosInfo & aPosInfo | |
TTmLineInfo & aLineInfo |
IMPORT_C TBool | FindXyPos | ( | const TPoint & | aXyPos, |
TTmPosInfo2 & | aPosInfo, | |||
TTmLineInfo & | aLineInfo | |||
) | const |
const TPoint & aXyPos | |
TTmPosInfo2 & aPosInfo | |
TTmLineInfo & aLineInfo |
IMPORT_C TBool | FindXyPos | ( | const TPoint & | aXyPos, |
TTmPosInfo & | aPosInfo, | |||
TTmLineInfo & | aLineInfo | |||
) | const |
const TPoint & aXyPos | |
TTmPosInfo & aPosInfo | |
TTmLineInfo & aLineInfo |
IMPORT_C TBool | FindXyPosWithDisambiguation | ( | const TPoint & | aXyPos, |
TTmPosInfo2 & | aPosLeft, | |||
TTmPosInfo2 & | aPosRight, | |||
TTmLineInfo & | aLineInfo | |||
) | const |
const TPoint & aXyPos | |
TTmPosInfo2 & aPosLeft | |
TTmPosInfo2 & aPosRight | |
TTmLineInfo & aLineInfo |
void | FixUpLineInfo | ( | TTmLineInfo & | aInfo, |
const TPoint * | aOrigin = NULL | |||
) | const [private] |
TTmLineInfo & aInfo | |
const TPoint * aOrigin = NULL |
IMPORT_C TBool | GetCursor | ( | const TTmDocPosSpec & | aDocPos, |
TTmCursorPlacement | aPlacement, | |||
TTmLineInfo & | aLineInfo, | |||
TPoint & | aOrigin, | |||
TInt & | aWidth, | |||
TInt & | aAscent, | |||
TInt & | aDescent | |||
) | const |
const TTmDocPosSpec & aDocPos | |
TTmCursorPlacement aPlacement | |
TTmLineInfo & aLineInfo | |
TPoint & aOrigin | |
TInt & aWidth | |
TInt & aAscent | |
TInt & aDescent |
IMPORT_C TBool | GetCursor | ( | const TTmDocPos & | aDocPos, |
TTmCursorPlacement | aPlacement, | |||
TTmLineInfo & | aLineInfo, | |||
TPoint & | aOrigin, | |||
TInt & | aWidth, | |||
TInt & | aAscent, | |||
TInt & | aDescent | |||
) | const |
IMPORT_C TBool | GetDisplayedText | ( | TInt | aLineNumber, |
TDes & | aText, | |||
TInt & | aNeeded | |||
) | const |
IMPORT_C void | GetMinimumLayoutSizeL | ( | TInt | aWrapWidth, |
TSize & | aSize | |||
) | const |
IMPORT_C void | GetMinimumLayoutSizeL | ( | TInt | aWrapWidth, |
TBool | aAllowLegalLineBreaksOnly, | |||
TSize & | aSize | |||
) | const |
IMPORT_C TBool | GetNextPosLeftWithDisambiguation | ( | const TTmDocPosSpec & | aDocPos, |
TTmPosInfo2 & | aPosLeft, | |||
TTmPosInfo2 & | aPosRight | |||
) | const |
const TTmDocPosSpec & aDocPos | |
TTmPosInfo2 & aPosLeft | |
TTmPosInfo2 & aPosRight |
IMPORT_C TBool | GetNextPosRightWithDisambiguation | ( | const TTmDocPosSpec & | aDocPos, |
TTmPosInfo2 & | aPosLeft, | |||
TTmPosInfo2 & | aPosRight | |||
) | const |
const TTmDocPosSpec & aDocPos | |
TTmPosInfo2 & aPosLeft | |
TTmPosInfo2 & aPosRight |
IMPORT_C TBool | GetNextVisualCursorPos | ( | const TTmDocPosSpec & | aDocPos, |
TTmPosInfo2 & | aInfo, | |||
TBool | aToLeft | |||
) | const |
const TTmDocPosSpec & aDocPos | |
TTmPosInfo2 & aInfo | |
TBool aToLeft |
IMPORT_C TBool | GetNextVisualCursorPos | ( | const TTmDocPos & | aDocPos, |
TTmPosInfo & | aInfo, | |||
TBool | aToLeft | |||
) | const |
const TTmDocPos & aDocPos | |
TTmPosInfo & aInfo | |
TBool aToLeft |
IMPORT_C void | GetOrigin | ( | TPoint & | aPoint | ) | const [private, virtual] |
The origin is subtracted from coordinates passed in and added to those passed out.
TPoint & aPoint |
IMPORT_C void | HorizontalExtremes | ( | TInt & | aLeft, |
TInt & | aRight, | |||
TInt | aTopY = 0, | |||
TInt | aBottomY = KMaxTInt | |||
) | const |
IMPORT_C void | InvertLayout | ( | CGraphicsContext & | aGc, |
const TPoint & | aTopLeft, | |||
TInt | aStartDocPos, | |||
TInt | aEndDocPos | |||
) |
CGraphicsContext & aGc | |
const TPoint & aTopLeft | |
TInt aStartDocPos | |
TInt aEndDocPos |
IMPORT_C TBool | LineNumberToLine | ( | TInt | aLineNumber, |
TTmLineInfo & | aLineInfo | |||
) | const |
TInt aLineNumber | |
TTmLineInfo & aLineInfo |
IMPORT_C TBool | ParNumberToLine | ( | TInt | aParNumber, |
TInt | aLineInPar, | |||
TTmLineInfo & | aLineInfo | |||
) | const |
const CTmTextLayout & | TextLayout | ( | ) | const [private, pure virtual] |
Returns a reference to the CTmTextLayoutObject this MTmTextLayoutForwarder forwards inquiries to.
IMPORT_C TInt | WidthOfWidestLine | ( | TInt | aTop = 0, |
TInt | aBottom = KMaxTInt | |||
) | const |
IMPORT_C TBool | YPosToLine | ( | TInt | aYPos, |
TTmLineInfo & | aLineInfo | |||
) | const |
TInt aYPos | |
TTmLineInfo & aLineInfo |
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.