20 #ifndef INCLUDED_SC_INC_PATATTR_HXX
21 #define INCLUDED_SC_INC_PATATTR_HXX
60 ScPatternAttr(std::unique_ptr<SfxItemSet>&& pItemSet,
const OUString& rStyleName);
74 {
return static_cast<const T&
>(
GetItem(sal_uInt16(nWhich))); }
78 {
return static_cast<const T&
>(
GetItem(sal_uInt16(nWhich), rItemSet, pCondSet)); }
82 {
return static_cast<const T&
>(
GetItem(sal_uInt16(nWhich), pCondSet)); }
85 bool HasItemsSet(
const sal_uInt16* pWhich )
const;
86 void ClearItems(
const sal_uInt16* pWhich );
100 const Color* pTextConfigColor =
nullptr );
109 const Color* pBackConfigColor =
nullptr,
110 const Color* pTextConfigColor =
nullptr )
const;
120 void GetFromEditItemSet(
const SfxItemSet* pEditSet );
122 void FillEditParaItems(
SfxItemSet* pSet )
const;
126 void SetStyleSheet(
ScStyleSheet* pNewStyle,
bool bClearDirectFormat =
true);
128 const OUString* GetStyleName()
const;
129 void UpdateStyleSheet(
const ScDocument& rDoc);
132 bool IsVisible()
const;
137 bool IsSymbolFont()
const;
146 void SetKey(sal_uInt64 nKey);
147 sal_uInt64 GetKey()
const;
150 void CalcHashCode()
const;
like DISPLAY, but ignore stored font and background colors
virtual bool operator==(const SfxPoolItem &) const override
const SfxItemSet & GetItemSet() const
like DISPLAY, but ignore stored background color (use configured color)
like DISPLAY, but ignore stored font color (assume COL_AUTO)
const SfxPoolItem & GetItem(sal_uInt16 nWhichP) const
static const T & GetItem(TypedWhichId< T > nWhich, const SfxItemSet &rItemSet, const SfxItemSet *pCondSet)
std::optional< size_t > mxHashCode
const ScStyleSheet * GetStyleSheet() const
virtual SfxSetItem * Clone(SfxItemPool *pPool=nullptr) const override=0
ScAutoFontColorMode
how to treat COL_AUTO in GetFont:
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
black or white, depending on background
std::optional< OUString > pName
from style settings, or black/white if needed
const T & GetItem(TypedWhichId< T > nWhich) const
const T & GetItem(TypedWhichId< T > nWhich, const SfxItemSet *pCondSet) const