ooodev.format.draw.direct.text.text package

Submodules

Module contents

class ooodev.format.draw.direct.text.text.Spacing(left=None, right=None, top=None, bottom=None)[source]

Bases: Spacing

This class represents the text spacing of an object that supports com.sun.star.drawing.TextProperties.

New in version 0.17.5.

__init__(left=None, right=None, top=None, bottom=None)[source]

Constructor.

Parameters:
  • left (float, UnitT, optional) – Left spacing in MM units or UnitT. Defaults to None.

  • right (float, UnitT, optional) – Right spacing in MM units or UnitT. Defaults to None.

  • top (float, UnitT, optional) – Top spacing in MM units or UnitT. Defaults to None.

  • bottom (float, UnitT, optional) – Bottom spacing in MM units or UnitT. Defaults to None.

Return type:

None

class ooodev.format.draw.direct.text.text.TextAnchor(anchor_point=None, full_width=None)[source]

Bases: TextAnchor

This class represents the text spacing of an object that supports com.sun.star.drawing.TextProperties.

New in version 0.17.5.

__init__(anchor_point=None, full_width=None)[source]

Constructor.

Parameters:
  • anchor_point (ShapeBasePointKind, optional) – Anchor Point.

  • full_width (bool, optional) – Full Width. Defaults to None.

Return type:

None

Note

full_width applies when anchor_point is None or ShapeBasePointKind.TOP_CENTER or ShapeBasePointKind.CENTER or ShapeBasePointKind.BOTTOM_CENTER.