Class TWPRTFEnginePaint
Hierarchy
System.TObject | System.Classes.TPersistent | System.Classes.TComponent | Vcl.Controls.TControl | Vcl.Controls.TGraphicControl | WPRTEDefs.TWPRTFEngineBasis | WPRTEEdit.TWPRTFEngineEdit | TWPRTFEnginePaint
Subclasses
Description
TWPRTFEnginePaint inherites from TWPRTFEngineBasis and coordinates the text formatting and painting. It handles its own pages array 'PaintPages' to save the position where and how to paint the pages. The pages in PaintPages can be retrieved from other sources to allow the integration of foreign pages into the text.Properties
Property _RTLSupport : Boolean
Property bPaintInGray : Boolean
Property DeskColor : TColor
Property DeskColorTo : TColor
Property DeskGradientHorizontal : Boolean
Property DisableBackgroundOnBWPrinter : Boolean
Property HideTableBorders : TWPHideTableBordersMode
Property OverridePageCount : Integer
Property OverridePageOffset : Integer
Property PaintPagesHeight : Integer
Property PaintState : TWPRTFEnginePaintState
Property SpecialTextFlagsForAllText : TWPSpecialCharacterAttrKinds
Methods
Procedure BroadcastMsg(Sender:TWPRTFDataCollectionBase; Code:Integer; Param:TObject)
Procedure DoFreeNotifyDynamicObject(Sender:TObject)
Function FindDynamicObject(x:Integer; y:Integer; rtfpage:TWPVirtPage) : TWPDynamicObject
Function FixFontsOfText(RelacementFonts:; Charset:Integer) : Integer
Procedure FrameLine(Mode:TWPFrameLineMode; Pos:Integer)
Function FrameLineWasMoved : Boolean
Function GetCursorXYWH(X:Integer; Y:Integer; W:Integer; H:Integer; par:TParagraph; posinpar:Integer) : Boolean
Function GetSpecialTextStyle(Input:TCharacterAttr; Printing:Boolean; par:TParagraph; posinpar:Integer) : TCharacterAttr
Function GetTextPageScreenRect(par:TParagraph; posinpar:Integer; x:Integer; y:Integer; w:Integer; h:Integer; pagenr:Integer) : TWPVirtPage
Function InitializePaintPages : Integer
Function MoveCursor(PaintPageNr:Integer; X:Integer; Y:Integer; DontLeaveDataBlock:Boolean) : Boolean
Procedure PaintDesktopBackground(Outcanvas:TCanvas; PaintRect:TRect)
Function PaintDesktopPrepareExView(PaintDesktopModes:TWPPaintDesktopModes) : TWPPaintModes
Function RefreshAniImages(toCanvas:TCanvas; x:Integer; y:Integer) : Boolean
Function ShowCursor : Boolean
Function TextHeight(Resolution:Integer) : Integer
Function TextWidth(Resolution:Integer) : Integer
Function UpdateCodePage : Integer
Events
BeforeDestroyPaintPage : TWPBeforeDestroyPaintPage= TWPBeforeDestroyPaintPage
OnActivatingHotStyle : TWPActivatingHotStyle= TWPActivatingHotStyle
OnChangedTopOffset : TNotifyEvent= procedure (Sender : TObject) of Object
OnChangeScrollPosition : TWPChangeScrollPositionEvent= TWPChangeScrollPositionEvent
OnCustomLinePaintAfter : TWPVirtPagePaintEvent= TWPVirtPagePaintEvent
OnCustomLinePaintBefore : TWPVirtPagePaintEvent= TWPVirtPagePaintEvent
OnDeactivateHotStyle : TWPDeactivateHotStyle= TWPDeactivateHotStyle
OnDrawUnderline : TWPOnDrawUnderlineEvent= TWPOnDrawUnderlineEvent
OnFillPaperColorOnScreen : TWPInternFillPaperColorOnScreenEvent= TWPInternFillPaperColorOnScreenEvent
OnGetPageGapText : string= string
OnHyperlinkObjGetText : TWPOnTextObjGetTextEvent= TWPOnTextObjGetTextEvent
OnInitPage : TWPOnInitPage= TWPOnInitPage
OnMakeFootnoteNr : WideString= WideString
OnMeasureObjectEvent : TWPMeasureObjectEvent= TWPMeasureObjectEvent
This event is used for internal porposes. It makes it possible to override the default code which works with embedded objects. You can also use the OnTextObjectGetTextEx event instead. OnMeasureObjectEvent will be always triggered immediately before OnTextObjectGetTextEx.