Please enable JavaScript to view this site.

 

Navigation: Appendices > Q++Studio > XML Identifiers > Internal Data Structures > Implementation > List

TKeepLinesTogether — XML implementation

Scroll Prev Up Next More

This topic covers the implementation details of TKeepLinesTogether.

 

Scope: TypeDefinitions.pas; record. Prepared from the curated implementation supplied for this review on 2 October 2026.

 

Enabled gates AllLines; when enabled and AllLines=false, Starting and Ending are serialized. No local initializer is supplied. The line-ending initializer uses disabled, AllLines=true, Starting=2 and Ending=2.

 

Notation and shared helper rules: Reading this reference.

 

XML identity and composition

 

Literal rec_type values emitted within these routines: TKeepLinesTogether. Nested values may belong to child wrappers rather than this owner itself; the attribute entries below give their exact locations.

 

Exact XML fields and attributes

 

The paths below start at this record or property node. A slash identifies a child element; @ identifies an attribute. Curly braces mark a variable index or expression, not literal XML text. Initial values describe initialization; they do not establish what an omitted individual element does. The Implementation toggle below contains the supplied routines for exact branch order and conversions.

 

Enabled

 

XML representation: The text of the Enabled element.

 

Reading: Reads the element into Enabled when the record node exists.

 

Writing: Stores true or false according to Enabled whenever the writer reaches this field.

 

AllLines

 

XML representation: The text of the AllLines element.

 

Reading: Reads the element into AllLines when the record node exists; Enabled is true.

 

Writing: Stores true or false according to AllLines when Enabled is true.

 

Starting

 

XML representation: The text of the Starting element.

 

Reading: Reads the element into Starting when the record node exists; Enabled is true; AllLines is false.

 

Writing: Stores the numeric value of Starting when Enabled is true; AllLines is false.

 

Ending

 

XML representation: The text of the Ending element.

 

Reading: Reads the element into Ending when the record node exists; Enabled is true; AllLines is false.

 

Writing: Stores the numeric value of Ending when Enabled is true; AllLines is false.

 

@rec_type

 

XML representation: The rec_type attribute.

 

Writing: Stores the literal text “TKeepLinesTogether” whenever the writer reaches this field.

 

Initialization and reset values

 

This type has no separate initializer in the supplied code. Its starting values come from its enclosing object, inherited initialization, or existing state. Relevant enclosing initializers are identified below.

 

Enclosing initialization contexts

 

The following enclosing routines establish or override this record’s starting values. Follow the owner link for the complete initializer. Different enclosing objects can supply different defaults.

 

TXtagsFormats.Initialize is documented in TXtagsFormats.

 

TParagraphFormatsRec.Initialize initializes this record through its enclosing type; its source appears in a separate Enclosing initialization toggle below.

 

Storage declarations relevant to interpretation

 

These are in-memory member and property types, not a list of mandatory XML children. They retain array bounds, fixed buffers and selector types. The field reference above defines what is actually serialized.

 

Name

Declared type / bounds

Kind

Enabled

boolean

member

AllLines

boolean

member

Starting

integer

member

Ending

integer

member

 

Implementation details

 

The Implementation toggle contains only TKeepLinesTogether methods. Initializers and helpers belonging to other types are identified separately below. Shared XML-helper limitations are explained in Reading this reference.

 

Declaration reproduces this record’s complete declaration from the supplied source, including its fields, properties and method signatures.

 

Declaration

 

Implementation

 

Enclosing initialization — TParagraphFormatsRec

 

TParagraphFormatsRec is an enclosing type. The following routine initializes its TKeepLinesTogether member; it is not a method of TKeepLinesTogether.

 

Declaration — TParagraphFormatsRec

 

Enclosing initialization — TParagraphFormatsRec