diff options
Diffstat (limited to 'sw/source/uibase')
-rw-r--r-- | sw/source/uibase/config/cfgitems.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/config/usrpref.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/config/viewopt.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/docvw/edtwin.cxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/inc/cfgitems.hxx | 7 |
5 files changed, 9 insertions, 8 deletions
diff --git a/sw/source/uibase/config/cfgitems.cxx b/sw/source/uibase/config/cfgitems.cxx index 0f26565c10d1..41ce1246072d 100644 --- a/sw/source/uibase/config/cfgitems.cxx +++ b/sw/source/uibase/config/cfgitems.cxx @@ -185,7 +185,7 @@ bool SwAddPrinterItem::operator==( const SfxPoolItem& rAttr ) const // Item for Settings dialog, ShadowCursorPage SwShadowCursorItem::SwShadowCursorItem() : SfxPoolItem( FN_PARAM_SHADOWCURSOR ), - eMode( FILL_TAB ) + eMode( SwFillMode::Tab ) ,bOn( false ) { } diff --git a/sw/source/uibase/config/usrpref.cxx b/sw/source/uibase/config/usrpref.cxx index ab771b8b45e3..77790b82c220 100644 --- a/sw/source/uibase/config/usrpref.cxx +++ b/sw/source/uibase/config/usrpref.cxx @@ -534,7 +534,7 @@ void SwCursorConfig::Load() switch(nProp) { case 0: rParent.SetShadowCursor(bSet); break; // "DirectCursor/UseDirectCursor", - case 1: rParent.SetShdwCursorFillMode(static_cast<sal_uInt8>(nSet)); break; // "DirectCursor/Insert", + case 1: rParent.SetShdwCursorFillMode(static_cast<SwFillMode>(nSet)); break; // "DirectCursor/Insert", case 2: rParent.SetCursorInProtectedArea(bSet); break; // "Option/ProtectedArea" } } diff --git a/sw/source/uibase/config/viewopt.cxx b/sw/source/uibase/config/viewopt.cxx index 6335cde55dbc..194c89bbac51 100644 --- a/sw/source/uibase/config/viewopt.cxx +++ b/sw/source/uibase/config/viewopt.cxx @@ -152,7 +152,7 @@ SwViewOption::SwViewOption() : mnViewLayoutColumns( 0 ), m_nPagePreviewRow( 1 ), m_nPagePreviewCol( 2 ), - m_nShadowCursorFillMode( FILL_TAB ), + m_nShadowCursorFillMode( SwFillMode::Tab ), m_bReadonly(false), m_bStarOneSetting(false), m_bIsPagePreview(false), diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx index d039be4f2047..bdabfc6def76 100644 --- a/sw/source/uibase/docvw/edtwin.cxx +++ b/sw/source/uibase/docvw/edtwin.cxx @@ -4218,7 +4218,7 @@ void SwEditWin::MouseMove(const MouseEvent& _rMEvt) { SwRect aRect; sal_Int16 eOrient; - SwFillMode eMode = static_cast<SwFillMode>(rSh.GetViewOptions()->GetShdwCursorFillMode()); + SwFillMode eMode = rSh.GetViewOptions()->GetShdwCursorFillMode(); if( rSh.GetShadowCursorPos( aDocPt, eMode, aRect, eOrient )) { if( !m_pShadCursor ) @@ -4712,7 +4712,7 @@ void SwEditWin::MouseButtonUp(const MouseEvent& rMEvt) rSh.Undo(); } } - SwFillMode eMode = static_cast<SwFillMode>(rSh.GetViewOptions()->GetShdwCursorFillMode()); + SwFillMode eMode = rSh.GetViewOptions()->GetShdwCursorFillMode(); rSh.SetShadowCursorPos( aDocPt, eMode ); } } 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; } }; |