Commits

Anonymous committed 1b11c9e

vcl122: #i117746# remove unused methods

  • Participants
  • Parent commits e7d12d3

Comments (0)

Files changed (3)

vcl/inc/unx/salframe.h

     void			Minimize();
     void			Maximize();
     void			Restore();
-    void            SetWindowGravity (int nGravity ) const;
     
     void			RestackChildren( XLIB_Window* pTopLevelWindows, int nTopLevelWindows );
     void			RestackChildren();
 	inline	sal_Bool			IsCaptured() const { return nCaptured_ == 1; }
 #if !defined(__synchronous_extinput__)
     void 			HandleExtTextEvent (XClientMessageEvent *pEvent);
-    void			PostExtTextEvent (sal_uInt16 nExtTextEventType, 
-                                      void *pExtTextEvent);
 #endif
     bool					IsOverrideRedirect() const;
     bool                    IsChildWindow() const { return (nStyle_ & (SAL_FRAME_STYLE_PLUG|SAL_FRAME_STYLE_SYSTEMCHILD)) != 0; }

vcl/unx/generic/gdi/salgdi2.cxx

 }
 
 // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-GC X11SalGraphics::SetMask( int           &nX,
-								   int           &nY,
-								   unsigned int &nDX,
-								   unsigned int &nDY,
-								   int          &nSrcX,
-								   int          &nSrcY,
-								   Pixmap        hClipMask )
-{
-	int n = Clip( nX, nY, nDX, nDY, nSrcX, nSrcY );
-	if( RectangleOut == n )
-		return NULL;
-
-	Display *pDisplay = GetXDisplay();
-
-	if( !pMaskGC_ )
-		pMaskGC_ = CreateGC( GetDrawable() );
-
-	if( RectangleIn == n )
-	{
-		XSetClipMask( pDisplay, pMaskGC_, hClipMask );
-		XSetClipOrigin( pDisplay, pMaskGC_, nX - nSrcX, nY - nSrcY );
-		return pMaskGC_;
-	}
-
-	// - - - - create alternate clip pixmap for region clipping - - - -
-	Pixmap hPixmap	= XCreatePixmap( pDisplay, hClipMask, nDX, nDY, 1 );
-
-	if( !hPixmap )
-	{
-#if (OSL_DEBUG_LEVEL > 1) || defined DBG_UTIL
-		fprintf( stderr, "X11SalGraphics::SetMask !hPixmap\n" );
-#endif
-		return NULL;
-	}
-
-	// - - - - reset pixmap; all 0 - - - - - - - - - - - - - - - - - - -
-	XFillRectangle( pDisplay,
-					hPixmap,
-					GetDisplay()->GetMonoGC( m_nScreen ),
-					0,   0,
-					nDX, nDY );
-
-	// - - - - copy pixmap only within region - - - - - - - - - - - - -
-	GC pMonoGC = GetMonoGC( hPixmap );
-	XSetClipOrigin( pDisplay, pMonoGC, -nX, -nY );
-	XCopyArea( pDisplay,
-			   hClipMask,			// Source
-			   hPixmap,				// Destination
-			   pMonoGC,
-			   nSrcX, nSrcY,		// Source
-			   nDX,   nDY,			// Width & Height
-			   0,     0 );			// Destination
-
-	XSetClipMask( pDisplay, pMaskGC_, hPixmap );
-	XSetClipOrigin( pDisplay, pMaskGC_, nX, nY );
-
-	XFreePixmap( pDisplay, hPixmap );
-	return pMaskGC_;
-}
-
 // -=-= SalGraphics =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 

vcl/unx/generic/window/salframe.cxx

 
 // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 
-void X11SalFrame::SetWindowGravity (int nGravity) const
-{
-    if( ! IsChildWindow() )
-    {
-        XSizeHints* pHint = XAllocSizeHints();
-        long        nFlag;
-    
-        XGetWMNormalHints (GetXDisplay(), GetShellWindow(), pHint, &nFlag);
-        pHint->flags       |= PWinGravity;
-        pHint->win_gravity  = nGravity;
-    
-        XSetWMNormalHints (GetXDisplay(), GetShellWindow(), pHint);
-        XSync (GetXDisplay(), False);
-    
-        XFree (pHint);
-    }
-}
-
 void X11SalFrame::Center( )
 {
 	int 			nX, nY, nScreenWidth, nScreenHeight;
 // delay handling of extended text input
 #if !defined(__synchronous_extinput__)
 void
-X11SalFrame::PostExtTextEvent (sal_uInt16 nExtTextEventType, void *pExtTextEvent)
-{
-	XLIB_Window nFocusWindow = GetWindow();
-	Atom 		nEventAtom	 = GetDisplay()->getWMAdaptor()->getAtom( WMAdaptor::SAL_EXTTEXTEVENT );
-
-    XEvent aEvent;
-    aEvent.xclient.type			= ClientMessage;
-    aEvent.xclient.serial		= 0;
-    aEvent.xclient.send_event	= True;
-    aEvent.xclient.display		= GetXDisplay();
-    aEvent.xclient.window		= nFocusWindow;
-    aEvent.xclient.message_type	= nEventAtom;
-    aEvent.xclient.format		= 32;
-
-#if SAL_TYPES_SIZEOFLONG > 4
-    aEvent.xclient.data.l[0] = (sal_uInt32)((long)pExtTextEvent & 0xffffffff);
-    aEvent.xclient.data.l[1] = (sal_uInt32)((long)pExtTextEvent >> 32);
-#else
-    aEvent.xclient.data.l[0] = (sal_uInt32)((long)pExtTextEvent);
-    aEvent.xclient.data.l[1] = 0;
-#endif
-    aEvent.xclient.data.l[2] = (sal_uInt32)nExtTextEventType;
-    aEvent.xclient.data.l[3] = 0;
-    aEvent.xclient.data.l[4] = 0;
-
-    XPutBackEvent( GetXDisplay(), &aEvent );
-}
-
-void
 X11SalFrame::HandleExtTextEvent (XClientMessageEvent *pEvent)
 {
 	#if SAL_TYPES_SIZEOFLONG > 4