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>
50 nMemberId &= ~CONVERT_TWIPS;
57 css::frame::status::LeftRightMargin aLeftRightMargin;
60 rVal <<= aLeftRightMargin;
71 OSL_FAIL(
"Wrong MemberId!");
85 nMemberId &= ~CONVERT_TWIPS;
90 css::frame::status::LeftRightMargin aLeftRightMargin;
91 if ( rVal >>= aLeftRightMargin )
98 else if ( rVal >>= nVal )
112 OSL_FAIL(
"Wrong MemberId!");
171 nMemberId &= ~CONVERT_TWIPS;
178 css::frame::status::UpperLowerMargin aUpperLowerMargin;
181 rVal <<= aUpperLowerMargin;
191 default: OSL_FAIL(
"Wrong MemberId!");
return false;
204 nMemberId &= ~CONVERT_TWIPS;
207 if ( nMemberId == 0 )
209 css::frame::status::UpperLowerMargin aUpperLowerMargin;
210 if ( rVal >>= aUpperLowerMargin )
217 else if ( rVal >>= nVal )
231 OSL_FAIL(
"Wrong MemberId!");
291 nMemberId &= ~CONVERT_TWIPS;
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;
321 nMemberId &= ~CONVERT_TWIPS;
324 if ( nMemberId == 0 )
326 css::awt::Rectangle aPagePosSize;
327 if ( rVal >>= aPagePosSize )
331 lWidth = aPagePosSize.Width;
338 else if ( rVal >>= nVal )
347 default: OSL_FAIL(
"Wrong MemberId!");
return false;
389 if(!SfxPoolItem::operator==(rCmp) ||
420 nActColumn (nActCol),
449 if( (*
this)[
i].GetWidth() != nColWidth)
458 nMemberId &= ~CONVERT_TWIPS;
463 SAL_INFO(
"svx",
"SvxColumnItem::QueryValue with nMemberId of 0");
492 nMemberId &= ~CONVERT_TWIPS;
508 bOrtho =
static_cast<bool>(nVal);
516 bTable =
static_cast<bool>(nVal);
519 OSL_FAIL(
"Wrong MemberId!");
661 nMemberId &= ~CONVERT_TWIPS;
680 OSL_FAIL(
"Wrong MemberId" );
689 nMemberId &= ~CONVERT_TWIPS;
700 bRet = (rVal >>=
nEndX);
703 bRet = (rVal >>=
nEndY);
708 default: OSL_FAIL(
"Wrong MemberId" );
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
virtual bool operator==(const SfxPoolItem &) const=0
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
void SetLeft(tools::Long aLeft)
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
SvxColumnDescription & operator[](sal_uInt16 index)
static SfxPoolItem * CreateDefault()
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
virtual SvxColumnItem * Clone(SfxItemPool *pPool=nullptr) const override
SvxColumnItem(sal_uInt16 nAct=0)
sal_uInt16 GetActColumn() const
virtual bool operator==(const SfxPoolItem &) const override
SvxColumnDescription & GetActiveColumnDescription()
void Append(const SvxColumnDescription &rDesc)
bool IsConsistent() const
std::vector< SvxColumnDescription > aColumns
void SetRight(tools::Long aRight)
SvxColumnDescription & At(sal_uInt16 index)
virtual SvxLongLRSpaceItem * Clone(SfxItemPool *pPool=nullptr) const override
void SetLeft(tools::Long lArgLeft)
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
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
void SetRight(tools::Long lArgRight)
static SfxPoolItem * CreateDefault()
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
void SetLower(tools::Long lArgRight)
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
virtual SvxLongULSpaceItem * Clone(SfxItemPool *pPool=nullptr) const override
static SfxPoolItem * CreateDefault()
virtual bool operator==(const SfxPoolItem &) const override
void SetUpper(tools::Long lArgLeft)
virtual SvxObjectItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
virtual bool operator==(const SfxPoolItem &) const override
SvxObjectItem(tools::Long nStartX, tools::Long nEndX, tools::Long nStartY, tools::Long nEndY)
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
void SetEndX(tools::Long lValue)
void SetStartX(tools::Long lValue)
void SetEndY(tools::Long lValue)
static SfxPoolItem * CreateDefault()
void SetStartY(tools::Long lValue)
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
virtual bool operator==(const SfxPoolItem &) const override
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
static SfxPoolItem * CreateDefault()
virtual SvxPagePosSizeItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
#define DBG_ASSERT(sCon, aError)
#define SAL_WARN(area, stream)
#define SAL_INFO(area, stream)
constexpr auto toTwips(N number, Length from)
SwNodeOffset min(const SwNodeOffset &a, const SwNodeOffset &b)
bool operator==(const SvxColumnDescription &rCmp) const
bool operator!=(const SvxColumnDescription &rCmp) const
tools::Long GetWidth() const
SvxColumnDescription(tools::Long start, tools::Long end, bool bVis)