2003-03-27 16:59:30 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-11 08:09:36 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2003-03-27 16:59:30 +00:00
|
|
|
*
|
2008-04-11 08:09:36 +00:00
|
|
|
* Copyright 2008 by Sun Microsystems, Inc.
|
2003-03-27 16:59:30 +00:00
|
|
|
*
|
2008-04-11 08:09:36 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2003-03-27 16:59:30 +00:00
|
|
|
*
|
2008-04-11 08:09:36 +00:00
|
|
|
* $RCSfile: introwin.cxx,v $
|
|
|
|
* $Revision: 1.11 $
|
2003-03-27 16:59:30 +00:00
|
|
|
*
|
2008-04-11 08:09:36 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2003-03-27 16:59:30 +00:00
|
|
|
*
|
2008-04-11 08:09:36 +00:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2003-03-27 16:59:30 +00:00
|
|
|
*
|
2008-04-11 08:09:36 +00:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2003-03-27 16:59:30 +00:00
|
|
|
*
|
2008-04-11 08:09:36 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2003-03-27 16:59:30 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
2006-09-17 11:18:47 +00:00
|
|
|
// MARKER(update_precomp.py): autogen include statement, do not remove
|
|
|
|
#include "precompiled_vcl.hxx"
|
|
|
|
|
2003-03-27 16:59:30 +00:00
|
|
|
#ifndef _SV_SVSYS_HXX
|
|
|
|
#include <svsys.h>
|
|
|
|
#endif
|
2007-06-27 19:31:20 +00:00
|
|
|
#include <vcl/salframe.hxx>
|
2003-03-27 16:59:30 +00:00
|
|
|
#include <tools/debug.hxx>
|
2007-06-27 19:31:20 +00:00
|
|
|
#include <vcl/svdata.hxx>
|
|
|
|
#include <vcl/wrkwin.hxx>
|
2003-03-27 16:59:30 +00:00
|
|
|
|
2007-06-27 19:31:20 +00:00
|
|
|
#include <vcl/bitmap.hxx>
|
2007-07-24 09:20:24 +00:00
|
|
|
#include <vcl/impbmp.hxx>
|
2007-06-27 19:31:20 +00:00
|
|
|
#include <vcl/introwin.hxx>
|
2003-03-27 16:59:30 +00:00
|
|
|
|
2003-12-01 12:38:34 +00:00
|
|
|
|
2003-03-27 16:59:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
// =======================================================================
|
|
|
|
|
2006-06-19 18:38:08 +00:00
|
|
|
void IntroWindow::ImplInitIntroWindowData()
|
2003-03-27 16:59:30 +00:00
|
|
|
{
|
|
|
|
ImplSVData* pSVData = ImplGetSVData();
|
|
|
|
pSVData->mpIntroWindow = this;
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
|
|
|
IntroWindow::IntroWindow( ) :
|
|
|
|
WorkWindow( WINDOW_INTROWINDOW )
|
|
|
|
{
|
2006-06-19 18:38:08 +00:00
|
|
|
ImplInitIntroWindowData();
|
2003-03-27 16:59:30 +00:00
|
|
|
WorkWindow::ImplInit( 0, WB_INTROWIN, NULL );
|
|
|
|
}
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
|
|
|
|
|
IntroWindow::~IntroWindow()
|
|
|
|
{
|
|
|
|
ImplSVData* pSVData = ImplGetSVData();
|
|
|
|
if ( pSVData->mpIntroWindow == this )
|
|
|
|
pSVData->mpIntroWindow = NULL;
|
|
|
|
}
|
|
|
|
|
2005-01-21 12:35:10 +00:00
|
|
|
void IntroWindow::SetBackgroundBitmap( const Bitmap& rBitmap )
|
|
|
|
{
|
|
|
|
if( ! rBitmap.IsEmpty() )
|
|
|
|
{
|
|
|
|
SalBitmap* pBmp = rBitmap.ImplGetImpBitmap()->ImplGetSalBitmap();
|
|
|
|
ImplGetFrame()->SetBackgroundBitmap( pBmp );
|
|
|
|
}
|
|
|
|
}
|