WPTools Manual



Search


(press enter to search)

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

Properties

Methods

Function AppendParagraph(lastpar:TParagraph) : TParagraph

Procedure ApplyFont(x:TFont)

Procedure ApplySPANStyles(and_remove:Boolean; ignore_charattr:Boolean)

Function BookmarkEdit(initialname:string) : Boolean

Function CalcFilterIndex(filterStr:string; FileName:string) : Integer

Function CanClose : Boolean

Create(AOwner:TComponent)

Function DeleteMarkedChar(InAllText:Boolean; DeleteEmptyParAndTables:Boolean) : Boolean

Destroy

Procedure DoChangeZooming(Sender:TObject)

Procedure DoUpdate(WPUPD_Code:Integer; Param:Integer)

Procedure DoUpdateCharAttr

Procedure DoUpdateEditStateEx(selection_marked:Boolean; clipboard_not_empty:Boolean; sel:TWPSelectionContents)

Procedure DoUpdateParAttr

Procedure DoUpdateUndoState

Function EditHyperlink(linktext:string) : Boolean

Function EditMergeField(fieldname:string) : TWPTextObj

Procedure FastAddTable(col:Integer; Pprp:PTParProps)

Procedure FastAddText(prp:TParProps)

Function FastAppendParagraph : TParagraph

Procedure FastApplyPProp(par:TParagraph; prp:TParProps; Options:TParPropsOptions)

Procedure FastCopyProperties(source:TObject)

Function FastDeleteLine : Boolean

Function FastDeleteParagraph : Boolean

Function FastGetCharAttrFromOldAttr(Attr:TAttr) : Cardinal

Function FastInputParagraph : TParagraph

Procedure FastInputText(prp:TParProps)

Function FastInsertParagraph : Boolean

Function FastMoveParagraph(Dest:TParagraph; after:Boolean) : Boolean

Procedure FastResetAttr

Procedure FastResetParagraph

Procedure FastSetPageBreak(yes:Boolean; ReuseParInAppendText:Boolean)

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 Notification(AComponent:TComponent; Operation:TOperation)

Procedure OnFind(Sender:TObject)

Procedure OnFindClose(Sender:TObject)

Procedure OnReplace(Sender:TObject)

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; ParentWnd:HWND) : Boolean

Function PrinterSetup(ParentWnd:HWND) : Boolean

Procedure ReadPrinterProperties(aPrinter:TPrinter)

Procedure RefreshIcon(FGroup:Integer; FNum1:Integer; FNum2:Integer; FNum3:Integer)

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 UpdateIcon(FGroup:Integer; FNum:Integer; State:Boolean)

Function UpdateIconCheck(FGroup:Integer; FNum:Integer; State:Boolean) : Boolean

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)