from __future__ import annotations
from typing import Any, Protocol, runtime_checkable
from com.sun.star.beans import XPropertySet
from com.sun.star.beans import XPropertyState
from com.sun.star.container import XNamed
from com.sun.star.text import TextContent
from com.sun.star.text import XTextSection
from com.sun.star.xml import UserDefinedAttributesSupplier

@runtime_checkable
class TextSection(TextContent, UserDefinedAttributesSupplier, XTextSection, XNamed, XPropertySet, XPropertyState, Protocol):
    Condition: str
    IsVisible: bool
    IsProtected: bool
    FileLink: SectionFileLink
    LinkRegion: str
    DDECommandType: str
    DDECommandFile: str
    DDECommandElement: str
    BackGraphicURL: str
    BackGraphicFilter: str
    BackGraphicLocation: GraphicLocation
    FootnoteIsCollectAtTextEnd: bool
    FootnoteIsRestartNumbering: bool
    FootnoteRestartNumberingAt: int
    FootnoteIsOwnNumbering: bool
    FootnoteNumberingType: int
    FootnoteNumberingPrefix: str
    FootnoteNumberingSuffix: str
    EndnoteIsCollectAtTextEnd: bool
    EndnoteIsRestartNumbering: bool
    EndnoteRestartNumberingAt: int
    EndnoteIsOwnNumbering: bool
    EndnoteNumberingType: int
    EndnoteNumberingPrefix: str
    EndnoteNumberingSuffix: str
    IsAutomaticUpdate: bool
    TextColumns: XTextColumns
    SectionLeftMargin: int
    SectionRightMargin: int
    BackGraphic: XGraphic
