11.2. FrameDocu
Aus Hugo Doku
Imagine you have a .model file with tags containing mixed content, like shown in the following example. Example 11.1. Example: model file with text elements
<model>
<para>Hallo HuGo!</para>
</model>
To cause the model-builder interpreting the text elements, the Frame class belonging to the father of the text element has to be derived from the HuGo base class FrameDocu. The Frame which interprets the text has to be derived from FrameTextBlock.
The following figure illustrates that by showing the Frame object tree needed for interpreting all elements of the .model file in the example above.
As the figure shows the Frame classes para and strong have to be derived from FrameDocu in order to cause the model-builder interpreting the XML text elements below.
Use FrameDocu only if you need the interpreting of the text elements. Otherwise better use the HuGo class Frame to get a higher performance of the model-builder.
Next: 11.3. FrameTextBlock


