3. Settings
• Store preferences for the contents of the
document and behaviors that apply to the
entire document
– Analogous to how paragraphs and text runs have
properties specifying their behavior (pPr and rPr)
4. Types of Settings
• The settings in WordprocessingML are divided
into three categories:
– Document Settings
– Web Settings
– Compatibility Settings
5. Document Settings
• Influence the appearance and behavior
of a given document, as well as store
document-level state
Four document settings:
proofing state, automatic
tab stop positions,
whitespace compression,
and the set of revision
save IDs
6. Web Settings
• Affect how a given WordprocessingML
document is handled when it is saved as web
page and/or stores information about HTML
documents stored in WordprocessingML
Two web settings:
optimize output for
current web browser,
save images in PNG
format
7. Compatibility Settings
• Optional behaviors for a given
WordprocessingML document, which are
designed to ensure display matching that of
previous word processing applications
This file has no
compatibility
settings
8. Settings Storage
• Document and Compatibility Settings are
stored in the settings part
– Implicit reference from the main document part
• Web Settings are stored in the web settings
part
– Implicit reference from the main document part
10. Web Settings Part
• Relationship type:
http://schemas.openxmlformats.org/
officeDocument/2006/relationships/
webSettings
• Content type:
application/vnd.openxmlformats-
officedocument.wordprocessingml.we
bSettings+xml
11. Document Settings Example
Consider the following WordprocessingML fragment for a
document settings in a WordprocessingML document:
<w:settings>
…
<w:characterSpacingControl
w:val=“dontCompress” />
…
</w:settings>
In this case, the setting applied is the prevention of
character level whitespace compression.
12. Web Settings Example
Consider the following WordprocessingML fragment for the
websettings in a WordprocessingML document:
<w:webSettings>
…
<w:allowPNG />
…
</w:webSettings>
In this case, the web setting specifies that the PNG graphics
format will be used for persisting images when saving the
document as a web page.
13. Compatibility Settings
• Optional settings used to preserve visual
fidelity of documents created in earlier word
processing applications
–Recommended that new WordprocessingML
documents contain no compatibility settings
14. Compatibility Settings Example
Consider the following
WordprocessingML fragment for
the document settings in a
WordprocessingML document:
<w:settings>
...
<w:compat>
<w:ww11IndentRules />
</w:compat>
</w:settings>
In this case, the compatibility setting
specified that the hosting applications
shall not suppress the indentation
applied to numbering when
positioned next to a wrapped object.
15. Disclaimer
This presentation is for informational purposes only, and should
not be relied upon as a substitute or replacement for Microsoft
formal file format documentation, which is available at the
following website: https://msdn.microsoft.com/en-
us/library/cc313118(v=office.12).aspx. Any views or opinions
presented in this material are solely those of the author and do
not necessarily represent those of Microsoft. Microsoft
disclaims all liability for mistakes or inaccuracies in this
presentation.