TParagraph Object
Properties Methods
The TParagraph inherits from TWPTextStyle. It stores the text and the obejcts.

Unit
WPRTEDefs

Declaration
TParagraph = class(TWPTextStyle)

Hierarchy
TObject <--TWPTextStyle <--TParagraph

Subclasses
None

Description
This object stores the text. It is organzied in a linked list (NextPar/PrevPar) starting from TRTFData.FirstPar. Paragraphs can also contain sub-paragraphs (ChildPar).
Note
NOTE: In WPTools V4 the list was created using the pointers 'next' and 'prev'. These properties still exist and can be used to enumerate all paragraphs (including child paragraphs) in their logical order.
As in Version 4 tables cells are handled as paragraphs. In contrast to previous versions, WPTools 5 handles child paragraphs to support multiple paragraphs in the one table cell. Even tables can be inside a table cell - (but they will always start under, and not beside the normal text since they always start on a new line.)
In WPTools 5 all cells of a table row are children of one TParagraph, the row.
We decided not to use a special class to order the cells in a table (such as TWPTable.Rows[].Columns[]) since such a class has no advantages for the formatting of the text. It only introduces problems when tables are merged or split. Our approach handles each row on its own so a table merge or split is possible any time. But this does not mean there is no Row[] and Cell[] array. This properties are available in each TParagraph which is part of a table. Normally a Table starts with an empty paragraph and all rows are stored as child objects within this paragraph. The paragraph text is displayed above the rows as usual. In this case the Flag IsWPTable is true.

Introduced Properties
 _ActCellWidth 
AClass 
align 
ANSIChr 
ANSIText 
 Cell This property retrieves the first paragraph of the cell this paragraph is located in.
ChildPar 
 Children 
 ChildrenCount 
 ColCount 
 ColFirst 
 ColLast 
 ColLeft 
 ColNext 
 ColNr 
 ColPrior 
 ColRight 
 Cols 
ColSpan This checks with how many cells this cell is combined horizontally.
CustomParameters 
 EndSpanH This function returns the last paragraph with which this cell is merged with horizonatlly If it is not merged the result value is nil
 EndSpanV This function returns the last paragraph with which this cell is merged with vertically If it is not merged the result value is nil
 FirstLine 
 FirstSibling 
 HasChildren 
id 
indentfirst 
indentleft 
indentright 
 IsFirstTextPar 
 IsLastTextPar 
IsNewPage 
LastChild 
 LastInnerChild 
 LastLine 
 LastSibling 
 LineCount 
LoadedCharAttr 
 LogNextPar 
 LogPrevPar 
 MinCHeight 
 next 
NextPar 
 nextpardown 
ObjectIndex 
ObjectRef 
ParagraphType 
 ParentCell 
 ParentGroup 
 ParentPar 
 ParentParentPar 
 ParentParentRow 
 ParentParentTable 
 ParentRow 
 ParentTable 
 ParLength 
 prev 
PrevPar 
 RowCount 
 RowDown 
 RowFirst 
 RowLast 
 RowLogNr 
 RowNext 
 RowNr 
 RowPrior 
 Rows 
RowSpan This checks with how many cells this cell is combined vertically.
 RowUp 
 RTFData 
 Sibling 
 SiblingCount 
 SiblingNr 
spaceafter 
spacebefore 
spacebetween 
 StartSpan This function returns the start paragraph with which this cell is merged with (horizonally or vertically) If it is not merged the result value is the first paragraph in this cell (the same as 'Cell')
 TableCount 
 Tables 

