diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-10 10:19:30 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-13 08:17:42 +0200 |
commit | ba948e3827e4f1099652fe9fa16d1df3822e863b (patch) | |
tree | 0290b351e827604c62b041073ae2e3f8a2f9e8c2 /sw/source/uibase/docvw/SidebarWin.cxx | |
parent | cdbe81f2acb3ebe2e6d39c0cac1f66572d026211 (diff) |
convert AnchorState to scoped enum
and drop unused AS_START enumerator
Change-Id: I1ae8e75c6b99f0f923e5f3b020d66e57c81838f0
Diffstat (limited to 'sw/source/uibase/docvw/SidebarWin.cxx')
-rw-r--r-- | sw/source/uibase/docvw/SidebarWin.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sw/source/uibase/docvw/SidebarWin.cxx b/sw/source/uibase/docvw/SidebarWin.cxx index 256a6a58a871..fa4b43548a7f 100644 --- a/sw/source/uibase/docvw/SidebarWin.cxx +++ b/sw/source/uibase/docvw/SidebarWin.cxx @@ -539,7 +539,7 @@ void SwSidebarWin::ShowAnchorOnly(const Point &aPoint) { mpAnchor->SetSixthPosition(basegfx::B2DPoint(aPoint.X(),aPoint.Y())); mpAnchor->SetSeventhPosition(basegfx::B2DPoint(aPoint.X(),aPoint.Y())); - mpAnchor->SetAnchorState(AS_ALL); + mpAnchor->SetAnchorState(AnchorState::All); mpAnchor->setVisible(true); } if (mpShadow) @@ -818,7 +818,7 @@ void SwSidebarWin::SetPosAndSize() { mpAnchor->SetHeight(mAnchorRect.Height()); mpAnchor->setVisible(true); - mpAnchor->SetAnchorState(AS_TRI); + mpAnchor->SetAnchorState(AnchorState::Tri); if (HasChildPathFocus()) { mpAnchor->setLineSolid(true); @@ -854,7 +854,7 @@ void SwSidebarWin::SetPosAndSize() // #i111964# if ( mpAnchor ) { - mpAnchor->SetAnchorState(AS_END); + mpAnchor->SetAnchorState(AnchorState::End); } } else @@ -862,13 +862,13 @@ void SwSidebarWin::SetPosAndSize() // #i111964# if ( mpAnchor ) { - mpAnchor->SetAnchorState(AS_ALL); + mpAnchor->SetAnchorState(AnchorState::All); } SwSidebarWin* pWin = GetTopReplyNote(); // #i111964# if ( pWin && pWin->Anchor() ) { - pWin->Anchor()->SetAnchorState(AS_END); + pWin->Anchor()->SetAnchorState(AnchorState::End); } } } @@ -1227,7 +1227,7 @@ void SwSidebarWin::HideNote() if (mpAnchor) { if (mrMgr.IsShowAnchor()) - mpAnchor->SetAnchorState(AS_TRI); + mpAnchor->SetAnchorState(AnchorState::Tri); else mpAnchor->setVisible(false); } @@ -1509,12 +1509,12 @@ void SwSidebarWin::SetViewState(ViewState bViewState) { if (mpAnchor) { - mpAnchor->SetAnchorState(AS_ALL); + mpAnchor->SetAnchorState(AnchorState::All); SwSidebarWin* pWin = GetTopReplyNote(); // #i111964# if ( pWin && pWin->Anchor() ) { - pWin->Anchor()->SetAnchorState(AS_END); + pWin->Anchor()->SetAnchorState(AnchorState::End); } mpAnchor->setLineSolid(true); if ( mpTextRangeOverlay != nullptr ) @@ -1548,7 +1548,7 @@ void SwSidebarWin::SetViewState(ViewState bViewState) { // if there is no visible parent note, we want to see the complete anchor ?? //if (IsAnyStackParentVisible()) - mpAnchor->SetAnchorState(AS_END); + mpAnchor->SetAnchorState(AnchorState::End); SwSidebarWin* pTopWinSelf = GetTopReplyNote(); SwSidebarWin* pTopWinActive = mrMgr.HasActiveSidebarWin() ? mrMgr.GetActiveSidebarWin()->GetTopReplyNote() @@ -1565,7 +1565,7 @@ void SwSidebarWin::SetViewState(ViewState bViewState) pTopWinSelf->TextRange()->HideSolidBorder(); } } - pTopWinSelf->Anchor()->SetAnchorState(AS_ALL); + pTopWinSelf->Anchor()->SetAnchorState(AnchorState::All); } } mpAnchor->setLineSolid(false); |