diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-10 15:03:22 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-13 08:17:42 +0200 |
commit | b5c2f9dee910d26a07d3f796c882e6292ef5e8db (patch) | |
tree | 1ec38e7c6f56f7bd6ba8dbe7a96b7e2c6682d823 /sw/source/uibase/uiview/viewmdi.cxx | |
parent | e14aab54bdfec517aabea2c7afb5b36bd6ebc36b (diff) |
convert CurRectType to scoped enum
and drop read-only enumerators
RECT_OUTTABSECTION_PRT
RECT_HEADERFOOTER_PRT
Change-Id: I2d7d159cf5f1a2022c015e37df4aa71cae1e266c
Diffstat (limited to 'sw/source/uibase/uiview/viewmdi.cxx')
-rw-r--r-- | sw/source/uibase/uiview/viewmdi.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/uibase/uiview/viewmdi.cxx b/sw/source/uibase/uiview/viewmdi.cxx index eef998e77d0b..059683e331de 100644 --- a/sw/source/uibase/uiview/viewmdi.cxx +++ b/sw/source/uibase/uiview/viewmdi.cxx @@ -92,8 +92,8 @@ void SwView::SetZoom_( const Size &rEditSize, SvxZoomType eZoomType, { const bool bAutomaticViewLayout = 0 == pOpt->GetViewLayoutColumns(); - const SwRect aPageRect( m_pWrtShell->GetAnyCurRect( RECT_PAGE_CALC ) ); - const SwRect aRootRect( m_pWrtShell->GetAnyCurRect( RECT_PAGES_AREA ) ); + const SwRect aPageRect( m_pWrtShell->GetAnyCurRect( CurRectType::PageCalc ) ); + const SwRect aRootRect( m_pWrtShell->GetAnyCurRect( CurRectType::PagesArea ) ); Size aPageSize( aPageRect.SSize() ); Size aRootSize( aRootRect.SSize() ); @@ -166,7 +166,7 @@ void SwView::SetZoom_( const Size &rEditSize, SvxZoomType eZoomType, Point aPos; if ( eZoomType == SvxZoomType::WHOLEPAGE ) - aPos.Y() = m_pWrtShell->GetAnyCurRect(RECT_PAGE).Top() - DOCUMENTBORDER; + aPos.Y() = m_pWrtShell->GetAnyCurRect(CurRectType::Page).Top() - DOCUMENTBORDER; else { // Make sure that the cursor is in the visible range, so that |