diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-24 15:55:53 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-04-29 10:41:40 +0200 |
commit | 0a9f331de48e63d7188f7e253770debd5e3c180e (patch) | |
tree | b3d9c778eff2c49ac8a716fe4c7399bf97f970f2 /sw | |
parent | 2a6806a81b3fd9218af18c685b2ede36a86956f6 (diff) |
convert SDRMOUSE constants to scoped enum
Change-Id: Ia5389095683a1c012a988ed71bf769a1f25d80fb
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/docvw/edtwin.cxx | 6 | ||||
-rw-r--r-- | sw/source/uibase/ribbar/conform.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/ribbar/drawbase.cxx | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx index e3b39d40f600..fbb6e061f209 100644 --- a/sw/source/uibase/docvw/edtwin.cxx +++ b/sw/source/uibase/docvw/edtwin.cxx @@ -3100,7 +3100,7 @@ void SwEditWin::MouseButtonDown(const MouseEvent& _rMEvt) if (bExecHyperlinks && pSdrView) { SdrViewEvent aVEvt; - pSdrView->PickAnything(rMEvt, SDRMOUSEBUTTONDOWN, aVEvt); + pSdrView->PickAnything(rMEvt, SdrMouseEventKind::BUTTONDOWN, aVEvt); if (aVEvt.eEvent == SDREVENT_EXECUTEURL) bExecDrawTextLink = true; @@ -4591,7 +4591,7 @@ void SwEditWin::MouseButtonUp(const MouseEvent& rMEvt) SdrViewEvent aVEvt; if (pSdrView) - pSdrView->PickAnything(rMEvt, SDRMOUSEBUTTONDOWN, aVEvt); + pSdrView->PickAnything(rMEvt, SdrMouseEventKind::BUTTONDOWN, aVEvt); if (pSdrView && aVEvt.eEvent == SDREVENT_EXECUTEURL) { @@ -4817,7 +4817,7 @@ void SwEditWin::MouseButtonUp(const MouseEvent& rMEvt) { // When tiled rendering, single click on a shape text starts editing already. SdrViewEvent aViewEvent; - SdrHitKind eHit = pSdrView->PickAnything(rMEvt, SDRMOUSEBUTTONUP, aViewEvent); + SdrHitKind eHit = pSdrView->PickAnything(rMEvt, SdrMouseEventKind::BUTTONUP, aViewEvent); const SdrMarkList& rMarkList = pSdrView->GetMarkedObjectList(); if (eHit == SDRHIT_TEXTEDITOBJ && rMarkList.GetMarkCount() == 1) { diff --git a/sw/source/uibase/ribbar/conform.cxx b/sw/source/uibase/ribbar/conform.cxx index 95612c2697c0..cbaf34cf3d75 100644 --- a/sw/source/uibase/ribbar/conform.cxx +++ b/sw/source/uibase/ribbar/conform.cxx @@ -56,7 +56,7 @@ bool ConstFormControl::MouseButtonDown(const MouseEvent& rMEvt) } SdrViewEvent aVEvt; - SdrHitKind eHit = pSdrView->PickAnything(rMEvt, SDRMOUSEBUTTONDOWN, aVEvt); + SdrHitKind eHit = pSdrView->PickAnything(rMEvt, SdrMouseEventKind::BUTTONDOWN, aVEvt); // Only new object; if not in base mode (or pure selection mode) if (rMEvt.IsLeft() && !m_pWin->IsDrawAction() && diff --git a/sw/source/uibase/ribbar/drawbase.cxx b/sw/source/uibase/ribbar/drawbase.cxx index 3c122cafb818..77e34ac668fd 100644 --- a/sw/source/uibase/ribbar/drawbase.cxx +++ b/sw/source/uibase/ribbar/drawbase.cxx @@ -81,7 +81,7 @@ bool SwDrawBase::MouseButtonDown(const MouseEvent& rMEvt) } SdrViewEvent aVEvt; - SdrHitKind eHit = pSdrView->PickAnything(rMEvt, SDRMOUSEBUTTONDOWN, aVEvt); + SdrHitKind eHit = pSdrView->PickAnything(rMEvt, SdrMouseEventKind::BUTTONDOWN, aVEvt); // Only new object, if not in the basic mode (or pure selection mode). if (rMEvt.IsLeft() && !m_pWin->IsDrawAction()) |