Source code for

from __future__ import annotations
import uno
from ooodev.format.inner.common.props.transparent_transparency_props import TransparentTransparencyProps
from ooodev.format.inner.kind.format_kind import FormatKind
from import Transparency as HeaderTransparency
from import WriterStylePageKind
from ooodev.utils.data_type.intensity import Intensity

[docs]class Transparency(HeaderTransparency): """ Footer Transparent Transparency .. seealso:: - :ref:`help_writer_format_modify_page_footer_transparency` .. versionadded:: 0.9.0 """
[docs] def __init__( self, *, value: Intensity | int = 0, style_name: WriterStylePageKind | str = WriterStylePageKind.STANDARD, style_family: str = "PageStyles", ) -> None: """ Constructor Args: value (Intensity, int, optional): Specifies the transparency value from ``0`` to ``100``. style_name (WriterStylePageKind, str, optional): Specifies the Page Style that instance applies to. Default is Default Page Style. style_family (str, optional): Style family. Default ``PageStyles``. Returns: None: See Also: - :ref:`help_writer_format_modify_page_footer_transparency` """ super().__init__(value=value, style_name=style_name, style_family=style_family)
# region Internal Methods def _get_inner_props(self) -> TransparentTransparencyProps: return TransparentTransparencyProps(transparence="FooterFillTransparence") # endregion Internal Methods # region properties @property def prop_format_kind(self) -> FormatKind: """Gets the kind of style""" try: return self._format_kind_prop except AttributeError: self._format_kind_prop = FormatKind.DOC | FormatKind.STYLE | FormatKind.FOOTER return self._format_kind_prop
# endregion properties