TLayDocTextSource Class Reference
class TLayDocTextSource : public MTmSource
|
Public Member Functions
|
|
TLayDocTextSource
()
|
TBool
|
CanMap
()
|
TInt
|
DocumentLength
()
|
void
|
DrawBackground
(
CGraphicsContext
&, const
TPoint
&, const
TRect
&, const
TLogicalRgb
&,
TRect
&)
|
void
|
DrawLine
(
CGraphicsContext
&, const
TPoint
&, const
TPoint
&)
|
void
|
DrawLineGraphics
(
CGraphicsContext
&, const
TPoint
&, const
TRect
&, const
TTmLineInfo
&)
|
void
|
DrawPicture
(
CGraphicsContext
&, const
TPoint
&, const
TRect
&,
MGraphicsDeviceMap
&, const
CPicture
&)
|
void
|
DrawRect
(
CGraphicsContext
&, const
TRect
&)
|
void
|
DrawText
(
CGraphicsContext
&, const
TPoint
&, const
TRect
&, const
TTmLineInfo
&, const
TTmCharFormat
&, const
TDesC
&, const
TPoint
&,
TInt
)
|
void
|
DrawText
(
CGraphicsContext
&, const
TPoint
&, const
TRect
&, const
TTmLineInfo
&, const
TTmCharFormat
&, const
TDesC
&, const
TInt
, const
TInt
, const
TPoint
&,
TInt
)
|
void
|
DrawText
(
CGraphicsContext
&, const
TDesC
&, const
TPoint
&)
|
MGraphicsDeviceMap
&
|
FormatDevice
()
|
TAny
*
|
GetExtendedInterface
(const
TUid
&)
|
TBool
|
GetLineBreakInContext
(const
TDesC
&,
TInt
,
TInt
,
TBool
,
TInt
&)
|
void
|
GetParagraphFormatL
(
TInt
,
RTmParFormat
&)
|
TInt
|
GetPictureSizeInTwipsL
(
TInt
,
TSize
&)
|
void
|
GetText
(
TInt
,
TPtrC
&,
TTmCharFormat
&)
|
MGraphicsDeviceMap
&
|
InterpretDevice
()
|
TBool
|
IsHangingCharacter
(
TUint
)
|
void
|
LabelMetrics
(
TLabelType
,
TSize
&,
TInt
&)
|
void
|
LabelModeCancel
()
|
TBool
|
LabelModeSelect
(
TLabelType
,
TInt
)
|
TUint
|
LineBreakClass
(
TUint
,
TUint
&,
TUint
&)
|
TBool
|
LineBreakPossible
(
TUint
,
TUint
,
TBool
)
|
TUint
|
Map
(
TUint
)
|
TBool
|
PageBreakInRange
(
TInt
,
TInt
)
|
TInt
|
ParagraphStart
(
TInt
)
|
CPicture
*
|
PictureL
(
TInt
)
|
void
|
ResetOpaque
(
CGraphicsContext
&)
|
void
|
SetLineHeight
(const
TLineHeightParam
&,
TInt
&,
TInt
&)
|
void
|
SetOpaque
(
CGraphicsContext
&)
|
TRgb
|
SystemColor
(
TUint
,
TRgb
)
|
Inherited Functions
|
|
MLineBreaker::ExtendedInterface(TUid &)const
|
|
MLineBreaker::GetLineBreak(const TDesC16 &,TInt,TInt,TBool,MContingentLineBreaker *,TInt &,TInt &)const
|
|
MLineBreaker::GetLineBreakL(const TDesC16 &,TInt,TInt,TBool,MContingentLineBreakerL *,TInt &,TInt &)const
|
|
MTmCustom::SetBrushColor(CGraphicsContext &,TLogicalRgb)const
|
|
MTmCustom::SetPenColor(CGraphicsContext &,TLogicalRgb)const
|
|
MTmCustom::Stretch(TUint)const
|
|
MTmCustom::SystemColor(TLogicalRgb)const
|
|
MTmSource::GetLineBreakL(const TDesC &,TInt,TInt,TInt,TBool,TInt &,TInt &,TInt &)const
|
|
MTmSource::GetStandardLineBreak(const TDesC &,TInt,TInt,TInt &,TInt &)
|
|
MTmSource::MTmSource_Reserved_1()
|
|
MTmSource::MTmSource_Reserved_2()
|
|
MTmSource::ParagraphEnd(TInt)const
|
Constructor & Destructor Documentation
Member Functions Documentation
DocumentLength()
TInt
|
DocumentLength
|
(
|
)
|
const [virtual]
|
Return the length of the document in characters.
DrawBackground(CGraphicsContext &, const TPoint &, const TRect &, const TLogicalRgb &, TRect &)
DrawLine(CGraphicsContext &, const TPoint &, const TPoint &)
Draws a line. Implements
MTmTextDrawExt::DrawLine()
. If the opaque drawing mode is active, then the line color will stay unchanged (it will not be alpha-blended in a case of a transparent window).
Parameters
CGraphicsContext
& aGc
|
A reference to a graphics context. If the drawing mode is opaque, then this is a CWindowGc reference.
|
const
TPoint
& aPt1
|
Line start point
|
const
TPoint
& aPt2
|
Line end point
|
DrawLineGraphics(CGraphicsContext &, const TPoint &, const TRect &, const TTmLineInfo &)
void
|
DrawLineGraphics
|
(
|
CGraphicsContext
&
|
aGc,
|
|
const
TPoint
&
|
aTextLayoutTopLeft,
|
|
const
TRect
&
|
aRect,
|
|
const
TTmLineInfo
&
|
aLineInfo
|
|
)
|
const [virtual]
|
DrawPicture(CGraphicsContext &, const TPoint &, const TRect &, MGraphicsDeviceMap &, const CPicture &)
DrawRect(CGraphicsContext &, const TRect &)
Draws a rectangle. Implements
MTmTextDrawExt::DrawRect()
. If the opaque drawing mode is active, then the rectabgle color will stay unchanged (it will not be alpha-blended in a case of a transparent window).
Parameters
CGraphicsContext
& aGc
|
A reference to a graphics context. If the drawing mode is opaqe, then this is a CWindowGc reference.
|
const
TRect
& aRc
|
Rectangle coordinates
|
DrawText(CGraphicsContext &, const TPoint &, const TRect &, const TTmLineInfo &, const TTmCharFormat &, const TDesC &, const TPoint &, TInt)
DrawText(CGraphicsContext &, const TPoint &, const TRect &, const TTmLineInfo &, const TTmCharFormat &, const TDesC &, const TInt, const TInt, const TPoint &, TInt)
DrawText(CGraphicsContext &, const TDesC &, const TPoint &)
Draws a text. Implements
MTmTextDrawExt::DrawText()
. If the opaque drawing mode is active, then the text color will stay unchanged (it will not be alpha-blended in a case of a transparent window).
Parameters
CGraphicsContext
& aGc
|
A reference to a graphics context. If the drawing mode is opaqe, then this is a CWindowGc reference.
|
const
TDesC
& aText
|
|
const
TPoint
& aPt
|
|
FormatDevice()
Return the device used to format the text.
GetExtendedInterface(const TUid &)
TAny
*
|
GetExtendedInterface
|
(
|
const
TUid
&
|
aInterfaceId
|
)
|
[virtual]
|
This method is responsible for discovering interface extension objects requried by Form for the specified interface Uid.
Parameters
const
TUid
& aInterfaceId
|
Identifier for the optional interface requried.
|
GetLineBreakInContext(const TDesC &, TInt, TInt, TBool, TInt &)
TBool
|
GetLineBreakInContext
|
(
|
const
TDesC
&
|
aText,
|
|
TInt
|
aMinBreakPos,
|
|
TInt
|
aMaxBreakPos,
|
|
TBool
|
aForwards,
|
|
TInt
&
|
aBreakPos
|
|
)
|
const [virtual]
|
GetParagraphFormatL(TInt, RTmParFormat &)
Return the paragraph format of the paragraph containing aPos. End-of-paragraph characters belong to the preceding paragraph.
GetPictureSizeInTwipsL(TInt, TSize &)
TInt
|
GetPictureSizeInTwipsL
|
(
|
TInt
|
aPos,
|
|
TSize
&
|
aSize
|
|
)
|
const [virtual]
|
GetText(TInt, TPtrC &, TTmCharFormat &)
Return at least one character of text, but preferably as many as possible, starting at aPos. Put its character format in aFormat. The text must be a run of characters sharing the same character format.
InterpretDevice()
Return the device used to draw the text and when converting between x-y coordinates and document positions. If the formatting and interpreting devices are different, text is scaled appropriately when it is drawn; this allows text to be formatted for printer fonts and displayed on the screen, giving a wysiwyg print preview.
IsHangingCharacter(TUint)
TBool
|
IsHangingCharacter
|
(
|
TUint
|
aChar
|
)
|
const [virtual]
|
LabelMetrics(TLabelType, TSize &, TInt &)
LabelModeSelect(TLabelType, TInt)
LineBreakClass(TUint, TUint &, TUint &)
LineBreakPossible(TUint, TUint, TBool)
PageBreakInRange(TInt, TInt)
TBool
|
PageBreakInRange
|
(
|
TInt
|
aStartPos,
|
|
TInt
|
aEndPos
|
|
)
|
const [virtual]
|
ParagraphStart(TInt)
TInt
|
ParagraphStart
|
(
|
TInt
|
aPos
|
)
|
const [virtual]
|
Return the document position of the start of the paragraph containing aPos. End-of-paragraph characters belong to the preceding paragraph.
ResetOpaque(CGraphicsContext &)
Resets opaque drawing mode.
Parameters
CGraphicsContext
& aGc
|
A reference to a graphics context. If the drawing mode is opaqe, then this is a CWindowGc reference.
|
SetLineHeight(const TLineHeightParam &, TInt &, TInt &)
SetOpaque(CGraphicsContext &)
Sets opaque drawing mode.
Parameters
CGraphicsContext
& aGc
|
A reference to a graphics context. If the drawing mode is opaqe, then this is a CWindowGc reference.
|
SystemColor(TUint, TRgb)
TRgb
|
SystemColor
|
(
|
TUint
|
aColorIndex,
|
|
TRgb
|
aDefaultColor
|
|
)
|
const [virtual]
|
Member Enumerations Documentation
Enum anonymous
Enumerators
EDefaultFontHeightIncreaseFactor = 7
|
|
EDefaultMinimumLineDescent = 3
|
|
Enum anonymous
Enumerators
EWrap = 1
|
|
ETruncateWithEllipsis = 2
|
|
EUseLabelsDevice = 4
|
|
Member Data Documentation
const MFormCustomDraw * iCustomDraw
const MFormCustomWrap * iCustomWrap
TInt
iExcessHeightRequired
TInt
|
iExcessHeightRequired
|
TInt
iFontHeightIncreaseFactor
TInt
|
iFontHeightIncreaseFactor
|
const MFormParam * iFormParam
MGraphicsDeviceMap * iFormatDevice
CLayoutData::TFormatMode
iFormatMode
MGraphicsDeviceMap * iImageDevice
MFormCustomInterfaceProvider * iInterfaceProvider
Optional object able to provide a concrete customisation object for use internally by Form.
MFormCustomInvisibleCharacterRemapper * iInvisibleCharacterRemapper
MGraphicsDeviceMap * iLabelsDevice
TNonPrintingCharVisibility
iNonPrintingCharVisibility
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.