<latentStyles>
(Latent Style Information)
When a style definition is embedded in a document, it specifies two distinct groups of properties:
Behavior properties
Formatting properties
Obviously, embedding all the styles known to a particular application in each document which it produces would drastically increase the file size. Latent styles provide a way to store pieces of information for the first group (behavior properties) which must be specified for all styles known to an application without requiring the storage of the second group (formatting properties).
However, if the <documentProtection>
element (§2.15.1.28) specifies that the hosting application shall prevent the use of any style whose <locked>
element (§2.7.3.7) is set to false
, then the locking state of all styles known to that application become useful and necessary to maintain the current state of the document. Using latent styles, this information may be stored without storing any formatting properties for those styles.
For example, if all styles which are not stored in the document shall be locked except for the style with a primary name (§2.7.3.9) of Heading 2
. This requirement would be specified using latent styles as follows:
<w:latentStyles … w:defLockedState="true"> <w:lsdException w:name="Heading 2" w:locked="false"/> </w:latentStyles>
The <latentStyles>
element specifies that all latent styles known to any hosting application shall have a default locking state of true
except for any style known to the hosting application with a primary name of Heading 2
, whose latent style definition specifies that its locked state shall be false
. ]
Parent Elements |
---|
|
Child Elements |
Subclause |
---|---|
|
Attributes |
Description |
---|---|
|
Specifies the number of known styles which shall be initialized to the current latent style defaults when this document is first processed. [: This property may be used by an application as needed to ensure that only the number of styles known when this document was created are initialized with the defaults on the parent element, and that all new known styles use their default values. ] <w:latentStyles w:count="20" … > … </w:latentStyles> The The possible values for this attribute are defined by the ST_DecimalNumber simple type (§2.18.16). |
|
Specifies the default setting for the If this element is omitted, the default <w:latentStyles … w:defLockedState="true"> … </w:latentStyles> The The possible values for this attribute are defined by the ST_OnOff simple type (§2.18.67). |
|
Specifies the default setting for the If this element is omitted, the default <w:latentStyles … w:defQFormat="false"> … </w:latentStyles> The The possible values for this attribute are defined by the ST_OnOff simple type (§2.18.67). |
|
Specifies the default setting for the If this element is omitted, the default <w:latentStyles … w:defSemiHIdden="false"> … </w:latentStyles> The The possible values for this attribute are defined by the ST_OnOff simple type (§2.18.67). |
|
Specifies the default setting for the If this element is omitted, the default <w:latentStyles … w:defUIPriority="10"> … </w:latentStyles> The The possible values for this attribute are defined by the ST_DecimalNumber simple type (§2.18.16). |
|
Specifies the default setting for the If this element is omitted, the default <w:latentStyles … w:defUnhideWhenUsed="true"> … </w:latentStyles> The The possible values for this attribute are defined by the ST_OnOff simple type (§2.18.67). |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_LatentStyles">
<sequence>
<element name="lsdException" type="CT_LsdException" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="defLockedState" type="ST_OnOff"/>
<attribute name="defUIPriority" type="ST_DecimalNumber"/>
<attribute name="defSemiHidden" type="ST_OnOff"/>
<attribute name="defUnhideWhenUsed" type="ST_OnOff"/>
<attribute name="defQFormat" type="ST_OnOff"/>
<attribute name="count" type="ST_DecimalNumber"/>
</complexType>