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

@runtime_checkable
class XDictionary1(XNamed, Protocol):
    def getDictionaryType(self) -> DictionaryType: ...
    def setActive(self, bActivate: bool) -> None: ...
    def isActive(self) -> bool: ...
    def getCount(self) -> int: ...
    def getLanguage(self) -> int: ...
    def setLanguage(self, nLang: int) -> None: ...
    def getEntry(self, aWord: str) -> XDictionaryEntry: ...
    def addEntry(self, xDicEntry: XDictionaryEntry) -> bool: ...
    def add(self, aWord: str, bIsNegative: bool, aRplcText: str) -> bool: ...
    def remove(self, aWord: str) -> bool: ...
    def isFull(self) -> bool: ...
    def getEntries(self) -> list[XDictionaryEntry]: ...
    def clear(self) -> None: ...
    def addDictionaryEventListener(self, xListener: XDictionaryEventListener) -> bool: ...
    def removeDictionaryEventListener(self, xListener: XDictionaryEventListener) -> bool: ...
