22#include <com/sun/star/uno/Any.hxx>
23#include <com/sun/star/awt/Point.hpp>
24#include <osl/diagnose.h>
58 rText = OUString::number(
aVal.
X()) +
", " + OUString::number(
aVal.
Y()) +
", ";
65 assert(SfxPoolItem::operator==(rItem));
84 nMemberId &= ~CONVERT_TWIPS;
87 case 0: rVal <<= aTmp;
break;
88 case MID_X: rVal <<= aTmp.X;
break;
89 case MID_Y: rVal <<= aTmp.Y;
break;
90 default: OSL_FAIL(
"Wrong MemberId!");
return true;
101 nMemberId &= ~CONVERT_TWIPS;
107 bRet = ( rVal >>= aValue );
116 bRet = ( rVal >>= nVal );
128 default: OSL_FAIL(
"Wrong MemberId!");
return false;
constexpr auto convertTwipToMm100(N n)
constexpr tools::Long Y() const
void setX(tools::Long nX)
void setY(tools::Long nY)
constexpr tools::Long X() const
Base class for providers of defaults of SfxPoolItems.
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
virtual bool operator==(const SfxPoolItem &) const override
virtual SfxPointItem * Clone(SfxItemPool *pPool=nullptr) const override
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...
static SfxPoolItem * CreateDefault()
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
constexpr auto toTwips(N number, Length from)