20 #include <com/sun/star/drawing/ColorMode.hpp>
25 #include <osl/diagnose.h>
52 return bEnum != bToggle;
81 OSL_ENSURE(
false,
"unknown MemberId" );
91 bool bVal = *o3tl::doAccess<bool>(rVal);
108 bool bToggle = bOnOddPages != bOnEvenPages;
130 OSL_ENSURE(
false,
"unknown MemberId" );
154 DBG_ASSERT(
false,
"SwRotationGrf: Value is in 10th degree and *has* to be in [0 .. 3600[ (!)");
157 else if (nValue.
get() >= 3600)
160 DBG_ASSERT(
false,
"SwRotationGrf: Value is in 10th degree and *has* to be in [0 .. 3600[ (!)");
170 m_aUnrotatedSize( rSz )
189 rVal <<= static_cast<sal_Int16>(
GetValue());
206 OSL_FAIL(
"SwRotationGrf::PutValue - Wrong type!" );
279 SAL_WARN(
"sw",
"Put/QueryValue should be removed!");
281 OSL_ENSURE( 0 <= nRet && nRet <= 100,
"value out of range" );
291 SAL_WARN(
"sw",
"Put/QueryValue should be removed!");
293 if(!(rVal >>= nVal) || nVal < -100 || nVal > 100)
299 nVal = ( ( nVal * 128 ) - (99/2) ) / 100;
302 OSL_ENSURE( 0 <= nVal && nVal <= 100,
"value out of range" );
303 SetValue(static_cast<sal_uInt8>(nVal));
318 return sal_uInt16(GraphicDrawMode::Watermark) + 1;
324 drawing::ColorMode eRet =
static_cast<drawing::ColorMode
>(
GetEnumValue());
333 if(eVal >= 0 && eVal <= sal_uInt16(GraphicDrawMode::Watermark))
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
constexpr TypedWhichId< SwCropGrf > RES_GRFATR_CROPGRF(132)
virtual sal_uInt16 GetValueCount() const override
virtual bool operator==(const SfxPoolItem &) const override
virtual SwInvertGrf * Clone(SfxItemPool *pPool=nullptr) const override
const double & GetValue() const
SwChannelGGrf(sal_Int16 nVal=0)
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
virtual bool operator==(const SfxPoolItem &) const =0
void SetGrfToggle(bool bNew)
constexpr TypedWhichId< SwRotationGrf > RES_GRFATR_ROTATION(133)
virtual SwChannelBGrf * Clone(SfxItemPool *pPool=nullptr) const override
virtual SwGammaGrf * Clone(SfxItemPool *pPool=nullptr) const override
SwChannelBGrf(sal_Int16 nVal=0)
virtual void SetEnumValue(sal_uInt16 nTheValue) override
virtual sal_uInt16 GetValueCount() const override
virtual SwRotationGrf * Clone(SfxItemPool *pPool=nullptr) const override
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
const Size & GetUnrotatedSize() const
SwContrastGrf(sal_Int16 nVal=0)
virtual SwChannelGGrf * Clone(SfxItemPool *pPool=nullptr) const override
virtual bool operator==(SfxPoolItem const &other) const override
SwLuminanceGrf(sal_Int16 nVal=0)
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 PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
static bool lcl_IsHoriOnOddPages(MirrorGraph nEnum)
virtual bool operator==(const SfxPoolItem &) const override
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
#define MID_MIRROR_HORZ_ODD_PAGES
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
virtual SwLuminanceGrf * Clone(SfxItemPool *pPool=nullptr) const override
virtual SwDrawModeGrf * Clone(SfxItemPool *pPool=nullptr) const override
virtual SwContrastGrf * Clone(SfxItemPool *pPool=nullptr) const override
SwDrawModeGrf(GraphicDrawMode nMode=GraphicDrawMode::Standard)
UNDERLYING_TYPE get() const
#define DBG_ASSERT(sCon, aError)
void SetValue(EnumT nTheValue)
virtual SwTransparencyGrf * Clone(SfxItemPool *pPool=nullptr) const override
virtual bool operator==(const SfxPoolItem &) const override
virtual SwChannelRGrf * Clone(SfxItemPool *pPool=nullptr) const override
SwTransparencyGrf(sal_Int8 nVal=0)
Degree10 GetValue() const
virtual SwCropGrf * Clone(SfxItemPool *pPool=nullptr) const override
#define MID_MIRROR_HORZ_EVEN_PAGES
static bool lcl_IsHoriOnEvenPages(MirrorGraph nEnum, bool bToggle)
virtual bool operator==(const SfxPoolItem &rItem) const override
SwInvertGrf(bool bVal=false)
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
virtual SwMirrorGrf * Clone(SfxItemPool *pPool=nullptr) const override
#define SAL_WARN(area, stream)
sal_uInt8 GetValue() const
void SetValue(sal_uInt8 nTheValue)
SwMirrorGrf(MirrorGraph eMiro=MirrorGraph::Dont)
void SetValue(Degree10 d)
static Degree10 checkAndCorrectValue(Degree10 nValue)
SwChannelRGrf(sal_Int16 nVal=0)
sal_Int32 GetEnumAsInt32(const css::uno::Any &rVal)
virtual sal_uInt16 GetEnumValue() const override
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override