-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTableRow.py
More file actions
50 lines (40 loc) · 1.73 KB
/
TableRow.py
File metadata and controls
50 lines (40 loc) · 1.73 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 TableRow:
"""
Description: Table row class for ODT document.
Parameters:
_row_name - attribute specifies the name of a row,
_row_family - attribute specifies the family of a style (style:family),
_row_properties_min_row_height - attribute specifies a fixed minimum height for a row
(style:table-row-properties),
_row_properties_use_optimal_row_height - attribute specifies that a row height should be recalculated
automatically if content in the row changes.
"""
def __init__(self, row_name, row_family, row_properties_min_row_height, row_properties_use_optimal_row_height):
self._row_name = row_name
self._row_family = row_family
self._row_properties_min_row_height = row_properties_min_row_height
self._row_properties_use_optimal_row_height = row_properties_use_optimal_row_height
@property
def row_name(self):
return self._row_name
@row_name.setter
def row_name(self, value):
self._row_name = value
@property
def row_family(self):
return self._row_family
@row_family.setter
def row_family(self, value):
self._row_family = value
@property
def row_properties_min_row_height(self):
return self._row_properties_min_row_height
@row_properties_min_row_height.setter
def row_properties_min_row_height(self, value):
self._row_properties_min_row_height = value
@property
def row_properties_use_optimal_row_height(self):
return self._row_properties_use_optimal_row_height
@row_properties_use_optimal_row_height.setter
def row_properties_use_optimal_row_height(self, value):
self._row_properties_use_optimal_row_height = value