Source code for ooodev.format.inner.direct.write.page.header.area.color

# region Import
from __future__ import annotations
from typing import Tuple
import uno
from ooodev.format.inner.kind.format_kind import FormatKind
from ooodev.format.inner.common.abstract.abstract_fill_color import AbstractColor
from ooodev.format.inner.common.props.fill_color_props import FillColorProps

# endregion Import


[docs]class Color(AbstractColor): """ Color of the header area. .. versionadded:: 0.9.2 """ def _supported_services(self) -> Tuple[str, ...]: try: return self._supported_services_values except AttributeError: self._supported_services_values = ( "com.sun.star.style.PageProperties", "com.sun.star.style.PageStyle", ) return self._supported_services_values @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.HEADER return self._format_kind_prop @property def _props(self) -> FillColorProps: try: return self._props_internal_attributes except AttributeError: self._props_internal_attributes = FillColorProps(color="HeaderFillColor", style="HeaderFillStyle") return self._props_internal_attributes