33namespace model {
class ComplexColor; }
70 virtual bool HasLookup()
const override {
return true; }
71 virtual lookup_iterator
Lookup(lookup_iterator begin, lookup_iterator end )
const override;
76 {
return static_cast<const T&
>(
GetItem(sal_uInt16(nWhich))); }
80 {
return static_cast<const T&
>(
GetItem(sal_uInt16(nWhich), rItemSet, pCondSet)); }
84 {
return static_cast<const T&
>(
GetItem(sal_uInt16(nWhich), pCondSet)); }
87 bool HasItemsSet(
const sal_uInt16* pWhich )
const;
88 void ClearItems(
const sal_uInt16* pWhich );
108 const Color* pTextConfigColor =
nullptr);
114 const Color* pBackConfigColor =
nullptr,
115 const Color* pTextConfigColor =
nullptr);
123 const Color* pBackConfigColor =
nullptr,
124 const Color* pTextConfigColor =
nullptr)
const
126 fillColor(rComplexColor,
GetItemSet(), eAutoMode, pCondSet, pBackConfigColor, pTextConfigColor);
135 fillFontOnly(rFont,
GetItemSet(), pOutDev, pScale, pCondSet, nScript);
144 const Color* pBackConfigColor =
nullptr,
145 const Color* pTextConfigColor =
nullptr)
const
147 fillFont(rFont,
GetItemSet(), eAutoMode, pOutDev, pScale, pCondSet, nScript, pBackConfigColor, pTextConfigColor);
158 void GetFromEditItemSet(
const SfxItemSet* pEditSet );
160 void FillEditParaItems(
SfxItemSet* pSet )
const;
164 void SetStyleSheet(
ScStyleSheet* pNewStyle,
bool bClearDirectFormat =
true);
166 const OUString* GetStyleName()
const;
167 void UpdateStyleSheet(
const ScDocument& rDoc);
170 bool IsVisible()
const;
175 bool IsSymbolFont()
const;
184 void SetKey(sal_uInt64 nKey);
185 sal_uInt64 GetKey()
const;
187 static std::optional<bool> FastEqualPatternSets(
const SfxItemSet& rSet1,
const SfxItemSet& rSet2 );
196 void CalcHashCode()
const;
197 bool CalcVisible()
const;
const T & GetItem(TypedWhichId< T > nWhich, const SfxItemSet *pCondSet) const
std::optional< sal_uInt32 > mxHashCode
void fillFont(vcl::Font &rFont, ScAutoFontColorMode eAutoMode, const OutputDevice *pOutDev=nullptr, const Fraction *pScale=nullptr, const SfxItemSet *pCondSet=nullptr, SvtScriptType nScript=SvtScriptType::NONE, const Color *pBackConfigColor=nullptr, const Color *pTextConfigColor=nullptr) const
Fills a font object from the own item set.
std::optional< OUString > pName
const ScStyleSheet * GetStyleSheet() const
virtual bool HasLookup() const override
const T & GetItem(TypedWhichId< T > nWhich) const
void fillColor(model::ComplexColor &rComplexColor, ScAutoFontColorMode eAutoMode, const SfxItemSet *pCondSet=nullptr, const Color *pBackConfigColor=nullptr, const Color *pTextConfigColor=nullptr) const
void fillFontOnly(vcl::Font &rFont, const OutputDevice *pOutDev=nullptr, const Fraction *pScale=nullptr, const SfxItemSet *pCondSet=nullptr, SvtScriptType nScript=SvtScriptType::NONE) const
SfxItemSet & GetItemSet()
const SfxPoolItem & GetItem(sal_uInt16 nWhichP) const
std::optional< bool > mxVisible
static const T & GetItem(TypedWhichId< T > nWhich, const SfxItemSet &rItemSet, const SfxItemSet *pCondSet)
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
virtual lookup_iterator Lookup(lookup_iterator, lookup_iterator end) const
virtual bool operator==(const SfxPoolItem &) const override
const SfxItemSet & GetItemSet() const
virtual SfxSetItem * Clone(SfxItemPool *pPool=nullptr) const override=0
ScAutoFontColorMode
how to treat COL_AUTO in GetFont:
@ Print
black or white, depending on background
@ IgnoreAll
like DISPLAY, but ignore stored font and background colors
@ Raw
COL_AUTO is returned.
@ IgnoreBack
like DISPLAY, but ignore stored background color (use configured color)
@ IgnoreFont
like DISPLAY, but ignore stored font color (assume COL_AUTO)