diff options
Diffstat (limited to 'vcl/source/window/window2.cxx')
-rw-r--r-- | vcl/source/window/window2.cxx | 87 |
1 files changed, 0 insertions, 87 deletions
diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx index 73fe6749c3a1..6b5b558a04b2 100644 --- a/vcl/source/window/window2.cxx +++ b/vcl/source/window/window2.cxx @@ -17,7 +17,6 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ - #include <limits.h> #include <tools/debug.hxx> #include <tools/poly.hxx> @@ -48,20 +47,14 @@ using namespace com::sun::star; - - #define IMPL_MAXSAVEBACKSIZE (640*480) #define IMPL_MAXALLSAVEBACKSIZE (800*600*2) - - struct ImplFocusDelData : public ImplDelData { Window* mpFocusWin; }; - - bool Window::ImplIsWindowInFront( const Window* pTestWindow ) const { // check for overlapping window @@ -148,8 +141,6 @@ bool Window::ImplIsWindowInFront( const Window* pTestWindow ) const return false; } - - void Window::ImplSaveOverlapBackground() { DBG_ASSERT( !mpWindowImpl->mpOverlapData->mpSaveBackDev, "Window::ImplSaveOverlapBackground() - Background already saved" ); @@ -191,8 +182,6 @@ void Window::ImplSaveOverlapBackground() } } - - bool Window::ImplRestoreOverlapBackground( Region& rInvRegion ) { if ( mpWindowImpl->mpOverlapData->mpSaveBackDev ) @@ -232,8 +221,6 @@ bool Window::ImplRestoreOverlapBackground( Region& rInvRegion ) return false; } - - void Window::ImplDeleteOverlapBackground() { if ( mpWindowImpl->mpOverlapData->mpSaveBackDev ) @@ -261,8 +248,6 @@ void Window::ImplDeleteOverlapBackground() } } - - void Window::ImplInvalidateAllOverlapBackgrounds() { Window* pWindow = mpWindowImpl->mpFrameData->mpFirstBackWin; @@ -294,8 +279,6 @@ void Window::ImplInvalidateAllOverlapBackgrounds() } } - - void Window::ShowFocus( const Rectangle& rRect ) { if( mpWindowImpl->mbInShowFocus ) @@ -341,8 +324,6 @@ void Window::ShowFocus( const Rectangle& rRect ) mpWindowImpl->mbInShowFocus = false; } - - void Window::HideFocus() { @@ -376,8 +357,6 @@ void Window::HideFocus() mpWindowImpl->mbInHideFocus = false; } - - void Window::Invert( const Rectangle& rRect, sal_uInt16 nFlags ) { if ( !IsDeviceOutputNecessary() ) @@ -411,8 +390,6 @@ void Window::Invert( const Rectangle& rRect, sal_uInt16 nFlags ) mpGraphics->Invert( aRect.Left(), aRect.Top(), aRect.GetWidth(), aRect.GetHeight(), nSalFlags, this ); } - - void Window::Invert( const Polygon& rPoly, sal_uInt16 nFlags ) { if ( !IsDeviceOutputNecessary() ) @@ -448,8 +425,6 @@ void Window::Invert( const Polygon& rPoly, sal_uInt16 nFlags ) mpGraphics->Invert( nPoints, pPtAry, nSalFlags, this ); } - - void Window::ShowTracking( const Rectangle& rRect, sal_uInt16 nFlags ) { ImplWinData* pWinData = ImplGetWinData(); @@ -476,8 +451,6 @@ void Window::ShowTracking( const Rectangle& rRect, sal_uInt16 nFlags ) mpWindowImpl->mbTrackVisible = true; } - - void Window::HideTracking() { if ( mpWindowImpl->mbTrackVisible ) @@ -489,8 +462,6 @@ void Window::HideTracking() } } - - void Window::InvertTracking( const Rectangle& rRect, sal_uInt16 nFlags ) { OutputDevice *pOutDev = GetOutDev(); @@ -553,8 +524,6 @@ void Window::InvertTracking( const Rectangle& rRect, sal_uInt16 nFlags ) } } - - void Window::InvertTracking( const Polygon& rPoly, sal_uInt16 nFlags ) { sal_uInt16 nPoints = rPoly.GetSize(); @@ -606,8 +575,6 @@ void Window::InvertTracking( const Polygon& rPoly, sal_uInt16 nFlags ) pGraphics->Invert( nPoints, pPtAry, SAL_INVERT_TRACKFRAME, this ); } - - IMPL_LINK( Window, ImplTrackTimerHdl, Timer*, pTimer ) { ImplSVData* pSVData = ImplGetSVData(); @@ -633,8 +600,6 @@ IMPL_LINK( Window, ImplTrackTimerHdl, Timer*, pTimer ) return 0; } - - void Window::StartTracking( sal_uInt16 nFlags ) { ImplSVData* pSVData = ImplGetSVData(); @@ -662,8 +627,6 @@ void Window::StartTracking( sal_uInt16 nFlags ) CaptureMouse(); } - - void Window::EndTracking( sal_uInt16 nFlags ) { ImplSVData* pSVData = ImplGetSVData(); @@ -705,15 +668,11 @@ void Window::EndTracking( sal_uInt16 nFlags ) } } - - bool Window::IsTracking() const { return (ImplGetSVData()->maWinData.mpTrackWin == this); } - - void Window::StartAutoScroll( sal_uInt16 nFlags ) { ImplSVData* pSVData = ImplGetSVData(); @@ -729,8 +688,6 @@ void Window::StartAutoScroll( sal_uInt16 nFlags ) pSVData->maAppData.mpWheelWindow = new ImplWheelWindow( this ); } - - void Window::EndAutoScroll() { ImplSVData* pSVData = ImplGetSVData(); @@ -745,8 +702,6 @@ void Window::EndAutoScroll() } } - - void Window::SaveBackground( const Point& rPos, const Size& rSize, const Point& rDestOff, VirtualDevice& rSaveDevice ) { @@ -779,8 +734,6 @@ void Window::SaveBackground( const Point& rPos, const Size& rSize, rSaveDevice.DrawOutDev( rDestOff, rSize, rPos, rSize, *this ); } - - sal_uIntPtr Window::SaveFocus() { ImplSVData* pSVData = ImplGetSVData(); @@ -795,8 +748,6 @@ sal_uIntPtr Window::SaveFocus() return 0; } - - bool Window::EndSaveFocus( sal_uIntPtr nSaveId, bool bRestore ) { if ( !nSaveId ) @@ -818,8 +769,6 @@ bool Window::EndSaveFocus( sal_uIntPtr nSaveId, bool bRestore ) } } - - void Window::SetZoom( const Fraction& rZoom ) { if ( mpWindowImpl->maZoom != rZoom ) @@ -829,15 +778,11 @@ void Window::SetZoom( const Fraction& rZoom ) } } - - inline long WinFloatRound( double fVal ) { return( fVal > 0.0 ? (long) ( fVal + 0.5 ) : -(long) ( -fVal + 0.5 ) ); } - - void Window::SetZoomedPointFont( const Font& rFont ) { const Fraction& rZoom = GetZoom(); @@ -876,8 +821,6 @@ void Window::SetZoomedPointFont( const Font& rFont ) SetPointFont( rFont ); } - - long Window::CalcZoom( long nCalc ) const { @@ -892,8 +835,6 @@ long Window::CalcZoom( long nCalc ) const return nCalc; } - - void Window::SetControlFont() { if ( mpWindowImpl->mpControlFont ) @@ -904,8 +845,6 @@ void Window::SetControlFont() } } - - void Window::SetControlFont( const Font& rFont ) { if ( rFont == Font() ) @@ -926,8 +865,6 @@ void Window::SetControlFont( const Font& rFont ) StateChanged( STATE_CHANGE_CONTROLFONT ); } - - Font Window::GetControlFont() const { if ( mpWindowImpl->mpControlFont ) @@ -939,8 +876,6 @@ Font Window::GetControlFont() const } } - - void Window::SetControlForeground() { if ( mpWindowImpl->mbControlForeground ) @@ -951,8 +886,6 @@ void Window::SetControlForeground() } } - - void Window::SetControlForeground( const Color& rColor ) { if ( rColor.GetTransparency() ) @@ -975,8 +908,6 @@ void Window::SetControlForeground( const Color& rColor ) } } - - void Window::SetControlBackground() { if ( mpWindowImpl->mbControlBackground ) @@ -987,8 +918,6 @@ void Window::SetControlBackground() } } - - void Window::SetControlBackground( const Color& rColor ) { if ( rColor.GetTransparency() ) @@ -1011,8 +940,6 @@ void Window::SetControlBackground( const Color& rColor ) } } - - Size Window::CalcWindowSize( const Size& rOutSz ) const { Size aSz = rOutSz; @@ -1021,8 +948,6 @@ Size Window::CalcWindowSize( const Size& rOutSz ) const return aSz; } - - Size Window::CalcOutputSize( const Size& rWinSz ) const { Size aSz = rWinSz; @@ -1031,8 +956,6 @@ Size Window::CalcOutputSize( const Size& rWinSz ) const return aSz; } - - Font Window::GetDrawPixelFont( OutputDevice* pDev ) const { Font aFont = GetPointFont(); @@ -1043,8 +966,6 @@ Font Window::GetDrawPixelFont( OutputDevice* pDev ) const return aFont; } - - long Window::GetDrawPixel( OutputDevice* pDev, long nPixels ) const { long nP = nPixels; @@ -1059,8 +980,6 @@ long Window::GetDrawPixel( OutputDevice* pDev, long nPixels ) const return nP; } - - static void lcl_HandleScrollHelper( ScrollBar* pScrl, long nN, bool isMultiplyByLineSize ) { if ( pScrl && nN && pScrl->IsEnabled() && pScrl->IsInputEnabled() && ! pScrl->IsInModalMode() ) @@ -1251,10 +1170,6 @@ bool Window::HandleScrollCommand( const CommandEvent& rCmd, return bRet; } - - - - // Note that when called for COMMAND_WHEEL above, despite its name, // pVScrl isn't necessarily the vertical scroll bar. Depending on // whether the scroll is horizontal or vertical, it is either the @@ -1282,7 +1197,6 @@ void Window::EnableDocking( bool bEnable ) ImplGetDockingManager()->RemoveWindow( this ); } - // retrieves the list of owner draw decorated windows for this window hiearchy ::std::vector<Window *>& Window::ImplGetOwnerDrawList() { @@ -1879,7 +1793,6 @@ bool Window::set_font_attribute(const OString &rKey, const OString &rValue) return true; } - bool Window::set_property(const OString &rKey, const OString &rValue) { if ((rKey == "label") || (rKey == "title") || (rKey == "text") ) |