diff options
author | Noel Grandin <noel@peralex.com> | 2016-09-02 14:57:18 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-09-05 08:21:46 +0200 |
commit | 04a8ba2084950f998d791edad29739c124c8c4b8 (patch) | |
tree | df1b3f1a5d5a56ff89300292ade6f6976e16b436 /sw | |
parent | a1cd62bcd589a7c1050e327f4cb0ad95f9ea19d1 (diff) |
convert ScrollType to scoped enum
Change-Id: I6dd02d4f7df028dada6cfd5d767a6ec1b1c1efe1
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/uiview/pview.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/uiview/viewport.cxx | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/uibase/uiview/pview.cxx b/sw/source/uibase/uiview/pview.cxx index 24423f52d76a..fb869051b73e 100644 --- a/sw/source/uibase/uiview/pview.cxx +++ b/sw/source/uibase/uiview/pview.cxx @@ -1426,7 +1426,7 @@ IMPL_LINK_TYPED( SwPagePreview, ScrollHdl, ScrollBar *, p, void ) if(!GetViewShell()) return; if( !pScrollbar->IsHoriScroll() && - pScrollbar->GetType() == SCROLL_DRAG && + pScrollbar->GetType() == ScrollType::Drag && Help::IsQuickHelpEnabled() && GetViewShell()->PagePreviewLayout()->DoesPreviewLayoutRowsFitIntoWindow()) { diff --git a/sw/source/uibase/uiview/viewport.cxx b/sw/source/uibase/uiview/viewport.cxx index 7be971df4bf0..89b3e1478e04 100644 --- a/sw/source/uibase/uiview/viewport.cxx +++ b/sw/source/uibase/uiview/viewport.cxx @@ -686,11 +686,11 @@ IMPL_LINK_TYPED( SwView, ScrollHdl, ScrollBar *, p, void ) if ( GetWrtShell().ActionPend() ) return; - if ( pScrollbar->GetType() == SCROLL_DRAG ) + if ( pScrollbar->GetType() == ScrollType::Drag ) m_pWrtShell->EnableSmooth( false ); if(!m_pWrtShell->GetViewOptions()->getBrowseMode() && - pScrollbar->GetType() == SCROLL_DRAG) + pScrollbar->GetType() == ScrollType::Drag) { // Here comment out again if it is not desired to scroll together: // The end scrollhandler invalidate the FN_STAT_PAGE, @@ -746,7 +746,7 @@ IMPL_LINK_TYPED( SwView, ScrollHdl, ScrollBar *, p, void ) else EndScrollHdl(pScrollbar); - if ( pScrollbar->GetType() == SCROLL_DRAG ) + if ( pScrollbar->GetType() == ScrollType::Drag ) m_pWrtShell->EnableSmooth( true ); } |