summaryrefslogtreecommitdiff
path: root/svtools/source/control
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source/control')
-rw-r--r--svtools/source/control/headbar.cxx6
-rw-r--r--svtools/source/control/hyperlabel.cxx4
-rw-r--r--svtools/source/control/ruler.cxx26
-rw-r--r--svtools/source/control/tabbar.cxx2
4 files changed, 19 insertions, 19 deletions
diff --git a/svtools/source/control/headbar.cxx b/svtools/source/control/headbar.cxx
index 8bde905c7857..87e9f5831455 100644
--- a/svtools/source/control/headbar.cxx
+++ b/svtools/source/control/headbar.cxx
@@ -831,7 +831,7 @@ void HeaderBar::ImplEndDrag( bool bCancel )
{
if ( mbItemDrag )
{
- Pointer aPointer( POINTER_ARROW );
+ Pointer aPointer( PointerStyle::Arrow );
SetPointer( aPointer );
if ( (mnItemDragPos != nPos) &&
(mnItemDragPos != HEADERBAR_ITEM_NOTFOUND) )
@@ -900,11 +900,11 @@ void HeaderBar::MouseMove( const MouseEvent& rMEvt )
{
long nTemp1;
sal_uInt16 nTemp2;
- PointerStyle eStyle = POINTER_ARROW;
+ PointerStyle eStyle = PointerStyle::Arrow;
sal_uInt16 nHitTest = ImplHitTest( rMEvt.GetPosPixel(), nTemp1, nTemp2 );
if ( nHitTest & HEAD_HITTEST_DIVIDER )
- eStyle = POINTER_HSIZEBAR;
+ eStyle = PointerStyle::HSizeBar;
Pointer aPtr( eStyle );
SetPointer( aPtr );
}
diff --git a/svtools/source/control/hyperlabel.cxx b/svtools/source/control/hyperlabel.cxx
index fa826230e2ec..1814bc03da64 100644
--- a/svtools/source/control/hyperlabel.cxx
+++ b/svtools/source/control/hyperlabel.cxx
@@ -115,7 +115,7 @@ namespace svt
{
aFont.SetUnderline(UNDERLINE_SINGLE);
m_pImpl->m_bHyperMode = true;
- SetPointer( POINTER_REFHAND );
+ SetPointer( PointerStyle::RefHand );
SetControlFont( aFont);
SetTextColor( aColor);
@@ -125,7 +125,7 @@ namespace svt
{
m_pImpl->m_bHyperMode = false;
aFont.SetUnderline(UNDERLINE_NONE);
- SetPointer( POINTER_ARROW );
+ SetPointer( PointerStyle::Arrow );
SetControlFont( aFont);
SetTextColor( aColor);
}
diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx
index eec2e3947fea..0e68c79c57fe 100644
--- a/svtools/source/control/ruler.cxx
+++ b/svtools/source/control/ruler.cxx
@@ -2088,7 +2088,7 @@ void Ruler::MouseButtonDown( const MouseEvent& rMEvt )
void Ruler::MouseMove( const MouseEvent& rMEvt )
{
- PointerStyle ePtrStyle = POINTER_ARROW;
+ PointerStyle ePtrStyle = PointerStyle::Arrow;
mxCurrentHitTest.reset(new RulerSelection);
@@ -2103,28 +2103,28 @@ void Ruler::MouseMove( const MouseEvent& rMEvt )
if (mnWinStyle & WB_HORZ)
{
if (mxCurrentHitTest->mnDragSize == RULER_DRAGSIZE_1)
- ePtrStyle = POINTER_TAB_SELECT_W;
+ ePtrStyle = PointerStyle::TabSelectW;
else if (mxCurrentHitTest->mnDragSize == RULER_DRAGSIZE_2)
- ePtrStyle = POINTER_TAB_SELECT_E;
+ ePtrStyle = PointerStyle::TabSelectE;
else
- ePtrStyle = POINTER_ESIZE;
+ ePtrStyle = PointerStyle::ESize;
}
else
{
if (mxCurrentHitTest->mnDragSize == RULER_DRAGSIZE_1)
- ePtrStyle = POINTER_WINDOW_NSIZE;
+ ePtrStyle = PointerStyle::WindowNSize;
else if (mxCurrentHitTest->mnDragSize == RULER_DRAGSIZE_2)
- ePtrStyle = POINTER_WINDOW_SSIZE;
+ ePtrStyle = PointerStyle::WindowSSize;
else
- ePtrStyle = POINTER_SSIZE;
+ ePtrStyle = PointerStyle::SSize;
}
}
else if (mxCurrentHitTest->bSizeBar)
{
if (mnWinStyle & WB_HORZ)
- ePtrStyle = POINTER_HSIZEBAR;
+ ePtrStyle = PointerStyle::HSizeBar;
else
- ePtrStyle = POINTER_VSIZEBAR;
+ ePtrStyle = PointerStyle::VSizeBar;
}
}
@@ -2379,16 +2379,16 @@ bool Ruler::StartDocDrag( const MouseEvent& rMEvt, RulerType eDragType )
if ( aHitTest.bSize )
{
if ( mnWinStyle & WB_HORZ )
- aPtr = Pointer( POINTER_ESIZE );
+ aPtr = Pointer( PointerStyle::ESize );
else
- aPtr = Pointer( POINTER_SSIZE );
+ aPtr = Pointer( PointerStyle::SSize );
}
else if ( aHitTest.bSizeBar )
{
if ( mnWinStyle & WB_HORZ )
- aPtr = Pointer( POINTER_HSIZEBAR );
+ aPtr = Pointer( PointerStyle::HSizeBar );
else
- aPtr = Pointer( POINTER_VSIZEBAR );
+ aPtr = Pointer( PointerStyle::VSizeBar );
}
SetPointer( aPtr );
return ImplStartDrag( &aHitTest, nMouseModifier );
diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx
index 2a827335701e..d84695a53889 100644
--- a/svtools/source/control/tabbar.cxx
+++ b/svtools/source/control/tabbar.cxx
@@ -333,7 +333,7 @@ ImplTabSizer::ImplTabSizer( TabBar* pParent, WinBits nWinStyle )
, mnStartWidth(0)
{
sal_Int32 nScaleFactor = GetDPIScaleFactor();
- SetPointer(Pointer(POINTER_HSIZEBAR));
+ SetPointer(Pointer(PointerStyle::HSizeBar));
SetSizePixel(Size(7 * nScaleFactor, 0));
}