diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2016-06-05 08:55:56 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-06-10 11:01:04 +0200 |
commit | 6925222271d9404ec9f2340b4101ce9b1420539c (patch) | |
tree | 8cb4fdf956c1e5524f7c0f39d9294b651096cc6b /include/editeng/paravertalignitem.hxx | |
parent | 5b156b37d487b96ec19d65e01cd8cedd26a2150d (diff) |
Convert SvxPraVertAlignItem::Align to scoped enum
Change-Id: I2f73a200b04322dd65e0758f4238347bfea832fb
Diffstat (limited to 'include/editeng/paravertalignitem.hxx')
-rw-r--r-- | include/editeng/paravertalignitem.hxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/editeng/paravertalignitem.hxx b/include/editeng/paravertalignitem.hxx index 2a8b25cdbbde..68fdcabb9ff6 100644 --- a/include/editeng/paravertalignitem.hxx +++ b/include/editeng/paravertalignitem.hxx @@ -34,10 +34,10 @@ class EDITENG_DLLPUBLIC SvxParaVertAlignItem : public SfxUInt16Item { public: - enum { AUTOMATIC, BASELINE, TOP, CENTER, BOTTOM }; + enum class Align { Automatic, Baseline, Top, Center, Bottom }; static SfxPoolItem* CreateDefault(); - SvxParaVertAlignItem( sal_uInt16 nValue /*= 0*/, + SvxParaVertAlignItem( Align nValue /*= 0*/, const sal_uInt16 nId ); virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; @@ -54,6 +54,9 @@ public: 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; + Align GetValue() const { return (Align) SfxUInt16Item::GetValue(); } + void SetValue(Align n) { SfxUInt16Item::SetValue((sal_uInt16)n); } + inline SvxParaVertAlignItem& operator=( const SvxParaVertAlignItem& rItem ) { SetValue( rItem.GetValue() ); |