Class TWPCustomRichText

Hierarchy

System.TObject | System.Classes.TPersistent | System.Classes.TComponent | Vcl.Controls.TControl | Vcl.Controls.TWinControl | Vcl.Controls.TCustomControl | WPRTEDefs.TWPCustomRTFControl | WPCTRMemo.TWPCustomRtfEdit | TWPCustomRichText

Subclasses

WPCTRRich.TWPRichText | Wpdbrich.TDBWPRichText

Description for Class TWPCustomRtfEdit

This is the central component in WPTools, the editor. It hosts the 'RTF-Engine' which is defined in class RTFEngineMemo.RTFDataA) The editor will always creates line breaks to fit the lines on the current page width (

Properties

Methods

Function FindDialog(initaltext:string) : Boolean

Function FontSelect : Boolean

Function HasFocus : Boolean

Function InputParagraphChild : TParagraph

Function Insert(InitPath:string; Filter:string) : Boolean

Function InsertGraphic(filename:string; InsertLink:Boolean; ObjectModes:TWPTextObjModes) : TWPObject

Function InsertGraphicDialog(filter:string; InsertLink:Boolean; ObjectModes:TWPTextObjModes; path:string) : TWPObject

Function Load(InitPath:string; Filter:string) : Boolean

Function LoadEx(InitPath:string; Filter:string; UseConvDLLIfAvailable:Boolean) : Boolean

Function LoadWithConverter(FileName:string) : Boolean

Procedure OnToolBarIconSelection(Sender:TObject; Typ:TWpSelNr; str:string; group:Integer; num:Integer; index:Integer)

Procedure OnToolBarSelection(Sender:TObject; Typ:TWpSelNr; str:string; num:Integer)

Function OpenDialog(DialogType:TWPCustomRtfEditDialog; Param:string) : Boolean

Function PrintDialog(PageRange:string) : Boolean

Function PrinterSetup : Boolean

Procedure ReadPrinterProperties(aPrinter:TPrinter)

Procedure RemoveRTFData

Function ReplaceDialog(initaltext:string) : Boolean

Function Save(InitPath:string; Filter:string) : Boolean

Function SaveAs(InitPath:string; Filter:string) : Boolean

Procedure ScrollLinePos(par:TParagraph; posinpar:Integer; LimitScrolling:Boolean)

Function SetCharacterSet(FromChar:Integer; ToChar:Integer; FontName:string; CharSet:Integer) : Integer

Procedure SetFocusValues(Always:Boolean)

Procedure SetIToolCtrl(x:IWPCustomToolCtrlInterface)

Procedure SetRTFData(ARTFData:TWPRTFDataCollection)

Function SetTabPos(PosInTwips:Integer; kind:TTabKind; delete_it:Boolean; FillMode:TTabFill; FillColor:Integer) : Boolean

Procedure UISizeReadInitial(r:TWPEditInitialUISize)

Procedure UISizeScaleBy(Factor:Single; InitialValue:TWPEditInitialUISize; Disable:TWPUISizeScaleByMode)

Function UpdateFontValues : TFont

Procedure UpdateRulerValues

Events

AfterExecuteAction : TNotifyEvent= procedure (Sender : TObject) of Object

This event is triggered after an action was executed. It will also be triggered by the method OpenDialog. YOu can use this event to update GUI elements with current states of selected printer, page format etc.

OnCharacterAttrChange : TWPNotifyAttrEvent= TWPNotifyAttrEvent

Used or referenced by

-Procedure TWPCustomAttrDlg.ChangeApplied(aEditBox:TWPCustomRtfEdit)
-Function TWPSuperMerge.GetEditor : TWPCustomRTFControl
-Procedure TWPCustomAttrDlg.ChangeApplied(aEditBox:TWPCustomRtfEdit)
-Procedure WPCreateTableForm(Form:TWinControl; Sender:TControl; editor:TWPCustomRichText; AllowNestedTables:Boolean)