ooodev.adapter.text.text_table_comp module

class ooodev.adapter.text.text_table_comp.TextTableComp(component)[source]

Bases: TextContentComp, TextTablePropertiesPartial, TextTablePartial, CellRangePartial, AutoFormattablePartial, CellRangeDataPartial, ChartDataChangeEventEvents, NamedPartial

Class for managing TextTable Component.

Parameters:

component (XTextTable) –

__init__(component)[source]

Constructor

Parameters:

component (XTextTable) – UNO Component that support com.sun.star.text.TextTable service.

Return type:

None

get_cell_by_name(name)[source]

Returns the cell with the specified name.

The cell in the 4th column and third row has the name D3.

Parameters:

name (str) – The name of the cell.

Returns:

The cell with the specified name.

Return type:

CellComp

Note

In cells that are split, the naming convention is more complex. In this case the name is a concatenation of the former cell name (i.e. D3) and the number of the new column and row index inside of the original table cell separated by dots. This is done recursively.

For example, if the cell D3 is horizontally split, it now contains the cells D3.1.1 and D3.1.2.