From a910081e0634120118d6f32996591928677d504f Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 24 Apr 2020 12:06:55 +0200 Subject: convert SwFillMode to scoped enum Change-Id: I03230496aac57f8855ce8d3dcd8576d265060aa6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92845 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sw/source/uibase/inc/cfgitems.hxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sw/source/uibase/inc') diff --git a/sw/source/uibase/inc/cfgitems.hxx b/sw/source/uibase/inc/cfgitems.hxx index fab7cd59e66e..bf50b8f105f0 100644 --- a/sw/source/uibase/inc/cfgitems.hxx +++ b/sw/source/uibase/inc/cfgitems.hxx @@ -35,6 +35,7 @@ class SwViewShell; class SwViewOption; class SwContentOptPage; class SwShdwCursorOptionsTabPage; +enum class SwFillMode; // OS 12.01.95 // Item for settings dialog - document view @@ -111,7 +112,7 @@ public: // Item for settings dialog, ShadowCursorPage class SW_DLLPUBLIC SwShadowCursorItem : public SfxPoolItem { - sal_uInt8 eMode; + SwFillMode eMode; bool bOn; public: SwShadowCursorItem(); @@ -122,10 +123,10 @@ public: void FillViewOptions( SwViewOption& rVOpt) const; - sal_uInt8 GetMode() const { return eMode; } + SwFillMode GetMode() const { return eMode; } bool IsOn() const { return bOn; } - void SetMode( sal_uInt8 eM ) { eMode = eM; } + void SetMode( SwFillMode eM ) { eMode = eM; } void SetOn( bool bFlag ) { bOn = bFlag; } }; -- cgit