From f4fbdf7f9c8e657cccb679b341397daabee7079b Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Mon, 20 Feb 2012 13:16:51 +0100 Subject: unusedcode.easy: Remove SwProtocol::Snapshot() And all implementations. Also unused and removed: ImplCreateFromXImage() ImplGetFrameBitmap() --- vcl/unx/generic/window/salframe.cxx | 48 ------------------------------------- 1 file changed, 48 deletions(-) (limited to 'vcl/unx/generic/window') diff --git a/vcl/unx/generic/window/salframe.cxx b/vcl/unx/generic/window/salframe.cxx index c88279017a1f..141289f3f00d 100644 --- a/vcl/unx/generic/window/salframe.cxx +++ b/vcl/unx/generic/window/salframe.cxx @@ -1805,54 +1805,6 @@ sal_Bool X11SalFrame::GetWindowState( SalFrameState* pState ) return sal_True; } -// ---------------------------------------------------------------------------- -// get a screenshot of the current frame including window manager decoration -SalBitmap* X11SalFrame::SnapShot() -{ - Display* pDisplay = GetXDisplay(); - - // make sure the frame has been reparented and all paint timer have been - // expired - do - { - XSync(pDisplay, False); - Application::Reschedule (); - } - while (XPending(pDisplay)); - TimeValue aVal; - aVal.Seconds = 0; - aVal.Nanosec = 50000000; - osl_waitThread( &aVal ); - do - { - XSync(pDisplay, False); - Application::Reschedule (); - } - while (XPending(pDisplay)); - - // get the most outer window, usually the window manager decoration - Drawable hWindow = None; - if (IsOverrideRedirect()) - hWindow = GetDrawable(); - else - if (hPresentationWindow != None) - hWindow = hPresentationWindow; - else - hWindow = GetStackingWindow(); - - // query the contents of the window - if (hWindow != None) - { - X11SalBitmap *pBmp = new X11SalBitmap; - if (pBmp->SnapShot (pDisplay, hWindow)) - return pBmp; - else - delete pBmp; - } - - return NULL; -} - // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= // native menu implementation - currently empty -- cgit