ooodev.format.writer.direct.table.background package
Module contents
- class ooodev.format.writer.direct.table.background.Color(color=-1)[source]
Bases:
ColorClass for Cell Properties Back Color.
See also
New in version 0.9.0.
- class ooodev.format.writer.direct.table.background.Img(*, bitmap=None, name='', mode=ImgStyleKind.TILED, size=None, position=None, pos_offset=None, tile_offset=None, auto_name=False)[source]
Bases:
ImgClass for table background image.
See also
New in version 0.9.0.
- __init__(*, bitmap=None, name='', mode=ImgStyleKind.TILED, size=None, position=None, pos_offset=None, tile_offset=None, auto_name=False)[source]
Constructor
- Parameters:
bitmap (XBitmap, optional) – Bitmap instance. If
nameis not already in the Bitmap Table then this property is required.name (str, optional) – Specifies the name of the image. This is also the name that is used to store bitmap in LibreOffice Bitmap Table.
mode (ImgStyleKind, optional) – Specifies the image style, tiled, stretched etc. Default
ImgStyleKind.TILED.size (SizePercent, SizeMM, optional) – Size in percent (
0 - 100) or size inmmunits.position (RectanglePoint) – Tiling position of Image.
pos_offset (Offset, optional) – Tiling position offset.
tile_offset (OffsetColumn, OffsetRow, optional) – The tiling offset.
auto_name (bool, optional) – Specifies if
nameis ensured to be unique. Defaults toFalse.
- Return type:
None
Note
If
auto_nameisFalsethen a bitmap for a givennameis only required the first call. All subsequent call of the samenamewill retrieve the bitmap form the LibreOffice Bitmap Table.See also
- apply(obj: Any)[source]
- apply(obj: Any, **kwargs)
- apply(obj, **kwargs)
Applies styles to object
- Parameters:
obj (object) – UNO object.
- Return type:
None
- from_obj
From object is not supported in this class.