diff options
Diffstat (limited to 'svtools/source/brwbox')
-rw-r--r-- | svtools/source/brwbox/brwbox1.cxx | 16 | ||||
-rw-r--r-- | svtools/source/brwbox/datwin.cxx | 4 | ||||
-rw-r--r-- | svtools/source/brwbox/datwin.hxx | 6 |
3 files changed, 13 insertions, 13 deletions
diff --git a/svtools/source/brwbox/brwbox1.cxx b/svtools/source/brwbox/brwbox1.cxx index 2da27e8ca2b6..eb7e698d8dfd 100644 --- a/svtools/source/brwbox/brwbox1.cxx +++ b/svtools/source/brwbox/brwbox1.cxx @@ -481,7 +481,7 @@ void BrowseBox::SetColumnPos( sal_uInt16 nColumnId, sal_uInt16 nPos ) Invalidate( aToRect ); } else - pDataWin->Window::Invalidate( INVALIDATE_NOCHILDREN ); + pDataWin->Window::Invalidate( InvalidateFlags::NoChildren ); // adjust header bar positions if ( getDataWindow()->pHeaderBar ) @@ -649,13 +649,13 @@ void BrowseBox::SetColumnWidth( sal_uInt16 nItemId, sal_uLong nWidth ) aScrRect.Bottom() = pDataWin->GetSizePixel().Height(); getDataWindow()->Scroll( nWidth-nOldWidth, 0, aScrRect, SCROLL_FLAGS ); Rectangle aInvRect( nX, 0, nX + std::max( nWidth, (sal_uLong)nOldWidth ), USHRT_MAX ); - Control::Invalidate( aInvRect, INVALIDATE_NOCHILDREN ); + Control::Invalidate( aInvRect, InvalidateFlags::NoChildren ); static_cast<BrowserDataWin*>( pDataWin.get() )->Invalidate( aInvRect ); } else { - Control::Invalidate( INVALIDATE_NOCHILDREN ); - getDataWindow()->Window::Invalidate( INVALIDATE_NOCHILDREN ); + Control::Invalidate( InvalidateFlags::NoChildren ); + getDataWindow()->Window::Invalidate( InvalidateFlags::NoChildren ); } @@ -1028,8 +1028,8 @@ long BrowseBox::ScrollColumns( long nCols ) if( bInvalidateView ) { - Control::Invalidate( INVALIDATE_NOCHILDREN ); - pDataWin->Window::Invalidate( INVALIDATE_NOCHILDREN ); + Control::Invalidate( InvalidateFlags::NoChildren ); + pDataWin->Window::Invalidate( InvalidateFlags::NoChildren ); } // implicitly show cursor after scrolling @@ -1224,7 +1224,7 @@ void BrowseBox::RowInserted( long nRow, long nNumRows, bool bDoPaint, bool bKeep SCROLL_FLAGS ); } else - pDataWin->Window::Invalidate( INVALIDATE_NOCHILDREN ); + pDataWin->Window::Invalidate( InvalidateFlags::NoChildren ); } else // scroll would cause a repaint, so we must explicitly invalidate @@ -1368,7 +1368,7 @@ void BrowseBox::RowRemoved( long nRow, long nNumRows, bool bDoPaint ) SCROLL_FLAGS ); } else - pDataWin->Window::Invalidate( INVALIDATE_NOCHILDREN ); + pDataWin->Window::Invalidate( InvalidateFlags::NoChildren ); } else { diff --git a/svtools/source/brwbox/datwin.cxx b/svtools/source/brwbox/datwin.cxx index 4d037e21ca34..f4376eb71e5e 100644 --- a/svtools/source/brwbox/datwin.cxx +++ b/svtools/source/brwbox/datwin.cxx @@ -687,7 +687,7 @@ void BrowserDataWin::DoOutstandingInvalidations() -void BrowserDataWin::Invalidate( sal_uInt16 nFlags ) +void BrowserDataWin::Invalidate( InvalidateFlags nFlags ) { if ( !GetUpdateMode() ) { @@ -702,7 +702,7 @@ void BrowserDataWin::Invalidate( sal_uInt16 nFlags ) -void BrowserDataWin::Invalidate( const Rectangle& rRect, sal_uInt16 nFlags ) +void BrowserDataWin::Invalidate( const Rectangle& rRect, InvalidateFlags nFlags ) { if ( !GetUpdateMode() ) aInvalidRegion.push_back( new Rectangle( rRect ) ); diff --git a/svtools/source/brwbox/datwin.hxx b/svtools/source/brwbox/datwin.hxx index 5a1ade0ff0ae..4f5bba24b15b 100644 --- a/svtools/source/brwbox/datwin.hxx +++ b/svtools/source/brwbox/datwin.hxx @@ -172,9 +172,9 @@ public: void LeaveUpdateLock(); void Update(); void DoOutstandingInvalidations(); - void Invalidate( sal_uInt16 nFlags = 0 ) SAL_OVERRIDE; - void Invalidate( const Rectangle& rRect, sal_uInt16 nFlags = 0 ) SAL_OVERRIDE; - void Invalidate( const vcl::Region& rRegion, sal_uInt16 nFlags = 0 ) SAL_OVERRIDE + void Invalidate( InvalidateFlags nFlags = InvalidateFlags::NONE ) SAL_OVERRIDE; + void Invalidate( const Rectangle& rRect, InvalidateFlags nFlags = InvalidateFlags::NONE ) SAL_OVERRIDE; + void Invalidate( const vcl::Region& rRegion, InvalidateFlags nFlags = InvalidateFlags::NONE ) SAL_OVERRIDE { Control::Invalidate( rRegion, nFlags ); } protected: |