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/swcli.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/swcli.cxx')
-rw-r--r-- | sw/source/uibase/uiview/swcli.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/uibase/uiview/swcli.cxx b/sw/source/uibase/uiview/swcli.cxx index f5f8f174e544..61f26823cc91 100644 --- a/sw/source/uibase/uiview/swcli.cxx +++ b/sw/source/uibase/uiview/swcli.cxx @@ -78,8 +78,8 @@ void SwOleClient::RequestNewObjectArea( Rectangle& aLogRect ) rSh.EndAllAction(); - SwRect aFrame( rSh.GetAnyCurRect( RECT_FLY_EMBEDDED, nullptr, GetObject() )), - aPrt( rSh.GetAnyCurRect( RECT_FLY_PRT_EMBEDDED, nullptr, GetObject() )); + SwRect aFrame( rSh.GetAnyCurRect( CurRectType::FlyEmbedded, nullptr, GetObject() )), + aPrt( rSh.GetAnyCurRect( CurRectType::FlyEmbeddedPrt, nullptr, GetObject() )); aLogRect.SetPos( aPrt.Pos() + aFrame.Pos() ); aLogRect.SetSize( aPrt.SSize() ); } @@ -87,7 +87,7 @@ void SwOleClient::RequestNewObjectArea( Rectangle& aLogRect ) void SwOleClient::ObjectAreaChanged() { SwWrtShell &rSh = static_cast<SwView*>(GetViewShell())->GetWrtShell(); - SwRect aFrame( rSh.GetAnyCurRect( RECT_FLY_EMBEDDED, nullptr, GetObject() )); + SwRect aFrame( rSh.GetAnyCurRect( CurRectType::FlyEmbedded, nullptr, GetObject() )); if ( !aFrame.IsOver( rSh.VisArea() ) ) rSh.MakeVisible( aFrame ); } |