Source code for ooodev.adapter.text.text_document_comp

from __future__ import annotations
from typing import cast, TYPE_CHECKING
from ooodev.adapter.text.generic_text_document_comp import GenericTextDocumentComp

    from import TextDocument  # service

[docs]class TextDocumentComp(GenericTextDocumentComp): """ Class for managing Sheet Cell Cursor Component. """ # pylint: disable=unused-argument
[docs] def __init__(self, component: TextDocument) -> None: """ Constructor Args: component (TextDocument): UNO Sheet Cell Cursor Component """ super().__init__(component)
# region Overrides def _ComponentBase__get_supported_service_names(self) -> tuple[str, ...]: """Returns a tuple of supported service names.""" return ("",) # endregion Overrides # region Properties @property def component(self) -> TextDocument: """TextDocument Component""" # override to satisfy documentation and type return cast("TextDocument", super().component)
# return cast("TextDocument", self._ComponentBase__get_component()) # type: ignore # endregion Properties