summaryrefslogtreecommitdiff
path: root/sw/source/ui/misc/num.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-02-10 15:03:22 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-02-13 08:17:42 +0200
commitb5c2f9dee910d26a07d3f796c882e6292ef5e8db (patch)
tree1ec38e7c6f56f7bd6ba8dbe7a96b7e2c6682d823 /sw/source/ui/misc/num.cxx
parente14aab54bdfec517aabea2c7afb5b36bd6ebc36b (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/ui/misc/num.cxx')
-rw-r--r--sw/source/ui/misc/num.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/misc/num.cxx b/sw/source/ui/misc/num.cxx
index 60a11be3afb6..757b2d78c15b 100644
--- a/sw/source/ui/misc/num.cxx
+++ b/sw/source/ui/misc/num.cxx
@@ -552,7 +552,7 @@ void SwNumPositionTabPage::SetWrtShell(SwWrtShell* pSh)
{
pWrtSh = pSh;
- const SwTwips nWidth = pWrtSh->GetAnyCurRect(RECT_FRM).Width();
+ const SwTwips nWidth = pWrtSh->GetAnyCurRect(CurRectType::Frame).Width();
m_pDistBorderMF->SetMax(m_pDistBorderMF->Normalize( nWidth ), FUNIT_TWIP );
m_pDistNumMF->SetMax(m_pDistNumMF->Normalize( nWidth ), FUNIT_TWIP);
@@ -568,7 +568,7 @@ void SwNumPositionTabPage::SetWrtShell(SwWrtShell* pSh)
m_pAlignedAtMF->SetLast(m_pAlignedAtMF->Normalize( nLast2 ), FUNIT_TWIP );
m_pIndentAtMF->SetLast(m_pIndentAtMF->Normalize( nLast2 ), FUNIT_TWIP );
- const SwRect& rPrtRect = pWrtSh->GetAnyCurRect(RECT_PAGE);
+ const SwRect& rPrtRect = pWrtSh->GetAnyCurRect(CurRectType::Page);
m_pPreviewWIN->SetPageWidth(rPrtRect.Width());
FieldUnit eMetric = ::GetDfltMetric( dynamic_cast<SwWebView*>( &pWrtSh->GetView()) != nullptr );
if(eMetric == FUNIT_MM)