diff options
Diffstat (limited to 'include/editeng/adjustitem.hxx')
-rw-r--r-- | include/editeng/adjustitem.hxx | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/include/editeng/adjustitem.hxx b/include/editeng/adjustitem.hxx index 2918bb915d7b..a06b177dd719 100644 --- a/include/editeng/adjustitem.hxx +++ b/include/editeng/adjustitem.hxx @@ -65,9 +65,6 @@ public: virtual sal_uInt16 GetEnumValue() const override; virtual void SetEnumValue( sal_uInt16 nNewVal ) override; virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; - virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const override; - virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion ) const override; - virtual sal_uInt16 GetVersion( sal_uInt16 nFileVersion ) const override; void SetOneWord( const SvxAdjust eType ) { @@ -120,6 +117,25 @@ public: eRet = SvxAdjust::Block; return eRet; } + + sal_Int8 GetAsFlags() const + { + sal_Int8 nFlags = 0; + if ( bOneBlock ) + nFlags |= 0x0001; + if ( bLastCenter ) + nFlags |= 0x0002; + if ( bLastBlock ) + nFlags |= 0x0004; + return nFlags; + } + + void SetAsFlags(sal_Int8 nFlags) + { + bOneBlock = 0 != (nFlags & 0x0001); + bLastCenter = 0 != (nFlags & 0x0002); + bLastBlock = 0 != (nFlags & 0x0004); + } }; #endif |