From 0f4ac20e0456b32995f7a3aff4e46b59e64704a6 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 11 May 2016 10:37:46 +0200 Subject: Convert RulerType to scoped enum Change-Id: I2233b70e5413bfa3156011e1b3306d539003795b Reviewed-on: https://gerrit.libreoffice.org/24879 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sw/source/uibase/docvw/edtwin3.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sw/source/uibase/docvw/edtwin3.cxx') diff --git a/sw/source/uibase/docvw/edtwin3.cxx b/sw/source/uibase/docvw/edtwin3.cxx index 07037d57ed3a..745bbd4ca864 100644 --- a/sw/source/uibase/docvw/edtwin3.cxx +++ b/sw/source/uibase/docvw/edtwin3.cxx @@ -86,9 +86,9 @@ void FrameNotify( SwViewShell* pVwSh, FlyMode eMode ) bool SwEditWin::RulerColumnDrag( const MouseEvent& rMEvt, bool bVerticalMode) { SvxRuler& rRuler = bVerticalMode ? m_rView.GetVRuler() : m_rView.GetHRuler(); - return (!rRuler.StartDocDrag( rMEvt, RULER_TYPE_BORDER ) && - !rRuler.StartDocDrag( rMEvt, RULER_TYPE_MARGIN1) && - !rRuler.StartDocDrag( rMEvt, RULER_TYPE_MARGIN2)); + return (!rRuler.StartDocDrag( rMEvt, RulerType::Border ) && + !rRuler.StartDocDrag( rMEvt, RulerType::Margin1) && + !rRuler.StartDocDrag( rMEvt, RulerType::Margin2)); } // #i23726# @@ -98,7 +98,7 @@ bool SwEditWin::RulerMarginDrag( const MouseEvent& rMEvt, const bool bVerticalMode ) { SvxRuler& rRuler = bVerticalMode ? m_rView.GetVRuler() : m_rView.GetHRuler(); - return !rRuler.StartDocDrag( rMEvt, RULER_TYPE_INDENT); + return !rRuler.StartDocDrag( rMEvt, RulerType::Indent); } TableChgMode GetTableChgDefaultMode() -- cgit