ooodev.adapter.lang.localizable_partial module

class ooodev.adapter.lang.localizable_partial.LocalizablePartial(component, interface=com.sun.star.lang.XLocalizable)[source]

Bases: object

Partial class for XLocalizable.

Parameters:
  • component (XLocalizable) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.lang.XLocalizable)[source]

Constructor

Parameters:
  • component (XLocalizable) – UNO Component that implements com.sun.star.lang.XLocalizable interface.

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

Return type:

None

get_locale()[source]

returns the locale of the object.

Return type:

Locale

setLocale(value)[source]

Sets the locale to be used by this object.

Return type:

None

Parameters:

value (Locale) –

ooodev.adapter.lang.localizable_partial.get_builder(component)[source]

Get the builder for the component.

Parameters:

component (Any) – The component.

Returns:

Builder instance.

Return type:

DefaultBuilder