22#include <com/sun/star/text/GraphicCrop.hpp>
30 nLeft( 0 ), nRight( 0 ), nTop( 0 ), nBottom( 0 )
36 nLeft( nL ), nRight( nR ), nTop( nT ), nBottom( nB )
45 assert(SfxPoolItem::operator==(rAttr));
58 text::GraphicCrop aRet;
80 text::GraphicCrop aVal;
106 case SfxItemPresentation::Nameless:
108 case SfxItemPresentation::Complete:
109 rText =
"L: " + ::GetMetricText(
GetLeft(), eCoreUnit, MapUnit::MapMM, &rIntl ) +
110 " R: " + ::GetMetricText(
GetRight(), eCoreUnit, MapUnit::MapMM, &rIntl ) +
111 " T: " + ::GetMetricText(
GetTop(), eCoreUnit, MapUnit::MapMM, &rIntl ) +
112 " B: " + ::GetMetricText(
GetBottom(), eCoreUnit, MapUnit::MapMM, &rIntl );
constexpr auto convertTwipToMm100(N n)
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &rIntl) const override
sal_Int32 GetRight() const
SvxGrfCrop(TypedWhichId< SvxGrfCrop >)
sal_Int32 GetLeft() const
sal_Int32 GetBottom() const
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 operator==(const SfxPoolItem &) const override
virtual ~SvxGrfCrop() override
constexpr auto toTwips(N number, Length from)