I have a couple of instances where I’m trying to use ParagaphStyle but I just can’t get it to work.
The first one is I’m generating a heading with the call signature of an Operation in a class:
<ParagraphStyle name="@heading+">
<Property property="name"/>
<Text>(</Text>
<IterationBlock modelType="Parameter" ignoreLastSeparator="true">
<Property property="type"/>
<Property property="typeModifier"/>
<Text>, </Text>
</IterationBlock>
<Text>)</Text>
<ParagraphBreak/>
</ParagraphStyle>
Despite the above, the text comes out in “Normal” style.
This works instead:
<Property property="name" style="@heading+"/>
<Text>(</Text>
<IterationBlock modelType="Parameter" ignoreLastSeparator="true">
<Property property="type"/>
<Property property="typeModifier"/>
<Text>, </Text>
</IterationBlock>
<Text>)</Text>
<ParagraphBreak/>
In another instance, I want an image and its description to use the same style:
<ParagraphStyle name="Indented">
<Image alignment="center" maxWidth="28000"/>
<ParagraphBreak/>
<HasValueChecker property="description">
<Property property="description"/>
<ParagraphBreak/>
</HasValueChecker>
</ParagraphStyle>
As there is no way to set the style surrounding an image, I’m stuck with this instead:
<Image alignment="center" maxWidth="28000"/>
<ParagraphBreak/>
<HasValueChecker property="description">
<Property property="description" style="Indented"/>
<ParagraphBreak/>
</HasValueChecker>
Am I missing something?