-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTable.py
More file actions
71 lines (57 loc) · 2.44 KB
/
Table.py
File metadata and controls
71 lines (57 loc) · 2.44 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
class Table:
"""
Description: Table class for ODT document.
Parameters:
_table_name - attribute specifies the name of a table,
_table_family - attribute specifies the family of a style (style:family),
_table_master_page_name - attribute specifies the name of element that contains the content
of headers and footers.
_table_properties_width - attribute specifies the width of a table relative to the width of
the area that the table is in (style:table-properties),
_table_properties_margin_left - attribute sets the left margin of a table.
_table_properties_align - attribute specifies the horizontal alignment of a table (table:align).
"""
def __init__(self, table_name, table_family, table_master_page_name, table_properties_width,
table_properties_margin_left, table_properties_align):
self._table_name = table_name
self._table_family = table_family
self._table_master_page_name = table_master_page_name
self._table_properties_width = table_properties_width
self._table_properties_margin_left = table_properties_margin_left
self._table_properties_align = table_properties_align
@property
def table_name(self):
return self._table_name
@table_name.setter
def table_name(self, value):
self._table_name = value
@property
def table_family(self):
return self._table_family
@table_family.setter
def table_family(self, value):
self._table_family = value
@property
def table_master_page_name(self):
return self._table_master_page_name
@table_master_page_name.setter
def table_master_page_name(self, value):
self._table_master_page_name = value
@property
def table_properties_width(self):
return self._table_properties_width
@table_properties_width.setter
def table_properties_width(self, value):
self._table_properties_width = value
@property
def table_properties_margin_left(self):
return self._table_properties_margin_left
@table_properties_margin_left.setter
def table_properties_margin_left(self, value):
self._table_properties_margin_left = value
@property
def table_properties_align(self):
return self._table_properties_align
@table_properties_align.setter
def table_properties_align(self, value):
self._table_properties_align = value