diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-08-15 23:26:58 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-08-16 11:23:36 +0200 |
commit | c8e327092a8419636ae447b3b82052e6aeb724a0 (patch) | |
tree | a5224d9f4b2b5f7cc8ea0b9c44435976083cea93 /include/svl/eitem.hxx | |
parent | 69f686774cfeb803fdd63ed1ef07ff70550930de (diff) |
SfxEnumItem: cut out the middle man here too
CntEnumItem, we hardly knew you existed.
Change-Id: I54b489f22662f9a3305478d18438b13850444316
Diffstat (limited to 'include/svl/eitem.hxx')
-rw-r--r-- | include/svl/eitem.hxx | 31 |
1 files changed, 26 insertions, 5 deletions
diff --git a/include/svl/eitem.hxx b/include/svl/eitem.hxx index e035c618f0c5..65938e2c21e7 100644 --- a/include/svl/eitem.hxx +++ b/include/svl/eitem.hxx @@ -24,18 +24,39 @@ #include <svl/cenumitm.hxx> //============================================================================ -class SVL_DLLPUBLIC SfxEnumItem: public CntEnumItem + +class SVL_DLLPUBLIC SfxEnumItem + : public SfxEnumItemInterface { + sal_uInt16 m_nValue; + protected: - explicit SfxEnumItem(sal_uInt16 which = 0, sal_uInt16 nValue = 0): - CntEnumItem(which, nValue) {} + explicit SfxEnumItem(sal_uInt16 const nWhich =0, sal_uInt16 const nValue =0) + : SfxEnumItemInterface(nWhich) + , m_nValue(nValue) + { } - SfxEnumItem(sal_uInt16 which, SvStream & rStream): - CntEnumItem(which, rStream) {} + SfxEnumItem(const SfxEnumItem & rItem) + : SfxEnumItemInterface(rItem) + , m_nValue(rItem.m_nValue) + { } + + SfxEnumItem(sal_uInt16 const nWhich, SvStream & rStream); public: TYPEINFO(); + sal_uInt16 GetValue() const { return m_nValue; } + + void SetValue(sal_uInt16 nTheValue); + + // SfxPoolItem + virtual SvStream & Store(SvStream & rStream, sal_uInt16) const SAL_OVERRIDE; + + virtual sal_uInt16 GetEnumValue() const SAL_OVERRIDE; + + virtual void SetEnumValue(sal_uInt16 nTheValue) SAL_OVERRIDE; + }; //============================================================================ |