Bases: lpod.element.odf_element
Bases: lpod.element.odf_element
Get the position of the shape relative to its anchor point.
Position is a (left, top) tuple with items including the unit, e.g. (‘10cm’, ‘15cm’).
Return: (str, str)
Get the size of the shape.
Size is a (width, height) tuple with items including the unit, e.g. (‘10cm’, ‘15cm’).
Return: (str, str)
Set the position of the shape relative to its anchor point.
Position is a (left, top) tuple with items including the unit, e.g. (‘10cm’, ‘15cm’).
Arguments:
position – (str, str)
Set the size of the shape.
Size is a (width, height) tuple with items including the unit, e.g. (‘10cm’, ‘15cm’). The dimensions can be None.
Arguments:
size – (str, str)
Create a ellipse shape.
Arguments:
style – unicode
text_style – unicode
shape_id – unicode
layer – str
connected_shapes – (shape, shape)
glue_points – (point, point)
p1 – (str, str)
p2 – (str, str)
Return: odf_element
Create a ellipse shape.
Arguments:
style – unicode
text_style – unicode
shape_id – unicode
layer – str
size – (str, str)
position – (str, str)
Return: odf_element
Create a line shape.
Arguments:
style – unicode
text_style – unicode
shape_id – unicode
layer – str
p1 – (str, str)
p2 – (str, str)
Return: odf_element
Create a rectangle shape.
Arguments:
style – unicode
text_style – unicode
shape_id – unicode
layer – str
size – (str, str)
position – (str, str)
Return: odf_element