Lay out of Text Blocks

Text Block that are inserted in the result document are layed out according to a set of especially declared styles The following styles are used for the lay out of a Text Block:

The model developer is responsible for defining the correct styles. An error will be generated if an ITP Model is run in which a style is used in a Text Block that has not been defined in the model document.

An example document 'Text Block styles' with example styles is by default created in the Styledocuments folder of a new ITP/MDK Repository project. This document is by default configured as Style Document on the project. Refer to the ITP/MDK Repository Manual for an explanation on Style Documents.

Defining alternate styles

It might be needed to lay out Text Blocks in several different styles with one document. Therefore it is possible to define different sets of styles. These sets must be defined with the same name as described above. The prefix ITP should be replaced by an alternate prefix to distinquish between different style sets.

Use the STYLE_PREFIX option op the statement TEXTBLOCK to insert the Text Block with an alternate style in the result document. This statement allows for passing the prefix of the style set that should be used to lay out the Text Block.

Inserting Text Blocks in tables

Text in a table cell is handled differently by Microsoft Word than text outsite table cells. Therefore, inserting a Text Block in a table cell with the insert_text_block function could cause errors. To insert Text Block text in a table cell the option STYLE_PREFIX should be used. This option allows to pass the paragraph sign that needs to be used while inserting the Text Block. If a paragraph sign created within a table cell is passed, the Text Block can be inserted in the table cell without causing errors.