20#ifndef INCLUDED_SVL_EITEM_HXX
21#define INCLUDED_SVL_EITEM_HXX
27template<
typename EnumT>
33 explicit SfxEnumItem(sal_uInt16
const nWhich, EnumT
const nValue)
46 assert(
GetRefCount() == 0 &&
"SfxEnumItem::SetValue(): Pooled item");
52 return static_cast<sal_uInt16
>(
GetValue());
57 SetValue(
static_cast<EnumT
>(nTheValue));
75 explicit SfxBoolItem(sal_uInt16
const nWhich = 0,
bool const bValue =
false)
82 void SetValue(
bool const bTheValue) { m_bValue = bTheValue; }
102 virtual OUString GetValueTextByVal(
bool bTheValue)
const;
SfxBoolItem(sal_uInt16 const nWhich=0, bool const bValue=false)
void SetValue(bool const bTheValue)
virtual bool operator==(const SfxPoolItem &rItem) const override
SfxEnumItem(const SfxEnumItem &)=default
SfxEnumItem(sal_uInt16 const nWhich, EnumT const nValue)
virtual sal_uInt16 GetEnumValue() const override
void SetValue(EnumT nTheValue)
virtual void SetEnumValue(sal_uInt16 nTheValue) override
virtual bool operator==(SfxPoolItem const &other) const override
Base class for providers of defaults of SfxPoolItems.
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const
virtual bool GetPresentation(SfxItemPresentation ePresentation, MapUnit eCoreMetric, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &rIntlWrapper) const
This virtual method allows to get a textual representation of the value for the SfxPoolItem subclasse...
sal_uInt32 GetRefCount() const
virtual void dumpAsXml(xmlTextWriterPtr pWriter) const
virtual bool operator==(const SfxPoolItem &) const =0
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId)
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const =0
virtual void SetValue(tools::Long nNew) override
struct _xmlTextWriter * xmlTextWriterPtr