22#include <com/sun/star/uno/Any.hxx>
23#include <osl/diagnose.h>
26#include <libxml/xmlwriter.h>
27#include <boost/property_tree/ptree.hpp>
45 assert(SfxPoolItem::operator==(rItem));
80 sal_Int16
nValue = sal_Int16();
87 OSL_FAIL(
"SfxInt16Item::PutValue - Wrong type!" );
103 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"SfxUInt16Item"));
104 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"whichId"), BAD_CAST(OString::number(
Which()).getStr()));
105 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"), BAD_CAST(OString::number(
GetValue()).getStr()));
106 (void)xmlTextWriterEndElement(pWriter);
126 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"SfxInt32Item"));
127 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"whichId"), BAD_CAST(OString::number(
Which()).getStr()));
128 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"), BAD_CAST(OString::number(
GetValue()).getStr()));
129 (void)xmlTextWriterEndElement(pWriter);
149 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"SfxUInt32Item"));
150 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"whichId"), BAD_CAST(OString::number(
Which()).getStr()));
151 (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST(
"value"), BAD_CAST(OString::number(
GetValue()).getStr()));
152 (void)xmlTextWriterEndElement(pWriter);
172 aTheValue += nDiv / 2;
sal_Int32 GetValue() const
void SetValue(sal_Int32 nTheValue)
sal_uInt16 GetValue() const
sal_uInt32 GetValue() const
static SfxPoolItem * CreateDefault()
SfxByteItem(sal_uInt16 which=0, sal_uInt8 nValue=0)
static SfxPoolItem * CreateDefault()
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 boost::property_tree::ptree dumpAsJSON() const override
virtual SfxInt16Item * Clone(SfxItemPool *=nullptr) const override
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
sal_Int16 GetValue() const
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
SfxInt16Item(sal_uInt16 which=0, sal_Int16 nTheValue=0)
virtual bool operator==(const SfxPoolItem &rItem) const override
static SfxPoolItem * CreateDefault()
void dumpAsXml(xmlTextWriterPtr pWriter) const override
SfxInt32Item(sal_uInt16 which=0, sal_Int32 nValue=0)
virtual boost::property_tree::ptree dumpAsJSON() const override
Base class for providers of defaults of SfxPoolItems.
virtual void ScaleMetrics(tools::Long lMult, tools::Long lDiv) override
virtual bool HasMetrics() const override
SfxMetricItem(sal_uInt16 nWhich, sal_Int32 nValue)
virtual boost::property_tree::ptree dumpAsJSON() const
static SfxPoolItem * CreateDefault()
SfxUInt16Item(sal_uInt16 which=0, sal_uInt16 nValue=0)
virtual boost::property_tree::ptree dumpAsJSON() const override
void dumpAsXml(xmlTextWriterPtr pWriter) const override
virtual boost::property_tree::ptree dumpAsJSON() const override
static SfxPoolItem * CreateDefault()
void dumpAsXml(xmlTextWriterPtr pWriter) const override
SfxUInt32Item(sal_uInt16 which=0, sal_uInt32 nValue=0)
struct _xmlTextWriter * xmlTextWriterPtr