Format Rules - Adobe FRAMEMAKER 10 User Manual

Hide thumbs Also See for FRAMEMAKER 10:
Table of Contents

Advertisement

<EDAttrRequired boolean>
<EDAttrReadOnly boolean>
<EDAttrHidden boolean>
<EDAttrChoices
<EDAttrChoice string>
<EDAttrChoice string>
...
>
<EDAttrDefValues
<EDAttrDefValue string>
<EDAttrDefValue string>
...
>
<EDAttrRange
<EDRangeStart string>
<EDRangeEnd string>
>
>

Format rules

Format rules allow the template builder to specify the format of an element in specific circumstances. A format rule
can be either a context rule or a level rule.
A context rule contains clauses that specify an element's formatting based on its parent and sibling elements. For
example, one clause of a format rule could specify that a Para element has the FirstBody paragraph format if it is the
first child of a Heading element. Another clause could specify that a Para element has the Body paragraph format in
all other contexts.
A level rule contains clauses that specify an element's formatting on the basis of the level to which it is nested within
specific types of ancestor elements. For example, one clause of a level rule could specify that a Para element appears
in 12-point type if it has only one Section element among its ancestors. Another clause could specify that a Para
element appears in 10-point type if there are two Section elements among its ancestors.
Element definitions contain format rules grouped into the following statements:
EDTextFormatRules
EDObjectFormatRules
EDPrefixRules
Yes
means the attribute is required
means the attribute is read-only
Yes
means the attribute is hidden and will not appear in the Struc-
Yes
ture view or in the Edit Attributes dialog box
The choices, if the attribute type is
A choice
Additional statements as needed
End of
EDAttrChoices
statement.
The default if the attribute is not required. If the attribute type is
FAttrInts
,
FAttrReals
, the default can have multiple strings
FAttrUniqueIdRefs
A default value
Additional statements as needed
End of
EDAttrDefValues
Range of values the attribute is allowed to have
The minimum value the attribute must have
The maximum value the attribute must have
End of
EDAttrRange
statement
End of
statement
EDAttrDef
ADOBE FRAMEMAKER 10
FAttrChoice
,
FAttrStrings
, or
statement
152
MIF Reference

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents