Please enable JavaScript to view this site.

 

This topic covers the implementation details of xBoxActions.

 

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

 

ActionType selects the box operation. ModifyBox serializes Background and Frame. BoxText, Image and BoxZorder payloads are added by the enclosing macro-result writer, so this method alone is not the complete box-action schema.

 

Notation and shared helper rules: Reading this reference.

 

XML identity and composition

 

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

 

Structures used directly by this XML implementation:

 

TColorAttr

TFrameAttr

 

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.

 

ActionType

 

XML representation: The text of the ActionType element.

 

Initial value: xbaLeaveAlone (0) (xBoxActions.Initialize).

 

Reading: Reads the element into ActionType when the record node exists; node2 exists.

 

Writing: Stores the numeric value of ActionType (see the value table below) whenever the writer reaches this field.

 

@rec_type

 

XML representation: The rec_type attribute.

 

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

 

Nested records and repeated elements

 

Operation

XML location

When it is processed

Read Background

Background

the record node exists; node2 exists; ActionType is xbaModifyBox (1)

Read Frame

Frame

the record node exists; node2 exists; ActionType is xbaModifyBox (1)

Write Background

Background

ActionType is xbaModifyBox (1)

Write Frame

Frame

ActionType is xbaModifyBox (1)

 

Initialization and reset values

 

xBoxActions.Initialize

 

Setting or temporary variable

Initial value

When it is assigned

self

Default (xBoxActions)

Always

ActionType

xbaLeaveAlone (0)

Always

 

This routine also calls Background.Initialize; Frame.Initialize. See Implementation for their order and any conditional calls.

 

Value namespaces used by this implementation

 

These are declared Pascal ordinal values. Use the ordinal only where the field serializer actually writes ord(...), an integer cast or an equivalent value. Set-marker strings and local option lists have their own representation; sentinel members in an enum are not automatically legal XML choices.

 

xBoxActionType

 

Ordinal

Declared member

0

xbaLeaveAlone

1

xbaModifyBox

2

xbaDeleteBox

3

xbaDeleteGroup

4

xbaUseImage

5

xbaDeleteLayer

6

xbaDeletePage

7

xbaModifyText

8

xbaZorder

 

xIntActionType

 

Ordinal

Declared member

0

xiaNone

1

xiaDateTokens

2

xiaDateMinical

3

xiaIgnoreNResult

4

xiaTextColor

5

xiaBoxColor

6

xiaTextAndBoxColor

 

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

ActionType

xBoxActionType

member

Background

TColorAttr

member

Frame

TFrameAttr

member

 

Implementation details

 

The Implementation toggle contains only xBoxActions 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