forked from python-openxml/python-docx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.py
More file actions
28 lines (18 loc) · 780 Bytes
/
settings.py
File metadata and controls
28 lines (18 loc) · 780 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# encoding: utf-8
"""Settings object, providing access to document-level settings"""
from __future__ import absolute_import, division, print_function, unicode_literals
from docx.shared import ElementProxy
class Settings(ElementProxy):
"""Provides access to document-level settings for a document.
Accessed using the :attr:`.Document.settings` property.
"""
__slots__ = ()
@property
def odd_and_even_pages_header_footer(self):
"""True if this document has distinct odd and even page headers and footers.
Read/write.
"""
return self._element.evenAndOddHeaders_val
@odd_and_even_pages_header_footer.setter
def odd_and_even_pages_header_footer(self, value):
self._element.evenAndOddHeaders_val = value