ooodev.format.draw.modify.indent_space.indent module

Draw Style Indent.

New in version 0.17.12.

class ooodev.format.draw.modify.indent_space.indent.Indent(*, before=None, after=None, first=None, auto=None, style_name='standard', style_family=DrawStyleFamilyKind.GRAPHICS)[source]

Bases: ParaStyleBaseMulti

Indent Style values.

New in version 0.17.12.

__init__(*, before=None, after=None, first=None, auto=None, style_name='standard', style_family=DrawStyleFamilyKind.GRAPHICS)[source]

Constructor

Parameters:
  • before (float, UnitT, optional) – Determines the left margin of the paragraph (in mm units) or Class UnitT.

  • after (float, UnitT, optional) – Determines the right margin of the paragraph (in mm units) or Class UnitT.

  • first (float, UnitT, optional) – specifies the indent for the first line (in mm units) or Class UnitT.

  • auto (bool, optional) – Determines if the first line should be indented automatically. See note below.

  • style_name (FamilyGraphics, str, optional) – Specifies the Style that instance applies to. Default is Default standard Style.

  • style_family (str, DrawStyleFamilyKind, optional) – Family Style. Defaults to graphics.

Return type:

None

Note

The auto argument is suppose to set the styles ParaIsAutoFirstLineIndent property. The ParaIsAutoFirstLineIndent is suppose to be part of the com.sun.star.style.ParagraphProperties service; However, for some reason it is missing for Draw styles. Setting this auto argument will result in a print warning message in verbose mode. It is better to not set this argument. It is left in just in case it starts working in the future.

There is a option in the Indent and Spacing dialog Automatic. It seems to work, but it is not clear how it is implemented. It is not clear if it is a style property.

classmethod from_style(doc, style_name='standard', style_family=DrawStyleFamilyKind.GRAPHICS)[source]

Gets instance from Document.

Parameters:
  • doc (Any) – UNO Document Object.

  • style_name (FamilyGraphics, str, optional) – Specifies the Style that instance applies to. Default is FamilyGraphics.DEFAULT_DRAWING_STYLE.

  • style_family (DrawStyleFamilyKind, str, optional) – Style family. Default DrawStyleFamilyKind.GRAPHICS.

Returns:

Indent instance from document properties.

Return type:

Indent

property prop_inner: Indent

Gets/Sets Inner Font instance

Return type:

Indent

property prop_style_name: str

Gets/Sets property Style Name

Return type:

str