from __future__ import annotations
from typing import Any, Protocol, runtime_checkable
from com.sun.star.uno import XInterface

@runtime_checkable
class XSheetOutline(XInterface, Protocol):
    def group(self, aRange: CellRangeAddress, nOrientation: TableOrientation) -> None: ...
    def ungroup(self, aRange: CellRangeAddress, nOrientation: TableOrientation) -> None: ...
    def autoOutline(self, aRange: CellRangeAddress) -> None: ...
    def clearOutline(self) -> None: ...
    def hideDetail(self, aRange: CellRangeAddress) -> None: ...
    def showDetail(self, aRange: CellRangeAddress) -> None: ...
    def showLevel(self, nLevel: int, nOrientation: TableOrientation) -> None: ...