Introduced Methods
_FixAllCellWidths 
_IsWidthTw 
_SetMinMaxWidth 
AddFlagAttr 
ADelAllCharAttrDefinedIn 
ADelColumn 
ADeleteEqualSettings 
AdjustTableRow 
AGetBaseAndSpan 
AGetFBBGCOlor 
AGetInherited 
AGetInheritedFromCell 
AGetInheritedFromPar 
ANeedUpdateProps 
Append 
AppendChar 
AppendChild 
AppendNewCell 
AppendNewObject 
AppendNewObjectPair 
AppendNewPar 
AppendNewRow 
AppendNewTable 
AppendTree  This procedure inserts a paragraph tree and sets the source reference to nil.
AsChildOfPreviousPar 
ASetColumn 
ASetNeutral 
ASetRow 
Assign  Assigns a style or text.
AUpdateProps 
CalcBorderLeftRightIndent 
CheckTable 
ClearCharAttr 
ClearCharAttributes 
ClearProps 
ClearText 
Compare 
ComparePar 
CompareW 
Contains 
ContainsText 
CopyChar 
CPOfPos 
Create 
CreateCopy 
CreateCopyList 
CreateRow 
CreateTable 
CurrentSection 
DeleteChar 
DeleteChars 
DeleteMarkedChar 
DeleteParagraph 
DeleteParagraphEnd 
DeleteParagraphKeepChildren 
DeleteWPTextObj 
DelFlagAttr 
Depth 
Destroy 
Duplicate 
Empty 
EndRow 
Exchange 
ExcludeProp 
ExcludeProps 
FirstLevelPar 
FixAllCellWidths 
FixAllRightCellWidths 
FontSizeAtPosition 
FreeObjectRefs 
GetAllText 
GetCell 
GetCharAttr 
GetCharAttrAt 
GetCharAttrIndexAt 
GetChildrenAsList 
GetDebugTreeString 
GetFirstCharAttr 
GetLineText 
GetNumberText 
GetObjList 
GetRowNext 
GetRowPrior 
GetRTLCursorPos 
GetSubText 
GetText 
GetWPTextObj 
globalnext 
globalNextPar 
HasAttr 
HasObjects 
HasParent 
HasProp 
HasText 
HasTextW 
Height 
HeightTotal 
InbetweenObjects 
IncludeProp 
IncludeProps 
Insert 
InsertEx 
InsertNewObject 
IsCharObject 
IsEmpty 
IsFirstPar 
IsLastPar 
IsLowercase 
IsNonABC 
IsNonSpace 
IsNum 
IsPunctation 
IsRTL 
IsSpace 
IsTable 
IsUppercase 
IsWordDelimiter 
LastChar 
LimitCPToLineLength 
LimitLines 
LineAllCount 
LineEndOffset  Index of the last char in this line.
LineHeight 
LineIsLast 
LineLength 
LineOffset  Index of the first char in a line.
LineOfPos 
LinePageNr 
LinePosFromX 
LineStartNr 
LineXFromPos 
LoadFromFile 
LoadFromStream 
LoadFromString 
LocateNextChar 
LocatePrevChar 
MakeLine 
MergeCell 
MoveChar 
NeedAttr 
NeedCharPos 
nextcell 
NextLine 
Optimize 
OptimizeObjectRefs 
Overwrite 
paprIsLeftPar 
paprIsRightPar 
ParagraphLines 
ParagraphObjAdd 
ParagraphObjDel 
ParagraphObjFind 
ParentCellFromTable 
ParNr 
Position 
PositionOfObject 
PosOfCP 
prevcell 
PrevLine 
QuickFind  Locates a wide string in the text.
Reformat 
Refresh 
Replace 
ReplaceW 
RowAppend 
SaveToStream 
SetAllText 
SetCapacity 
SetCharAttr 
SetChildrenFromList 
SetRTFData 
SetRTLCursorPos 
SetStyle 
SetText 
SplitAt 
SplitCell 
SplitTable 
StartNewSection 
StartWith 
StartWithW 
SubPar 
SwapWithNextPar 
SwapWithPrevPar 
TableDepth 
TextAreaWidth 
TotalLength 
UnlinkParagraph 
UnlinkParagraphList 
UpdateMinMaxWidth 
ValidateTable 

Category
Datastructures
Paragraph-Reference
Tables


Copyright (C) by WPCUBED GmbH - Munich
http://www.wpcubed.com