summaryrefslogtreecommitdiff
path: root/sc/source/ui/vba
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 /sc/source/ui/vba
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 'sc/source/ui/vba')
-rw-r--r--sc/source/ui/vba/vbaapplication.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/sc/source/ui/vba/vbaapplication.cxx b/sc/source/ui/vba/vbaapplication.cxx
index d496dce067b2..cc51da63adeb 100644
--- a/sc/source/ui/vba/vbaapplication.cxx
+++ b/sc/source/ui/vba/vbaapplication.cxx
@@ -631,17 +631,17 @@ ScVbaApplication::GoTo( const uno::Any& Reference, const uno::Any& Scroll ) thro
sal_Int32 SAL_CALL
ScVbaApplication::getCursor() throw (uno::RuntimeException, std::exception)
{
- sal_Int32 nPointerStyle = getPointerStyle(getCurrentDocument());
+ PointerStyle nPointerStyle = getPointerStyle(getCurrentDocument());
switch( nPointerStyle )
{
- case POINTER_ARROW:
+ case PointerStyle::Arrow:
return excel::XlMousePointer::xlNorthwestArrow;
- case POINTER_NULL:
+ case PointerStyle::Null:
return excel::XlMousePointer::xlDefault;
- case POINTER_WAIT:
+ case PointerStyle::Wait:
return excel::XlMousePointer::xlWait;
- case POINTER_TEXT:
+ case PointerStyle::Text:
return excel::XlMousePointer::xlIBeam;
default:
return excel::XlMousePointer::xlDefault;
@@ -658,7 +658,7 @@ ScVbaApplication::setCursor( sal_Int32 _cursor ) throw (uno::RuntimeException, s
{
case excel::XlMousePointer::xlNorthwestArrow:
{
- const Pointer& rPointer( POINTER_ARROW );
+ const Pointer& rPointer( PointerStyle::Arrow );
setCursorHelper( xModel, rPointer, false );
break;
}
@@ -672,7 +672,7 @@ ScVbaApplication::setCursor( sal_Int32 _cursor ) throw (uno::RuntimeException, s
}
case excel::XlMousePointer::xlDefault:
{
- const Pointer& rPointer( POINTER_NULL );
+ const Pointer& rPointer( PointerStyle::Null );
setCursorHelper( xModel, rPointer, false );
break;
}