20 #include <svx/svxids.hrc>
26 #include <osl/diagnose.h>
28 #include <com/sun/star/awt/Rectangle.hpp>
29 #include <com/sun/star/frame/status/LeftRightMargin.hpp>
30 #include <com/sun/star/frame/status/UpperLowerMargin.hpp>
44 mlRight == static_cast<const SvxLongLRSpaceItem &>(rCmp).mlRight;
57 css::frame::status::LeftRightMargin aLeftRightMargin;
59 aLeftRightMargin.Right = bConvert ? convertTwipToMm100(
mlRight ) :
mlRight;
60 rVal <<= aLeftRightMargin;
71 OSL_FAIL(
"Wrong MemberId!");
90 css::frame::status::LeftRightMargin aLeftRightMargin;
91 if ( rVal >>= aLeftRightMargin )
94 mlRight = bConvert ? convertMm100ToTwip(aLeftRightMargin.Right) : aLeftRightMargin.Right;
98 else if ( rVal >>= nVal )
112 OSL_FAIL(
"Wrong MemberId!");
165 mlRight == static_cast<const SvxLongULSpaceItem&>(rCmp).mlRight;
178 css::frame::status::UpperLowerMargin aUpperLowerMargin;
180 aUpperLowerMargin.Lower = bConvert ? convertTwipToMm100(
mlRight ) :
mlRight;
181 rVal <<= aUpperLowerMargin;
191 default: OSL_FAIL(
"Wrong MemberId!");
return false;
207 if ( nMemberId == 0 )
209 css::frame::status::UpperLowerMargin aUpperLowerMargin;
210 if ( rVal >>= aUpperLowerMargin )
213 mlRight = bConvert ? convertMm100ToTwip( aUpperLowerMargin.Lower ) : aUpperLowerMargin.Lower;
217 else if ( rVal >>= nVal )
231 OSL_FAIL(
"Wrong MemberId!");
285 lWidth == static_cast<const SvxPagePosSizeItem &>(rCmp).lWidth &&
298 css::awt::Rectangle aPagePosSize;
299 aPagePosSize.X =
aPos.X();
300 aPagePosSize.Y =
aPos.Y();
301 aPagePosSize.Width =
lWidth;
303 rVal <<= aPagePosSize;
312 default: OSL_FAIL(
"Wrong MemberId!");
return false;
324 if ( nMemberId == 0 )
326 css::awt::Rectangle aPagePosSize;
327 if ( rVal >>= aPagePosSize )
329 aPos.setX( aPagePosSize.X );
330 aPos.setY( aPagePosSize.Y );
331 lWidth = aPagePosSize.Width;
338 else if ( rVal >>= nVal )
347 default: OSL_FAIL(
"Wrong MemberId!");
return false;
389 if(!SfxPoolItem::operator==(rCmp) ||
391 nLeft != static_cast<const SvxColumnItem&>(rCmp).
nLeft ||
392 nRight != static_cast<const SvxColumnItem&>(rCmp).
nRight ||
393 bTable != static_cast<const SvxColumnItem&>(rCmp).
bTable ||
394 Count() != static_cast<const SvxColumnItem&>(rCmp).
Count())
398 for(sal_uInt16
i = 0;
i < nCount;++
i)
420 nActColumn (nActCol),
448 for(sal_uInt16
i = 1;
i < nCount; ++
i) {
449 if( (*
this)[
i].GetWidth() != nColWidth)
480 OSL_FAIL(
"Wrong MemberId!");
505 bOrtho =
static_cast<bool>(nVal);
513 bTable =
static_cast<bool>(nVal);
516 OSL_FAIL(
"Wrong MemberId!");
625 nEndX == static_cast<const SvxObjectItem&>(rCmp).nEndX &&
627 nEndY == static_cast<const SvxObjectItem&>(rCmp).nEndY &&
677 OSL_FAIL(
"Wrong MemberId" );
697 bRet = (rVal >>=
nEndX);
700 bRet = (rVal >>=
nEndY);
705 default: OSL_FAIL(
"Wrong MemberId" );
void SetUpper(tools::Long lArgLeft)
void SetEndY(tools::Long lValue)
virtual bool operator==(const SfxPoolItem &) const =0
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
virtual bool operator==(const SfxPoolItem &) const override
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
void Append(const SvxColumnDescription &rDesc)
virtual bool operator==(const SfxPoolItem &) const override
void SetStartX(tools::Long lValue)
void SetLower(tools::Long lArgRight)
tools::Long GetWidth() const
virtual SvxObjectItem * Clone(SfxItemPool *pPool=nullptr) const override
void SetEndX(tools::Long lValue)
std::vector< SvxColumnDescription > aColumns
bool operator!=(const SvxColumnDescription &rCmp) const
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
virtual bool operator==(const SfxPoolItem &) const override
virtual SvxLongULSpaceItem * Clone(SfxItemPool *pPool=nullptr) const override
SvxColumnDescription & operator[](sal_uInt16 index)
void SetStartY(tools::Long lValue)
static SfxPoolItem * CreateDefault()
static SfxPoolItem * CreateDefault()
void SetRight(tools::Long lArgRight)
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
SvxColumnDescription(tools::Long start, tools::Long end, bool bVis)
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
#define DBG_ASSERT(sCon, aError)
SvxColumnDescription & At(sal_uInt16 index)
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
static SfxPoolItem * CreateDefault()
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
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
void SetRight(tools::Long aRight)
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
constexpr sal_Int64 convertTwipToMm100(sal_Int64 n)
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
void SetLeft(tools::Long aLeft)
virtual SvxLongLRSpaceItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
sal_uInt16 GetActColumn() const
static SfxPoolItem * CreateDefault()
virtual bool operator==(const SfxPoolItem &) const override
constexpr sal_Int64 convertMm100ToTwip(sal_Int64 n)
#define SAL_WARN(area, stream)
SvxColumnItem(sal_uInt16 nAct=0)
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
bool IsConsistent() const
SvxColumnDescription & GetActiveColumnDescription()
SvxObjectItem(tools::Long nStartX, tools::Long nEndX, tools::Long nStartY, tools::Long nEndY)
virtual bool operator==(const SfxPoolItem &) const override
void SetLeft(tools::Long lArgLeft)
virtual SvxPagePosSizeItem * Clone(SfxItemPool *pPool=nullptr) const override
static SfxPoolItem * CreateDefault()
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
virtual SvxColumnItem * Clone(SfxItemPool *pPool=nullptr) const override
bool operator==(const SvxColumnDescription &rCmp) const