ooodev.adapter.reflection.enum_type_description_partial module

class ooodev.adapter.reflection.enum_type_description_partial.EnumTypeDescriptionPartial(component, interface=com.sun.star.reflection.XEnumTypeDescription)[source]

Bases: TypeDescriptionPartial

Partial class for XEnumTypeDescription.

Parameters:
  • component (XEnumTypeDescription) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.reflection.XEnumTypeDescription)[source]

Constructor

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

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

Return type:

None

get_default_enum_value()[source]

Returns the default enum value.

Return type:

int

get_enum_names()[source]

Returns the enum member values.

Return type:

Tuple[str, ...]

get_enum_values()[source]

Returns the enum member names.

Return type:

Tuple[int, ...]