From 990082f37c31380d9fedd62c5dac1b5bff4c9636 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 29 May 2016 20:23:09 +0200 Subject: Convert FontRelief to scoped enum Change-Id: I545c83d742db27f1a004b66e5eb1ef768f62e011 Reviewed-on: https://gerrit.libreoffice.org/25626 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/editeng/charreliefitem.hxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/editeng/charreliefitem.hxx') diff --git a/include/editeng/charreliefitem.hxx b/include/editeng/charreliefitem.hxx index 6a01f71326bb..113678855c4b 100644 --- a/include/editeng/charreliefitem.hxx +++ b/include/editeng/charreliefitem.hxx @@ -36,7 +36,7 @@ class EDITENG_DLLPUBLIC SvxCharReliefItem : public SfxEnumItem public: static SfxPoolItem* CreateDefault(); - SvxCharReliefItem( FontRelief eValue /*= RELIEF_NONE*/, + SvxCharReliefItem( FontRelief eValue /*= FontRelief::NONE*/, const sal_uInt16 nId ); virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; @@ -44,8 +44,10 @@ public: virtual SvStream& Store(SvStream & rStrm, sal_uInt16 nIVer) const override; virtual sal_uInt16 GetVersion( sal_uInt16 nFileVersion ) const override; - virtual OUString GetValueTextByPos( sal_uInt16 nPos ) const override; + virtual OUString GetValueTextByPos( sal_uInt16 nPos ) const override; virtual sal_uInt16 GetValueCount() const override; + FontRelief GetValue() const { return (FontRelief)SfxEnumItem::GetValue(); } + void SetValue(FontRelief f) { SfxEnumItem::SetValue((sal_uInt16)f); } virtual bool GetPresentation( SfxItemPresentation ePres, SfxMapUnit eCoreMetric, -- cgit