22#include <com/sun/star/uno/Any.hxx>
23#include <com/sun/star/awt/Rectangle.hpp>
24#include <osl/diagnose.h>
54 rText = OUString::number(
maVal.
Top()) +
", " +
64 assert(SfxPoolItem::operator==(rItem));
76 nMemberId &= ~CONVERT_TWIPS;
81 rVal <<= css::awt::Rectangle(
maVal.
Left(),
91 default: OSL_FAIL(
"Wrong MemberID!");
return false;
102 nMemberId &= ~CONVERT_TWIPS;
103 css::awt::Rectangle aValue;
106 bRet = (rVal >>= aValue);
108 bRet = (rVal >>= nVal);
124 default: OSL_FAIL(
"Wrong MemberID!");
return false;
Base class for providers of defaults of SfxPoolItems.
virtual bool operator==(const SfxPoolItem &) const override
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
static SfxPoolItem * CreateDefault()
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
This virtual method allows to get a textual representation of the value for the SfxPoolItem subclasse...
virtual SfxRectangleItem * Clone(SfxItemPool *pPool=nullptr) const override