from __future__ import annotations
from typing import Any, Protocol, runtime_checkable
from com.sun.star.text import XTextContent

@runtime_checkable
class XTextTable(XTextContent, Protocol):
    def initialize(self, nRows: int, nColumns: int) -> None: ...
    def getRows(self) -> XTableRows: ...
    def getColumns(self) -> XTableColumns: ...
    def getCellByName(self, aCellName: str) -> XCell: ...
    def getCellNames(self) -> list[str]: ...
    def createCursorByCellName(self, aCellName: str) -> XTextTableCursor: ...
