MTmTextLayoutForwarder Class Reference
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.
Public Member Functions |
---|
IMPORT_C TBool | DocPosToLine(const TTmDocPosSpec &, TTmLineInfo &) |
IMPORT_C TBool | DocPosToLine(const TTmDocPos &, TTmLineInfo &) |
IMPORT_C void | DrawBackground(CGraphicsContext &, const TPoint &, const TRect &, const TLogicalRgb &) |
IMPORT_C void | DrawLayout(CGraphicsContext &, const TPoint &, const TRect &, const TLogicalRgb *, TBool) |
IMPORT_C TInt | EndChar() |
IMPORT_C TBool | FindDocPos(const TTmDocPosSpec &, TTmPosInfo2 &, TTmLineInfo &) |
IMPORT_C TBool | FindDocPos(const TTmDocPos &, TTmPosInfo &, TTmLineInfo &) |
IMPORT_C TBool | FindXyPos(const TPoint &, TTmPosInfo2 &, TTmLineInfo &) |
IMPORT_C TBool | FindXyPos(const TPoint &, TTmPosInfo &, TTmLineInfo &) |
IMPORT_C TBool | FindXyPosWithDisambiguation(const TPoint &, TTmPosInfo2 &, TTmPosInfo2 &, TTmLineInfo &) |
IMPORT_C TBool | GetCursor(const TTmDocPosSpec &, TTmCursorPlacement, TTmLineInfo &, TPoint &, TInt &, TInt &, TInt &) |
IMPORT_C TBool | GetCursor(const TTmDocPos &, TTmCursorPlacement, TTmLineInfo &, TPoint &, TInt &, TInt &, TInt &) |
IMPORT_C TBool | GetDisplayedText(TInt, TDes &, TInt &) |
IMPORT_C void | GetMinimumLayoutSizeL(TInt, TSize &) |
IMPORT_C void | GetMinimumLayoutSizeL(TInt, TBool, TSize &) |
IMPORT_C TBool | GetNextPosLeftWithDisambiguation(const TTmDocPosSpec &, TTmPosInfo2 &, TTmPosInfo2 &) |
IMPORT_C TBool | GetNextPosRightWithDisambiguation(const TTmDocPosSpec &, TTmPosInfo2 &, TTmPosInfo2 &) |
IMPORT_C TBool | GetNextVisualCursorPos(const TTmDocPosSpec &, TTmPosInfo2 &, TBool) |
IMPORT_C TBool | GetNextVisualCursorPos(const TTmDocPos &, TTmPosInfo &, TBool) |
IMPORT_C void | HorizontalExtremes(TInt &, TInt &, TInt, TInt) |
IMPORT_C void | InvertLayout(CGraphicsContext &, const TPoint &, TInt, TInt) |
IMPORT_C TInt | LayoutHeight() |
IMPORT_C TInt | LayoutWidth() |
IMPORT_C TBool | LineNumberToLine(TInt, TTmLineInfo &) |
IMPORT_C TInt | Lines() |
IMPORT_C TBool | ParNumberToLine(TInt, TInt, TTmLineInfo &) |
IMPORT_C TInt | Paragraphs() |
IMPORT_C TInt | StartChar() |
IMPORT_C TInt | WidthOfWidestLine(TInt, TInt) |
IMPORT_C TBool | YPosToLine(TInt, TTmLineInfo &) |
Member Functions Documentation
DocPosToLine(const TTmDocPosSpec &, TTmLineInfo &)
DocPosToLine(const TTmDocPos &, TTmLineInfo &)
DrawBackground(CGraphicsContext &, const TPoint &, const TRect &, const TLogicalRgb &)
DrawLayout(CGraphicsContext &, const TPoint &, const TRect &, const TLogicalRgb *, TBool)
EndChar()
IMPORT_C TInt | EndChar | ( | ) | const |
FindDocPos(const TTmDocPosSpec &, TTmPosInfo2 &, TTmLineInfo &)
FindDocPos(const TTmDocPos &, TTmPosInfo &, TTmLineInfo &)
FindXyPos(const TPoint &, TTmPosInfo2 &, TTmLineInfo &)
FindXyPos(const TPoint &, TTmPosInfo &, TTmLineInfo &)
FindXyPosWithDisambiguation(const TPoint &, TTmPosInfo2 &, TTmPosInfo2 &, TTmLineInfo &)
FixUpLineInfo(TTmLineInfo &, const TPoint *)
GetCursor(const TTmDocPosSpec &, TTmCursorPlacement, TTmLineInfo &, TPoint &, TInt &, TInt &, TInt &)
GetCursor(const TTmDocPos &, TTmCursorPlacement, TTmLineInfo &, TPoint &, TInt &, TInt &, TInt &)
GetDisplayedText(TInt, TDes &, TInt &)
GetMinimumLayoutSizeL(TInt, TSize &)
IMPORT_C void | GetMinimumLayoutSizeL | ( | TInt | aWrapWidth, |
| TSize & | aSize |
| ) | const |
GetMinimumLayoutSizeL(TInt, TBool, TSize &)
IMPORT_C void | GetMinimumLayoutSizeL | ( | TInt | aWrapWidth, |
| TBool | aAllowLegalLineBreaksOnly, |
| TSize & | aSize |
| ) | const |
GetNextPosLeftWithDisambiguation(const TTmDocPosSpec &, TTmPosInfo2 &, TTmPosInfo2 &)
GetNextPosRightWithDisambiguation(const TTmDocPosSpec &, TTmPosInfo2 &, TTmPosInfo2 &)
GetNextVisualCursorPos(const TTmDocPosSpec &, TTmPosInfo2 &, TBool)
GetNextVisualCursorPos(const TTmDocPos &, TTmPosInfo &, TBool)
GetOrigin(TPoint &)
IMPORT_C void | GetOrigin | ( | TPoint & | aPoint | ) | const [private, virtual] |
The origin is subtracted from coordinates passed in and added to those passed out.
HorizontalExtremes(TInt &, TInt &, TInt, TInt)
InvertLayout(CGraphicsContext &, const TPoint &, TInt, TInt)
LayoutHeight()
IMPORT_C TInt | LayoutHeight | ( | ) | const |
LayoutWidth()
IMPORT_C TInt | LayoutWidth | ( | ) | const |
LineNumberToLine(TInt, TTmLineInfo &)
Lines()
IMPORT_C TInt | Lines | ( | ) | const |
ParNumberToLine(TInt, TInt, TTmLineInfo &)
Paragraphs()
IMPORT_C TInt | Paragraphs | ( | ) | const |
StartChar()
IMPORT_C TInt | StartChar | ( | ) | const |
WidthOfWidestLine(TInt, TInt)
YPosToLine(TInt, TTmLineInfo &)
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.