summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-20 14:05:50 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-05-22 06:32:35 +0000
commite929194317a7debb1c5467282230cbbabe61a710 (patch)
tree89f7bfe3a00003c0fa96113b77abbf76c92f80bf /sd
parentedcd1d5a9c88455fd1d52ab25815fc8d439f31ec (diff)
convert POINTER constants to scoped enum
Change-Id: Iea29ce5fd6c620535197d3ca8538335078430e19 Reviewed-on: https://gerrit.libreoffice.org/15825 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/annotations/annotationwindow.cxx2
-rw-r--r--sd/source/ui/func/fuconuno.cxx2
-rw-r--r--sd/source/ui/func/fudraw.cxx14
-rw-r--r--sd/source/ui/func/fudspord.cxx2
-rw-r--r--sd/source/ui/func/fuformatpaintbrush.cxx6
-rw-r--r--sd/source/ui/func/fuzoom.cxx8
-rw-r--r--sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx2
-rw-r--r--sd/source/ui/view/viewoverlaymanager.cxx2
8 files changed, 19 insertions, 19 deletions
diff --git a/sd/source/ui/annotations/annotationwindow.cxx b/sd/source/ui/annotations/annotationwindow.cxx
index 1b08e48aecd4..bcad03da6ab8 100644
--- a/sd/source/ui/annotations/annotationwindow.cxx
+++ b/sd/source/ui/annotations/annotationwindow.cxx
@@ -308,7 +308,7 @@ void AnnotationWindow::InitControls()
{
// actual window which holds the user text
mpTextWindow = VclPtr<AnnotationTextWindow>::Create(this, WB_NODIALOGCONTROL);
- mpTextWindow->SetPointer(Pointer(POINTER_TEXT));
+ mpTextWindow->SetPointer(Pointer(PointerStyle::Text));
// window control for author and date
mpMeta = VclPtr<MultiLineEdit>::Create(this,0);
diff --git a/sd/source/ui/func/fuconuno.cxx b/sd/source/ui/func/fuconuno.cxx
index 74dac4c7f3d9..df901883103d 100644
--- a/sd/source/ui/func/fuconuno.cxx
+++ b/sd/source/ui/func/fuconuno.cxx
@@ -131,7 +131,7 @@ void FuConstructUnoControl::Activate()
{
mpView->SetCurrentObj( nIdentifier, nInventor );
- aNewPointer = Pointer(POINTER_DRAW_RECT);
+ aNewPointer = Pointer(PointerStyle::DrawRect);
aOldPointer = mpWindow->GetPointer();
mpWindow->SetPointer( aNewPointer );
diff --git a/sd/source/ui/func/fudraw.cxx b/sd/source/ui/func/fudraw.cxx
index 013a5117a55a..a00a513190ff 100644
--- a/sd/source/ui/func/fudraw.cxx
+++ b/sd/source/ui/func/fudraw.cxx
@@ -511,7 +511,7 @@ void FuDraw::ForcePointer(const MouseEvent* pMEvt)
{
// water can mode
bDefPointer = false;
- mpWindow->SetPointer(Pointer(POINTER_FILL));
+ mpWindow->SetPointer(Pointer(PointerStyle::Fill));
}
}
else
@@ -522,7 +522,7 @@ void FuDraw::ForcePointer(const MouseEvent* pMEvt)
{
// water can mode
bDefPointer = false;
- mpWindow->SetPointer(Pointer(POINTER_FILL));
+ mpWindow->SetPointer(Pointer(PointerStyle::Fill));
}
else if (!pHdl &&
mpViewShell->GetViewFrame()->HasChildWindow(SvxBmpMaskChildWindow::GetChildWindowId()))
@@ -533,7 +533,7 @@ void FuDraw::ForcePointer(const MouseEvent* pMEvt)
if (pMask && pMask->IsEyedropping())
{
bDefPointer = false;
- mpWindow->SetPointer(Pointer(POINTER_REFHAND));
+ mpWindow->SetPointer(Pointer(PointerStyle::RefHand));
}
}
else if (!mpView->IsAction())
@@ -559,7 +559,7 @@ void FuDraw::ForcePointer(const MouseEvent* pMEvt)
SdrObject* pObject = rMarkList.GetMark(0)->GetMarkedSdrObj();
if ((pObject->ISA(E3dObject)) && (rMarkList.GetMarkCount() == 1))
{
- mpWindow->SetPointer(Pointer(POINTER_ROTATE));
+ mpWindow->SetPointer(Pointer(PointerStyle::Rotate));
bDefPointer = false; // Otherwise it'll be calles Joes routine and the mousepointer will reconfigurate again
}
}
@@ -584,7 +584,7 @@ void FuDraw::ForcePointer(const MouseEvent* pMEvt)
{
pObj = NULL;
bDefPointer = false;
- mpWindow->SetPointer(Pointer(POINTER_ARROW));
+ mpWindow->SetPointer(Pointer(PointerStyle::Arrow));
}
}
@@ -680,7 +680,7 @@ bool FuDraw::SetPointer(SdrObject* pObj, const Point& rPos)
{
// Animation object
bSet = true;
- mpWindow->SetPointer(Pointer(POINTER_REFHAND));
+ mpWindow->SetPointer(Pointer(PointerStyle::RefHand));
}
}
else if (bImageMapInfo &&
@@ -690,7 +690,7 @@ bool FuDraw::SetPointer(SdrObject* pObj, const Point& rPos)
* ImageMap
******************************************************/
bSet = true;
- mpWindow->SetPointer(Pointer(POINTER_REFHAND));
+ mpWindow->SetPointer(Pointer(PointerStyle::RefHand));
}
}
}
diff --git a/sd/source/ui/func/fudspord.cxx b/sd/source/ui/func/fudspord.cxx
index c8b70fec4226..3f4f3a11b218 100644
--- a/sd/source/ui/func/fudspord.cxx
+++ b/sd/source/ui/func/fudspord.cxx
@@ -125,7 +125,7 @@ bool FuDisplayOrder::MouseButtonUp(const MouseEvent& rMEvt)
void FuDisplayOrder::Activate()
{
maPtr = mpWindow->GetPointer();
- mpWindow->SetPointer( Pointer( POINTER_REFHAND ) );
+ mpWindow->SetPointer( Pointer( PointerStyle::RefHand ) );
}
void FuDisplayOrder::Deactivate()
diff --git a/sd/source/ui/func/fuformatpaintbrush.cxx b/sd/source/ui/func/fuformatpaintbrush.cxx
index 5177664529b2..380bcef2bd1f 100644
--- a/sd/source/ui/func/fuformatpaintbrush.cxx
+++ b/sd/source/ui/func/fuformatpaintbrush.cxx
@@ -155,7 +155,7 @@ bool FuFormatPaintBrush::MouseMove(const MouseEvent& rMEvt)
if ( mpView->IsTextEdit() )
{
bReturn = FuText::MouseMove( rMEvt );
- mpWindow->SetPointer(Pointer(POINTER_FILL));
+ mpWindow->SetPointer(Pointer(PointerStyle::Fill));
}
else
{
@@ -165,9 +165,9 @@ bool FuFormatPaintBrush::MouseMove(const MouseEvent& rMEvt)
bool bOverMarkableObject = mpView->PickObj( mpWindow->PixelToLogic( rMEvt.GetPosPixel() ),nHitLog, pObj, pPV, SdrSearchOptions::PICKMARKABLE);
if(bOverMarkableObject && HasContentForThisType(pObj->GetObjInventor(),pObj->GetObjIdentifier()) )
- mpWindow->SetPointer(Pointer(POINTER_FILL));
+ mpWindow->SetPointer(Pointer(PointerStyle::Fill));
else
- mpWindow->SetPointer(Pointer(POINTER_ARROW));
+ mpWindow->SetPointer(Pointer(PointerStyle::Arrow));
}
}
return bReturn;
diff --git a/sd/source/ui/func/fuzoom.cxx b/sd/source/ui/func/fuzoom.cxx
index daf1f168cb93..782c32e5ab44 100644
--- a/sd/source/ui/func/fuzoom.cxx
+++ b/sd/source/ui/func/fuzoom.cxx
@@ -91,9 +91,9 @@ bool FuZoom::MouseButtonDown(const MouseEvent& rMEvt)
bool FuZoom::MouseMove(const MouseEvent& rMEvt)
{
if (rMEvt.IsShift())
- mpWindow->SetPointer(Pointer(POINTER_HAND));
+ mpWindow->SetPointer(Pointer(PointerStyle::Hand));
else if (nSlotId != SID_ZOOM_PANNING)
- mpWindow->SetPointer(Pointer(POINTER_MAGNIFY));
+ mpWindow->SetPointer(Pointer(PointerStyle::Magnify));
if (bStartDrag)
{
@@ -198,11 +198,11 @@ void FuZoom::Activate()
if (nSlotId == SID_ZOOM_PANNING)
{
- mpWindow->SetPointer(Pointer(POINTER_HAND));
+ mpWindow->SetPointer(Pointer(PointerStyle::Hand));
}
else
{
- mpWindow->SetPointer(Pointer(POINTER_MAGNIFY));
+ mpWindow->SetPointer(Pointer(PointerStyle::Magnify));
}
}
diff --git a/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx b/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx
index efadfa322174..7a456824b01a 100644
--- a/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx
+++ b/sd/source/ui/slidesorter/controller/SlsSelectionFunction.cxx
@@ -1289,7 +1289,7 @@ MultiSelectionModeHandler::MultiSelectionModeHandler (
void MultiSelectionModeHandler::Initialize(const sal_uInt32 nEventCode)
{
#endif
- const Pointer aSelectionPointer (POINTER_TEXT);
+ const Pointer aSelectionPointer (PointerStyle::Text);
mrSlideSorter.GetContentWindow()->SetPointer(aSelectionPointer);
SetSelectionModeFromModifier(nEventCode);
}
diff --git a/sd/source/ui/view/viewoverlaymanager.cxx b/sd/source/ui/view/viewoverlaymanager.cxx
index 333d3386142a..11ac62bfcf4b 100644
--- a/sd/source/ui/view/viewoverlaymanager.cxx
+++ b/sd/source/ui/view/viewoverlaymanager.cxx
@@ -270,7 +270,7 @@ bool ImageButtonHdl::isMarkable() const
Pointer ImageButtonHdl::GetPointer() const
{
- return Pointer( POINTER_ARROW );
+ return Pointer( PointerStyle::Arrow );
}
ChangePlaceholderTag::ChangePlaceholderTag( ::sd::View& rView, SdrObject& rPlaceholderObj )