from __future__ import annotations
from typing import Any, Protocol, runtime_checkable
from com.sun.star.beans import XPropertySet
from com.sun.star.container import XNamed

@runtime_checkable
class DataPilotField(XNamed, XPropertySet, XDataPilotField, XDataPilotFieldGrouping, Protocol):
    Orientation: DataPilotFieldOrientation
    Function: GeneralFunction
    Subtotals: list[GeneralFunction]
    SelectedPage: str
    UseSelectedPage: bool
    UsedHierarchy: str
    HasSortInfo: bool
    SortInfo: DataPilotFieldSortInfo
    HasLayoutInfo: bool
    LayoutInfo: DataPilotFieldLayoutInfo
    HasAutoShowInfo: bool
    AutoShowInfo: DataPilotFieldAutoShowInfo
    HasReference: bool
    Reference: DataPilotFieldReference
    IsGroupField: bool
    GroupInfo: DataPilotFieldGroupInfo
    ShowEmpty: bool
    Function2: int
    Subtotals2: list[int]
