#include <tagma.h>
Link against: tagma.lib
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.
IMPORT_C TBool | DocPosToLine | ( | const TTmDocPosSpec & | aDocPos, |
TTmLineInfo & | aLineInfo | |||
) | const |
IMPORT_C void | DrawBackground | ( | CGraphicsContext & | aGc, |
const TPoint & | aTopLeft, | |||
const TRect & | aClipRect, | |||
const TLogicalRgb & | aBackground | |||
) | const |
IMPORT_C void | DrawLayout | ( | CGraphicsContext & | aGc, |
const TPoint & | aTopLeft, | |||
const TRect & | aClipRect, | |||
const TLogicalRgb * | aDocBackground, | |||
TBool | aDrawParBackground | |||
) | const |
IMPORT_C TBool | FindDocPos | ( | const TTmDocPosSpec & | aDocPos, |
TTmPosInfo2 & | aPosInfo, | |||
TTmLineInfo & | aLineInfo | |||
) | const |
IMPORT_C TBool | FindDocPos | ( | const TTmDocPos & | aDocPos, |
TTmPosInfo & | aPosInfo, | |||
TTmLineInfo & | aLineInfo | |||
) | const |
Deprecated7.0s
IMPORT_C TBool | FindXyPos | ( | const TPoint & | aXyPos, |
TTmPosInfo2 & | aPosInfo, | |||
TTmLineInfo & | aLineInfo | |||
) | const |
IMPORT_C TBool | FindXyPos | ( | const TPoint & | aXyPos, |
TTmPosInfo & | aPosInfo, | |||
TTmLineInfo & | aLineInfo | |||
) | const |
Deprecated7.0s
IMPORT_C TBool | FindXyPosWithDisambiguation | ( | const TPoint & | aXyPos, |
TTmPosInfo2 & | aPosLeft, | |||
TTmPosInfo2 & | aPosRight, | |||
TTmLineInfo & | aLineInfo | |||
) | const |
IMPORT_C TBool | GetCursor | ( | const TTmDocPosSpec & | aDocPos, |
TTmCursorPlacement | aPlacement, | |||
TTmLineInfo & | aLineInfo, | |||
TPoint & | aOrigin, | |||
TInt & | aWidth, | |||
TInt & | aAscent, | |||
TInt & | aDescent | |||
) | const |
IMPORT_C TBool | GetCursor | ( | const TTmDocPos & | aDocPos, |
TTmCursorPlacement | aPlacement, | |||
TTmLineInfo & | aLineInfo, | |||
TPoint & | aOrigin, | |||
TInt & | aWidth, | |||
TInt & | aAscent, | |||
TInt & | aDescent | |||
) | const |
Deprecated7.0s
Return the displayed form of the text for a particular line. See CTmLayout::GetDisplayedText for details.
Get the minimum size of the formatted text. See CTmTextLayout::GetMinimumLayoutSizeL for details.
IMPORT_C void | GetMinimumLayoutSizeL | ( | TInt | aWrapWidth, |
TBool | aAllowLegalLineBreaksOnly, | |||
TSize & | aSize | |||
) | const |
Get the minimum size of the formatted text. See CTmTextLayout::GetMinimumLayoutSizeL for details.
IMPORT_C TBool | GetNextPosLeftWithDisambiguation | ( | const TTmDocPosSpec & | aDocPos, |
TTmPosInfo2 & | aPosLeft, | |||
TTmPosInfo2 & | aPosRight | |||
) | const |
IMPORT_C TBool | GetNextPosRightWithDisambiguation | ( | const TTmDocPosSpec & | aDocPos, |
TTmPosInfo2 & | aPosLeft, | |||
TTmPosInfo2 & | aPosRight | |||
) | const |
IMPORT_C TBool | GetNextVisualCursorPos | ( | const TTmDocPosSpec & | aDocPos, |
TTmPosInfo2 & | aInfo, | |||
TBool | aToLeft | |||
) | const |
IMPORT_C TBool | GetNextVisualCursorPos | ( | const TTmDocPos & | aDocPos, |
TTmPosInfo & | aInfo, | |||
TBool | aToLeft | |||
) | const |
deprecated 7.0s
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 | |||
) |
IMPORT_C TInt | LayoutHeight | ( | ) | const |
Return the height in pixels of the formatted text.
IMPORT_C TInt | LayoutWidth | ( | ) | const |
Return the width in pixels of the formatted text, not including paragraph labels if present.
IMPORT_C TBool | LineNumberToLine | ( | TInt | aLineNumber, |
TTmLineInfo & | aLineInfo | |||
) | const |
IMPORT_C TBool | ParNumberToLine | ( | TInt | aParNumber, |
TInt | aLineInPar, | |||
TTmLineInfo & | aLineInfo | |||
) | const |