from __future__ import annotations
from typing import Any, Protocol, runtime_checkable
from com.sun.star.beans import XPropertySet
from com.sun.star.document import OfficeDocument
from com.sun.star.lang import XMultiServiceFactory
from com.sun.star.style import XStyleFamiliesSupplier
from com.sun.star.text import XBookmarksSupplier
from com.sun.star.text import XChapterNumberingSupplier
from com.sun.star.text import XContentControlsSupplier
from com.sun.star.text import XDocumentIndexesSupplier
from com.sun.star.text import XEndnotesSupplier
from com.sun.star.text import XFootnotesSupplier
from com.sun.star.text import XPagePrintable
from com.sun.star.text import XReferenceMarksSupplier
from com.sun.star.text import XTextDocument
from com.sun.star.text import XTextEmbeddedObjectsSupplier
from com.sun.star.text import XTextFieldsSupplier
from com.sun.star.text import XTextFramesSupplier
from com.sun.star.text import XTextGraphicObjectsSupplier
from com.sun.star.text import XTextSectionsSupplier
from com.sun.star.text import XTextTablesSupplier
from com.sun.star.util import XNumberFormatsSupplier
from com.sun.star.util import XRefreshable
from com.sun.star.util import XReplaceable
from com.sun.star.util import XSearchable

@runtime_checkable
class GenericTextDocument(OfficeDocument, XMultiServiceFactory, XTextDocument, XSearchable, XRefreshable, XFootnotesSupplier, XEndnotesSupplier, XContentControlsSupplier, XReplaceable, XPagePrintable, XReferenceMarksSupplier, XChapterNumberingSupplier, XPropertySet, XTextGraphicObjectsSupplier, XTextEmbeddedObjectsSupplier, XTextTablesSupplier, XStyleFamiliesSupplier, XBookmarksSupplier, XDocumentIndexesSupplier, XTextFieldsSupplier, XTextFramesSupplier, XTextSectionsSupplier, XNumberFormatsSupplier, Protocol):
    CharLocale: Locale
    CharacterCount: int
    ParagraphCount: int
    WordCount: int
    WordSeparator: str
    IndexAutoMarkFileURL: str
    RecordChanges: bool
    TwoDigitYear: int
