summaryrefslogtreecommitdiff
path: root/include/svx/sxmuitm.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-03-01 14:17:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-03-03 06:44:41 +0000
commitf091259ad2ec1590714645839668580cd7b8c7c4 (patch)
tree3bf6b328637358365848bc98a18cbf82ccd4b2d0 /include/svx/sxmuitm.hxx
parentd0cc5fcd5bacd8e5e0fa7fe62a78907c2febb867 (diff)
convert SfxEnumItem to type-safe template class
and drop the SvxChartTextOrientItem class, unused. Change-Id: I99100837d1beb953450f57b2cda47d165df1620c Reviewed-on: https://gerrit.libreoffice.org/34747 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svx/sxmuitm.hxx')
-rw-r--r--include/svx/sxmuitm.hxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/svx/sxmuitm.hxx b/include/svx/sxmuitm.hxx
index 47102dc98f32..46052c3b7dfe 100644
--- a/include/svx/sxmuitm.hxx
+++ b/include/svx/sxmuitm.hxx
@@ -26,17 +26,16 @@
// specification of the unit if measurement. The numerical quantity value is converted in this unity.
// (based on the facts of the MapUnit of the model). This unity is displayed if necessary.
-class SVX_DLLPUBLIC SdrMeasureUnitItem: public SfxEnumItem {
+class SVX_DLLPUBLIC SdrMeasureUnitItem: public SfxEnumItem<FieldUnit> {
public:
- SdrMeasureUnitItem(FieldUnit eUnit=FUNIT_NONE): SfxEnumItem(SDRATTR_MEASUREUNIT,sal::static_int_cast< sal_uInt16 >(eUnit)) {}
+ SdrMeasureUnitItem(FieldUnit eUnit=FUNIT_NONE): SfxEnumItem(SDRATTR_MEASUREUNIT, eUnit) {}
SdrMeasureUnitItem(SvStream& rIn) : SfxEnumItem(SDRATTR_MEASUREUNIT,rIn) {}
virtual SfxPoolItem* Clone(SfxItemPool* pPool=nullptr) const override;
virtual SfxPoolItem* Create(SvStream& rIn, sal_uInt16 nVer) const override;
- virtual sal_uInt16 GetValueCount() const override; // { return 14; }
- FieldUnit GetValue() const { return (FieldUnit)SfxEnumItem::GetValue(); }
+ virtual sal_uInt16 GetValueCount() const override; // { return 14; }
- 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 QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
+ virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
virtual OUString GetValueTextByPos(sal_uInt16 nPos) const override;
virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString& rText, const IntlWrapper * = nullptr) const override;