ooodev.format.inner.modify.write.para.indent_space.indent module

class ooodev.format.inner.modify.write.para.indent_space.indent.Indent(*, before=None, after=None, first=None, auto=None, style_name=StyleParaKind.STANDARD, style_family='ParagraphStyles')[source]

Bases: ParaStyleBaseMulti

Paragraph Style Indent

New in version 0.9.0.

__init__(*, before=None, after=None, first=None, auto=None, style_name=StyleParaKind.STANDARD, style_family='ParagraphStyles')[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.

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

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

Return type:

None

classmethod from_style(doc, style_name=StyleParaKind.STANDARD, style_family='ParagraphStyles')[source]

Gets instance from Document.

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

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

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

Returns:

Indent instance from document properties.

Return type:

Indent

property prop_inner: Indent

Gets Inner Indent instance

Return type:

Indent

property prop_style_name: str

Gets/Sets property Style Name

Return type:

str