forked from python-openxml/python-docx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtext.py
More file actions
27 lines (22 loc) · 623 Bytes
/
text.py
File metadata and controls
27 lines (22 loc) · 623 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
# encoding: utf-8
"""
Enumerations related to text in WordprocessingML files
"""
from __future__ import absolute_import, print_function, unicode_literals
class WD_BREAK_TYPE(object):
"""
Corresponds to WdBreakType enumeration
http://msdn.microsoft.com/en-us/library/office/ff195905.aspx
"""
COLUMN = 8
LINE = 6
LINE_CLEAR_LEFT = 9
LINE_CLEAR_RIGHT = 10
LINE_CLEAR_ALL = 11 # added for consistency, not in MS version
PAGE = 7
SECTION_CONTINUOUS = 3
SECTION_EVEN_PAGE = 4
SECTION_NEXT_PAGE = 2
SECTION_ODD_PAGE = 5
TEXT_WRAPPING = 11
WD_BREAK = WD_BREAK_TYPE