ooodev.format.inner.modify.calc.cell_style_base module

class ooodev.format.inner.modify.calc.cell_style_base.CellStyleBase(style_name=CalcStylePageKind.DEFAULT, style_family='PageStyles', **kwargs)[source]

Bases: StyleBase

Cell Style Base

New in version 0.9.0.

__init__(style_name=CalcStylePageKind.DEFAULT, style_family='PageStyles', **kwargs)[source]

Constructor

Parameters:
  • style_name (CalcStylePageKind, str, optional) – Specifies the Page Style that instance applies to. Default is Default Page Style.

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

Return type:

None

apply(obj, **kwargs)[source]

Applies padding to obj

Parameters:

obj (object) – UNO Calc Document

Return type:

None

get_style_props(doc)[source]

Gets the Style Properties

Parameters:

doc (object) – UNO Document Object.

Return type:

com.sun.star.beans.XPropertySet

Raised:

NotSupportedDocumentError: If document is not supported.

Returns:

Styles properties property set.

Return type:

XPropertySet

Parameters:

doc (object) –

property prop_format_kind: FormatKind

Gets the kind of style

Return type:

FormatKind

property prop_style_family_name: str

Gets/Set Style Family Name

Return type:

str

property prop_style_name: str

Gets/Sets property Style Name

Return type:

str