ooodev.adapter.text.text_columns_partial module

class ooodev.adapter.text.text_columns_partial.TextColumnsPartial(component, interface=com.sun.star.text.XTextColumns)[source]

Bases: object

Partial class for XTextColumns.

Parameters:
  • component (XTextColumns) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.text.XTextColumns)[source]

Constructor

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

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

Return type:

None

get_column_count()[source]

Gets the number of columns.

Return type:

int

get_columns()[source]

returns the column description of the object.

Return type:

Tuple[TextColumn, ...]

get_reference_value()[source]

Gets the sum of values, the width values are relative.

Returns:

The sum of all values.

Return type:

int

set_column_count(columns)[source]

Sets the number of columns.

The minimum is 1 column.

Return type:

None

Parameters:

columns (int) –

set_columns(*columns)[source]

Sets the descriptors of all columns.

The number of members in the sequence must be the same as the number of columns of the object.

Return type:

None

Parameters:

columns (com.sun.star.text.TextColumn) –