ooodev.format.calc.style package

Subpackages

Module contents

class ooodev.format.calc.style.Cell(name='')[source]

Bases: StyleName

Style Cell/Cell Range.

Any properties starting with prop_ set or get current instance values.

All methods starting with fmt_ can be used to chain together Border Table properties.

New in version 0.9.0.

__init__(name='')[source]

Constructor

Parameters:

name (StyleCellKind, str, optional) – Cell Style. Defaults to Default.

Return type:

None

on_property_setting(source, event_args)[source]

Triggers for each property that is set

Parameters:
  • event_args (KeyValueCancelArgs) – Event Args

  • source (Any) –

property accent_1: Cell

Style Accent 1

Return type:

Cell

property accent_2: Cell

Style Accent 2

Return type:

Cell

property accent_3: Cell

Style Accent 3

Return type:

Cell

property bad: Cell

Style bad

Return type:

Cell

default = <ooodev.format.calc.style.cell.cell.Cell object>[source]
property error: Cell

Style error

Return type:

Cell

property footnote: Cell

Style Footnote

Return type:

Cell

property good: Cell

Style Good

Return type:

Cell

property h1: Cell

Style Heading 1

Return type:

Cell

property h2: Cell

Style Heading 2

Return type:

Cell

property heading_1: Cell

Style Heading 1

Return type:

Cell

property heading_2: Cell

Style Heading 2

Return type:

Cell

property neutral: Cell

Style Neutral

Return type:

Cell

property note: Cell

Style Note

Return type:

Cell

property prop_format_kind: FormatKind

Gets the kind of style

Return type:

FormatKind

property warning: Cell

Style Warning

Return type:

Cell

class ooodev.format.calc.style.Page(name='')[source]

Bases: StyleName

Page Style.

See also

New in version 0.9.0.

__init__(name='')[source]

Constructor

Parameters:

name (CalcStylePageKind | str, optional) – Style name. Defaults to Default.

Return type:

None

See also

copy()[source]
copy(**kwargs)
copy(**kwargs)

Gets a copy of instance as a new instance

Return type:

Page

classmethod from_obj(obj)[source]
classmethod from_obj(obj, **kwargs)
classmethod from_obj(obj, **kwargs)

Gets instance from object

Parameters:

obj (Any) – UNO object.

Raises:

NotSupportedError – If obj is not supported.

Returns:

Page instance that represents obj style.

Return type:

Page

on_property_setting(source, event_args)[source]

Triggers for each property that is set

Parameters:
  • event_args (KeyValueCancelArgs) – Event Args

  • source (Any) –

default = <ooodev.format.calc.style.page.page.Page object>[source]
property prop_format_kind: FormatKind

Gets the kind of style

Return type:

FormatKind

property report: Page

Style Report

Return type:

Page