from __future__ import annotations
from typing import Any, Protocol, runtime_checkable
from com.sun.star.document import OfficeDocument
from com.sun.star.document import XActionLockable
from com.sun.star.document import XLinkTargetSupplier
from com.sun.star.drawing import XDrawPagesSupplier
from com.sun.star.frame import XModel
from com.sun.star.lang import XMultiServiceFactory
from com.sun.star.sheet import SpreadsheetDocumentSettings
from com.sun.star.sheet import XCalculatable
from com.sun.star.sheet import XConsolidatable
from com.sun.star.sheet import XDocumentAuditing
from com.sun.star.sheet import XGoalSeek
from com.sun.star.sheet import XSpreadsheetDocument
from com.sun.star.style import XStyleFamiliesSupplier
from com.sun.star.util import XNumberFormatsSupplier
from com.sun.star.util import XProtectable

@runtime_checkable
class SpreadsheetDocument(OfficeDocument, SpreadsheetDocumentSettings, XMultiServiceFactory, XModel, XActionLockable, XLinkTargetSupplier, XProtectable, XSpreadsheetDocument, XCalculatable, XDocumentAuditing, XConsolidatable, XGoalSeek, XDrawPagesSupplier, XStyleFamiliesSupplier, XNumberFormatsSupplier, Protocol):
    NamedRanges: XNamedRanges
    DatabaseRanges: XDatabaseRanges
    ColumnLabelRanges: XLabelRanges
    RowLabelRanges: XLabelRanges
    SheetLinks: XNameAccess
    AreaLinks: XAreaLinks
    DDELinks: XNameAccess
