-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTableColumn.py
More file actions
50 lines (40 loc) · 1.85 KB
/
TableColumn.py
File metadata and controls
50 lines (40 loc) · 1.85 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
class TableColumn:
"""
Description: Table column class for ODT document.
Parameters:
_column_name - attribute specifies the name of a column,
_column_family - attribute specifies the family of a style (style:family),
_column_properties_column_width - attribute specifies a fixed width for a column (style:table-column-properties),
_column_properties_use_optimal_column_width - attribute specifies that a column width should be recalculated
automatically if content in the column changes.
"""
def __init__(self, column_name, column_family, column_properties_column_width,
column_properties_use_optimal_column_width):
self._column_name = column_name
self._column_family = column_family
self._column_properties_column_width = column_properties_column_width
self._column_properties_use_optimal_column_width = column_properties_use_optimal_column_width
@property
def column_name(self):
return self._column_name
@column_name.setter
def column_name(self, value):
self._column_name = value
@property
def column_family(self):
return self._column_family
@column_family.setter
def column_family(self, value):
self._column_family = value
@property
def column_properties_column_width(self):
return self._column_properties_column_width
@column_properties_column_width.setter
def column_properties_column_width(self, value):
self._column_properties_column_width = value
@property
def column_properties_use_optimal_column_width(self):
return self._column_properties_use_optimal_column_width
@column_properties_use_optimal_column_width.setter
def column_properties_use_optimal_column_width(self, value):
self._column_properties_use_optimal_column_width = value