summaryrefslogtreecommitdiff
path: root/include/svx/xlinjoit.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/xlinjoit.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/xlinjoit.hxx')
-rw-r--r--include/svx/xlinjoit.hxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/svx/xlinjoit.hxx b/include/svx/xlinjoit.hxx
index 131c9774faff..b9ac6f78f2b2 100644
--- a/include/svx/xlinjoit.hxx
+++ b/include/svx/xlinjoit.hxx
@@ -29,14 +29,14 @@
// class XLineJointItem
-class SVX_DLLPUBLIC XLineJointItem : public SfxEnumItem
+class SVX_DLLPUBLIC XLineJointItem : public SfxEnumItem<css::drawing::LineJoint>
{
public:
static SfxPoolItem* CreateDefault();
XLineJointItem( css::drawing::LineJoint eLineJoint = css::drawing::LineJoint_ROUND );
XLineJointItem( SvStream& rIn );
- virtual sal_uInt16 GetVersion( sal_uInt16 nFileFormatVersion ) const override;
+ virtual sal_uInt16 GetVersion( sal_uInt16 nFileFormatVersion ) const override;
virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override;
virtual SfxPoolItem* Create( SvStream& rIn, sal_uInt16 nVer ) const override;
@@ -46,8 +46,7 @@ public:
MapUnit eCoreMetric, MapUnit ePresMetric,
OUString &rText, const IntlWrapper * = nullptr ) const override;
- virtual sal_uInt16 GetValueCount() const override;
- css::drawing::LineJoint GetValue() const { return (css::drawing::LineJoint) SfxEnumItem::GetValue(); }
+ virtual sal_uInt16 GetValueCount() const override;
};
#endif // INCLUDED_SVX_XLINJOIT_HXX