Source code for ooodev.format.inner.modify.write.para.para_style_base_multi

# region Imports
from __future__ import annotations
from typing import Any, Tuple

from ooodev.utils import info as mInfo
from ooodev.loader import lo as mLo
from ooodev.format.inner.style_base import StyleModifyMulti

# endregion Imports


[docs]class ParaStyleBaseMulti(StyleModifyMulti): """ Para Style Base Multi .. versionadded:: 0.9.0 """ def _supported_services(self) -> Tuple[str, ...]: try: return self._supported_services_values except AttributeError: self._supported_services_values = ( "com.sun.star.style.ParagraphProperties", "com.sun.star.style.ParagraphStyle", ) return self._supported_services_values def _is_valid_doc(self, obj: Any) -> bool: return mInfo.Info.is_doc_type(obj, mLo.Lo.Service.WRITER)