from __future__ import annotations
from typing import Any, Protocol, runtime_checkable
from com.sun.star.text import XDocumentIndex
from com.sun.star.util import XRefreshable

@runtime_checkable
class BaseIndex(XDocumentIndex, XRefreshable, Protocol):
    Title: str
    IsProtected: bool
    ParaStyleHeading: str
    ParaStyleLevel1: str
    ParaStyleLevel2: str
    ParaStyleLevel3: str
    ParaStyleLevel4: str
    ParaStyleLevel5: str
    ParaStyleLevel6: str
    ParaStyleLevel7: str
    ParaStyleLevel8: str
    ParaStyleLevel9: str
    ParaStyleLevel10: str
    ParaStyleSeparator: str
    TextColumns: XTextColumns
    BackGraphicURL: str
    BackGraphicFilter: str
    BackGraphicLocation: GraphicLocation
    BackColor: Color
    BackTransparent: bool
    LevelFormat: XIndexReplace
    CreateFromChapter: bool
    ContentSection: XTextSection
    HeaderSection: XTextSection
    BackGraphic: XGraphic
