ooodev.adapter.style.style_partial module

class ooodev.adapter.style.style_partial.StylePartial(component, interface=com.sun.star.style.XStyle)[source]

Bases: NamedPartial

Partial Class for XStyle.

Parameters:
  • component (XStyle) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.style.XStyle)[source]

Constructor

Parameters:
  • component (XStyle) – UNO Component that implements com.sun.star.container.XStyle.

  • interface (UnoInterface, optional) – The interface to be validated. Defaults to XStyle.

Return type:

None

get_parent_style()[source]

Returns the name of the parent style.

Return type:

str

is_in_use()[source]

Returns True if this style is in use.

Return type:

bool

is_user_defined()[source]

Returns True if this style is user defined.

Return type:

bool

set_parent_style(parent_style)[source]

Sets the name of the parent style.

Parameters:

parent_style (str) – The name of the parent style.

Return type:

None