Class TWPRTFDataBlock

Hierarchy

System.TObject | System.Classes.TPersistent | System.Classes.TCollectionItem | TWPRTFDataBlock

Subclasses

WPRTEEdit.TWPRTFDataBlockEd

Description

One element of the TWPRTFDataBlock class holds the text of one RTF element, such as the body text, header or footers and - in WPTools Premium - footnotes

Properties

Methods

Function _FFirstPar : TParagraph

Function _FirstPar : TParagraph

Function _PageListCount : Integer

Procedure AddToNumberTree(Par:TParagraph; numsty:TWPTextStyle)

Function AppendNewPar(DontCopyStyle:Boolean; ParType:TWPParagraphType) : TParagraph

Function AppendPar(Par:TParagraph; AfterPar:TParagraph) : TParagraph

Function AppendParCopy(SourcePar:TParagraph; SkipObjects:TWPTextObjTypes; AfterPar:TParagraph) : TParagraph

Function AppendParList(Par:TParagraph; AfterPar:TParagraph) : TParagraph

Function AppendTable(Par:TParagraph; AfterPar:TParagraph) : TParagraph

Function AppendText(SourceRTFBlock:TWPRTFDataBlock) : TParagraph

Procedure ApplyConditionals(Mode:TWPApplyConditionalsMode; Callback:TWPApplyConditionalEval; Data:TObject)

Function ApplySPANStyles(and_remove:Boolean; ignore_charattr:Boolean) : Boolean

Procedure Assign(Source:TPersistent)

Function AsWidestring(ParBreaktext:string) : WideString

Function BeforeFormatPar(curr_page:TWPVirtPage; Par:TParagraph; OnlyThis:Boolean; startprop:TReformatProp; subprop:TReformatProp) : Integer

Function Clear(Complete:Boolean) : TParagraph

Procedure ClearParagraph(Par:TParagraph)

Procedure ClearVirtPages

Create(Collection:TCollection)

Function CreateTable(AfterPar:TParagraph) : TParagraph

Destroy

Function EnumTxtObjects(par:TParagraph; posinpar:Integer; obj:TWPTextObj; objmask:TWPTextObjTypes) : Boolean

Function FindParByName(Name:string; StartWith:TParagraph) : TParagraph

Function FindParByNameEx(Name:string; AndTypeIn:TWPParagraphTypes; StartWith:TParagraph; use_wpat_parname:Boolean; need_props:TParProp) : TParagraph

Function FindParWithText(findtext:string; StartWith:TParagraph) : TParagraph

Function GetAPage(Index:Integer) : TWPVirtPage

Function GetPageOfBookmark(BookmarkName:string) : Integer

Procedure GetParagraphNr(Par:TParagraph; FirstLevelNr:Integer; SecondLevelNr:Integer; ChildNr:Integer)

Function GetPosition(Par:TParagraph; posinpar:Integer) : Integer

Procedure InitNumberTree

Procedure InitPage(aPage:TWPVirtPage; pnr:Integer)

Function InsertChildPar(ParentPar:TParagraph; ParType:TWPParagraphType) : TParagraph

Function InsertPar(BeforePar:TParagraph; ParType:TWPParagraphType) : TParagraph

Function InsertParEx(CurrSiblingPar:TParagraph; Before:Boolean; ParType:TWPParagraphType) : TParagraph

Function InsertText(cpposition:Integer; text:WideString; StyleString:string) : TParagraph

Function IsEmpty(IgnoreWhiteSpace:Boolean; IgnoreEmptyPars:Boolean) : Boolean

Function IsVisible(InRTFEngine:TWPRTFEngineBasis) : Boolean

Function LastParWithType(ParType:TWPParagraphType; StartPar:TParagraph) : TParagraph

Function ParagraphFastFind(Par:TParagraph) : Boolean

Function ParagraphFind(FirstLevelNr:Integer; SecondLevelNr:Integer; ChildNr:Integer) : TParagraph

Procedure Reformat(FromPage:Integer; ToPage:Integer; reformatfkt:TWPAbstractRTFDataBlockFormatter; rowparams:TWPReformatOneParProps)

Function ReformatPar(Par:TParagraph) : Boolean

Function ReformatSpecial(XPixelsPerInch:Integer; YPixelsPerInch:Integer; WidthTW:Integer; HeightTW:Integer; marginleft:Integer; margintop:Integer; marginright:Integer; marginbottom:Integer; HeightOfVisibleOnly:Boolean; reformatfkt:TWPAbstractRTFDataBlockFormatter) : Integer

Procedure RenumberText(startpar:TParagraph)

Function SetPosition(pos:Integer; posinpar:Integer) : TParagraph

Function TextHeightOnPage(Index:Integer) : Integer

Function UseAsBody : Boolean

Function Validate(Par:TParagraph) : Boolean

Used or referenced by

-Property TWPTextCombineStack.SourceText : TWPRTFDataBlock