20#include <com/sun/star/uno/Any.hxx>
25#include <libxml/xmlwriter.h>
32 SAL_WARN_IF(!SfxPoolItem::operator ==(rItem),
"svl.items",
"unequal type, with ID/pos " <<
Which() );
59 sal_Int32 nTheValue = 0;
61 if ( ::cppu::enum2int( nTheValue, rVal ) )
66 SAL_WARN(
"svl.items",
"SfxEnumItemInterface::PutValue(): Wrong type");
94 assert(SfxPoolItem::operator==(rItem));
110 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"SfxBoolItem"));
113 (void)xmlTextWriterEndElement(pWriter);
126 bool bTheValue = bool();
127 if (rVal >>= bTheValue)
132 SAL_WARN(
"svl.items",
"SfxBoolItem::PutValue(): Wrong type");
145 return bTheValue ? OUString(
"TRUE") : OUString(
"FALSE");
virtual bool operator==(const SfxPoolItem &rItem) const override
virtual OUString GetValueTextByVal(bool bTheValue) const
virtual bool GetPresentation(SfxItemPresentation, MapUnit, MapUnit, OUString &rText, const IntlWrapper &) const override
This virtual method allows to get a textual representation of the value for the SfxPoolItem subclasse...
virtual void dumpAsXml(xmlTextWriterPtr pWriter) const override
SfxBoolItem(sal_uInt16 const nWhich=0, bool const bValue=false)
static SfxPoolItem * CreateDefault()
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8) override
virtual SfxBoolItem * Clone(SfxItemPool *=nullptr) const override
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8=0) const override
virtual sal_uInt16 GetEnumValue() const =0
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8) override
virtual bool HasBoolValue() const
virtual bool operator==(const SfxPoolItem &rItem) const override
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8=0) const override
virtual void SetBoolValue(bool bValue)
virtual bool GetPresentation(SfxItemPresentation, MapUnit, MapUnit, OUString &rText, const IntlWrapper &) const override
This virtual method allows to get a textual representation of the value for the SfxPoolItem subclasse...
virtual void SetEnumValue(sal_uInt16 nValue)=0
virtual bool GetBoolValue() const
Base class for providers of defaults of SfxPoolItems.
virtual void dumpAsXml(xmlTextWriterPtr pWriter) const
struct _xmlTextWriter * xmlTextWriterPtr
#define SAL_WARN_IF(condition, area, stream)
#define SAL_WARN(area, stream)