from __future__ import annotations
from typing import Any, Protocol, runtime_checkable
from com.sun.star.beans import XPropertySet
from com.sun.star.container import XEnumerationAccess
from com.sun.star.container import XIndexAccess
from com.sun.star.sheet import XSubTotalDescriptor

@runtime_checkable
class SubTotalDescriptor(XSubTotalDescriptor, XEnumerationAccess, XIndexAccess, XPropertySet, Protocol):
    InsertPageBreaks: bool
    IsCaseSensitive: bool
    EnableUserSortList: bool
    UserSortListIndex: int
    BindFormatsToContent: bool
    EnableSort: bool
    SortAscending: bool
    MaxFieldCount: int
