diff options
author | Noel Grandin <noel@peralex.com> | 2015-05-26 08:29:52 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-05-26 08:30:19 +0200 |
commit | 204d147b8a887d17e6457f795e8b8f4d632213ae (patch) | |
tree | 97d0bfc08eff025958add5731e96fbe44d84976e /svtools | |
parent | 79aa1ab00a8361c44b8caf73294f841e6553eb72 (diff) |
convert SCROLL constants to scoped enum
Change-Id: I5696fa39b2d032735cea7abe039349d4f83cf68d
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/brwbox/brwbox1.cxx | 2 | ||||
-rw-r--r-- | svtools/source/contnr/imivctl1.cxx | 2 | ||||
-rw-r--r-- | svtools/source/contnr/svimpbox.cxx | 10 | ||||
-rw-r--r-- | svtools/source/control/scrwin.cxx | 2 | ||||
-rw-r--r-- | svtools/source/table/tablecontrol_impl.cxx | 6 |
5 files changed, 11 insertions, 11 deletions
diff --git a/svtools/source/brwbox/brwbox1.cxx b/svtools/source/brwbox/brwbox1.cxx index eb7e698d8dfd..de5d309b1481 100644 --- a/svtools/source/brwbox/brwbox1.cxx +++ b/svtools/source/brwbox/brwbox1.cxx @@ -35,7 +35,7 @@ #include "brwimpl.hxx" -#define SCROLL_FLAGS (SCROLL_CLIP | SCROLL_NOCHILDREN) +#define SCROLL_FLAGS (ScrollFlags::Clip | ScrollFlags::NoChildren) #define getDataWindow() (static_cast<BrowserDataWin*>(pDataWin.get())) using namespace com::sun::star::accessibility::AccessibleEventId; diff --git a/svtools/source/contnr/imivctl1.cxx b/svtools/source/contnr/imivctl1.cxx index a2428e9f146a..51ba7a448e8a 100644 --- a/svtools/source/contnr/imivctl1.cxx +++ b/svtools/source/contnr/imivctl1.cxx @@ -2303,7 +2303,7 @@ void SvxIconChoiceCtrl_Impl::MakeVisible( const Rectangle& rRect, bool bScrBar, { // scroll in reverse direction! pView->Control::Scroll( -nDx, -nDy, aOutputArea, - SCROLL_NOCHILDREN | SCROLL_USECLIPREGION | SCROLL_CLIP ); + ScrollFlags::NoChildren | ScrollFlags::UseClipRegion | ScrollFlags::Clip ); } else pView->Invalidate(InvalidateFlags::NoChildren); diff --git a/svtools/source/contnr/svimpbox.cxx b/svtools/source/contnr/svimpbox.cxx index 56f9cbae9055..0d67e2a0142d 100644 --- a/svtools/source/contnr/svimpbox.cxx +++ b/svtools/source/contnr/svimpbox.cxx @@ -364,7 +364,7 @@ void SvImpLBox::CursorDown() pView->Update(); pStartEntry = pNextFirstToDraw; Rectangle aArea( GetVisibleArea() ); - pView->Scroll( 0, -(pView->GetEntryHeight()), aArea, SCROLL_NOCHILDREN ); + pView->Scroll( 0, -(pView->GetEntryHeight()), aArea, ScrollFlags::NoChildren ); pView->Update(); ShowCursor( true ); pView->NotifyScrolled(); @@ -386,7 +386,7 @@ void SvImpLBox::CursorUp() pStartEntry = pPrevFirstToDraw; Rectangle aArea( GetVisibleArea() ); aArea.Bottom() -= nEntryHeight; - pView->Scroll( 0, nEntryHeight, aArea, SCROLL_NOCHILDREN ); + pView->Scroll( 0, nEntryHeight, aArea, ScrollFlags::NoChildren ); pView->Update(); ShowCursor( true ); pView->NotifyScrolled(); @@ -425,7 +425,7 @@ void SvImpLBox::PageDown( sal_uInt16 nDelta ) nScroll = pView->GetEntryHeight() * static_cast<long>(nRealDelta); nScroll = -nScroll; pView->Update(); - pView->Scroll( 0, nScroll, aArea, SCROLL_NOCHILDREN ); + pView->Scroll( 0, nScroll, aArea, ScrollFlags::NoChildren ); pView->Update(); pView->NotifyScrolled(); } @@ -461,7 +461,7 @@ void SvImpLBox::PageUp( sal_uInt16 nDelta ) long nEntryHeight = pView->GetEntryHeight(); Rectangle aArea( GetVisibleArea() ); pView->Update(); - pView->Scroll( 0, nEntryHeight*nRealDelta, aArea, SCROLL_NOCHILDREN ); + pView->Scroll( 0, nEntryHeight*nRealDelta, aArea, ScrollFlags::NoChildren ); pView->Update(); pView->NotifyScrolled(); } @@ -758,7 +758,7 @@ void SvImpLBox::KeyLeftRight( long nDelta ) if( !(nFlags & F_IN_RESIZE) ) { Rectangle aRect( GetVisibleArea() ); - pView->Scroll( -nDelta, 0, aRect, SCROLL_NOCHILDREN ); + pView->Scroll( -nDelta, 0, aRect, ScrollFlags::NoChildren ); } else pView->Invalidate(); diff --git a/svtools/source/control/scrwin.cxx b/svtools/source/control/scrwin.cxx index 3f716b00ca46..f91234f7c4c7 100644 --- a/svtools/source/control/scrwin.cxx +++ b/svtools/source/control/scrwin.cxx @@ -314,7 +314,7 @@ void ScrollableWindow::SetTotalSize( const Size& rNewSize ) -void ScrollableWindow::Scroll( long nDeltaX, long nDeltaY, sal_uInt16 ) +void ScrollableWindow::Scroll( long nDeltaX, long nDeltaY, ScrollFlags ) { // get the delta in pixel Size aDeltaPix( LogicToPixel( Size(nDeltaX, nDeltaY) ) ); diff --git a/svtools/source/table/tablecontrol_impl.cxx b/svtools/source/table/tablecontrol_impl.cxx index 916f7d8b824f..71c688f949fe 100644 --- a/svtools/source/table/tablecontrol_impl.cxx +++ b/svtools/source/table/tablecontrol_impl.cxx @@ -2082,7 +2082,7 @@ namespace svt { namespace table && std::abs( nPixelDelta ) < aDataArea.GetHeight() ) { - m_pDataWindow->Scroll( 0, (long)-nPixelDelta, aDataArea, SCROLL_CLIP | SCROLL_UPDATE | SCROLL_CHILDREN); + m_pDataWindow->Scroll( 0, (long)-nPixelDelta, aDataArea, ScrollFlags::Clip | ScrollFlags::Update | ScrollFlags::Children); } else { @@ -2145,7 +2145,7 @@ namespace svt { namespace table - m_aColumnWidths[ m_nLeftColumn ].getStart(); // update our column positions - // Do this *before* scrolling, as SCROLL_UPDATE will trigger a paint, which already needs the correct + // Do this *before* scrolling, as ScrollFlags::Update will trigger a paint, which already needs the correct // information in m_aColumnWidths for ( ColumnPositions::iterator colPos = m_aColumnWidths.begin(); colPos != m_aColumnWidths.end(); @@ -2160,7 +2160,7 @@ namespace svt { namespace table && std::abs( nPixelDelta ) < aDataArea.GetWidth() ) { - m_pDataWindow->Scroll( nPixelDelta, 0, aDataArea, SCROLL_CLIP | SCROLL_UPDATE ); + m_pDataWindow->Scroll( nPixelDelta, 0, aDataArea, ScrollFlags::Clip | ScrollFlags::Update ); } else { |