summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-24 15:55:53 +0200
committerNoel Grandin <noel@peralex.com>2015-04-29 10:41:40 +0200
commit0a9f331de48e63d7188f7e253770debd5e3c180e (patch)
treeb3d9c778eff2c49ac8a716fe4c7399bf97f970f2 /sc
parent2a6806a81b3fd9218af18c685b2ede36a86956f6 (diff)
convert SDRMOUSE constants to scoped enum
Change-Id: Ia5389095683a1c012a988ed71bf769a1f25d80fb
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/drawfunc/fuconpol.cxx4
-rw-r--r--sc/source/ui/drawfunc/fudraw.cxx2
-rw-r--r--sc/source/ui/drawfunc/fusel.cxx4
-rw-r--r--sc/source/ui/view/gridwin5.cxx2
4 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/ui/drawfunc/fuconpol.cxx b/sc/source/ui/drawfunc/fuconpol.cxx
index babcafd315e7..33a456ff4182 100644
--- a/sc/source/ui/drawfunc/fuconpol.cxx
+++ b/sc/source/ui/drawfunc/fuconpol.cxx
@@ -63,7 +63,7 @@ bool FuConstPolygon::MouseButtonDown(const MouseEvent& rMEvt)
bool bReturn = FuConstruct::MouseButtonDown(rMEvt);
SdrViewEvent aVEvt;
- (void)pView->PickAnything(rMEvt, SDRMOUSEBUTTONDOWN, aVEvt);
+ (void)pView->PickAnything(rMEvt, SdrMouseEventKind::BUTTONDOWN, aVEvt);
if (aVEvt.eEvent == SDREVENT_BEGTEXTEDIT)
{
// Texteingabe hier nicht zulassen
@@ -108,7 +108,7 @@ bool FuConstPolygon::MouseButtonUp(const MouseEvent& rMEvt)
bool bSimple = false;
SdrViewEvent aVEvt;
- (void)pView->PickAnything(rMEvt, SDRMOUSEBUTTONUP, aVEvt);
+ (void)pView->PickAnything(rMEvt, SdrMouseEventKind::BUTTONUP, aVEvt);
pView->MouseButtonUp(rMEvt, pWindow);
diff --git a/sc/source/ui/drawfunc/fudraw.cxx b/sc/source/ui/drawfunc/fudraw.cxx
index 5e4ceefb49e7..25bfd25fc3f8 100644
--- a/sc/source/ui/drawfunc/fudraw.cxx
+++ b/sc/source/ui/drawfunc/fudraw.cxx
@@ -708,7 +708,7 @@ static bool lcl_UrlHit( SdrView* pView, const Point& rPosPixel, vcl::Window* pWi
{
SdrViewEvent aVEvt;
MouseEvent aMEvt( rPosPixel, 1, MouseEventModifiers::NONE, MOUSE_LEFT );
- SdrHitKind eHit = pView->PickAnything( aMEvt, SDRMOUSEBUTTONDOWN, aVEvt );
+ SdrHitKind eHit = pView->PickAnything( aMEvt, SdrMouseEventKind::BUTTONDOWN, aVEvt );
if ( eHit != SDRHIT_NONE && aVEvt.pObj != NULL )
{
diff --git a/sc/source/ui/drawfunc/fusel.cxx b/sc/source/ui/drawfunc/fusel.cxx
index db5e7f2765b4..a51363d91865 100644
--- a/sc/source/ui/drawfunc/fusel.cxx
+++ b/sc/source/ui/drawfunc/fusel.cxx
@@ -228,7 +228,7 @@ bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt)
SdrViewEvent aVEvt;
if ( !bAlt &&
- pView->PickAnything( rMEvt, SDRMOUSEBUTTONDOWN, aVEvt ) != SDRHIT_NONE &&
+ pView->PickAnything( rMEvt, SdrMouseEventKind::BUTTONDOWN, aVEvt ) != SDRHIT_NONE &&
aVEvt.pObj != NULL )
{
if ( ScDrawLayer::GetIMapInfo( aVEvt.pObj ) ) // ImageMap
@@ -513,7 +513,7 @@ bool FuSelection::MouseButtonUp(const MouseEvent& rMEvt)
// selektierten Objekt steht
SdrViewEvent aVEvt;
- SdrHitKind eHit = pView->PickAnything( rMEvt, SDRMOUSEBUTTONDOWN, aVEvt );
+ SdrHitKind eHit = pView->PickAnything( rMEvt, SdrMouseEventKind::BUTTONDOWN, aVEvt );
if (eHit != SDRHIT_NONE && aVEvt.pObj == pObj && pViewShell)
{
sal_uInt16 nSdrObjKind = pObj->GetObjIdentifier();
diff --git a/sc/source/ui/view/gridwin5.cxx b/sc/source/ui/view/gridwin5.cxx
index ccbede095d93..2e209546c362 100644
--- a/sc/source/ui/view/gridwin5.cxx
+++ b/sc/source/ui/view/gridwin5.cxx
@@ -300,7 +300,7 @@ void ScGridWindow::RequestHelp(const HelpEvent& rHEvt)
{
SdrViewEvent aVEvt;
MouseEvent aMEvt( aPosPixel, 1, MouseEventModifiers::NONE, MOUSE_LEFT );
- SdrHitKind eHit = pDrView->PickAnything( aMEvt, SDRMOUSEBUTTONDOWN, aVEvt );
+ SdrHitKind eHit = pDrView->PickAnything( aMEvt, SdrMouseEventKind::BUTTONDOWN, aVEvt );
if ( eHit != SDRHIT_NONE && aVEvt.pObj != NULL )
{