Apache OpenOffice (AOO) Bugzilla – Attachment #9380: set server managed window bg to the image. for issue #19646
#ifndef _SV_SALBMP_HXX
#include <salbmp.hxx>
#endif
#ifndef _SV_SALFRAME_HXX
#include <salframe.hxx>
// -----------
// - Defines -
maBmpList.Clear();
mnTotalSize = 0;
}
void
SalBitmap::SetWindowBg( SalFrame *pFrame )
{
if( !pFrame )
return;
XLIB_Window window = pFrame->maFrameData.GetWindow();
DBG_ASSERT( mpDDB, "SetWindowBg needs valid DDB" );
XSetWindowBackgroundPixmap (pFrame->maFrameData.GetXDisplay (),
window, mpDDB->ImplGetPixmap ());
void ImplDraw( Drawable aDrawable, long nDrawableDepth,
const SalTwoRect& rTwoRect, const GC& rGC ) const;
void SetWindowBg( SalFrame *pFrame );
public:
#ifndef _SV_OPENGL_HXX
#include <opengl.hxx>
#ifndef _SV_BITMAP_HXX
#include <bitmap.hxx>
#ifndef _SV_BITMAPEX_HXX
#include <bitmapex.hxx>
#ifndef _SV_IMPBMP_HXX
#include <impbmp.hxx>
#include <introwin.hxx>
pSVData->mpIntroWindow = NULL;
IntroWindow::SetBackgroundBitmap( const Bitmap &rBitmap )
SetBackground( Wallpaper( BitmapEx( rBitmap ) ) );
IntroWindow::Paint( const Rectangle &rRect )
Bitmap aBmp( GetBackground().GetBitmap().GetBitmap() );
DrawBitmap( Point(), aBmp );
#ifdef UNX
ImpBitmap *pImpBmp = aBmp.ImplGetImpBitmap();
if( pImpBmp )
pImpBmp->ImplGetSalBitmap ()->SetWindowBg( ImplGetFrame() );
IntroWindow();
~IntroWindow();
void IntroWindow::SetBackgroundBitmap( const Bitmap &rBitmap );
virtual void Paint( const Rectangle& );
};
#endif // _SV_INTROWIN_HXX
_aIntroBmp = Bitmap( aIntroBmpRes );
delete pLabelResMgr;
SetBackgroundBitmap( _aIntroBmp );
void SplashScreen::Paint( const Rectangle& )
void SplashScreen::Paint( const Rectangle& rRect )
if(!_bVisible) return;
// draw bitmap
if (_bPaintBitmap)
DrawBitmap( Point(), _aIntroBmp );
IntroWindow::Paint( rRect );
if (_bPaintProgress) {
// draw progress...