intro.cxx (d119d52d) intro.cxx (45fd3b9a)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 5 unchanged lines hidden (view full) ---

14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied. See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 5 unchanged lines hidden (view full) ---

14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied. See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23
24// MARKER(update_precomp.py): autogen include statement, do not remove
25#include "precompiled_sfx2.hxx"
26
27#ifndef GCC
28#endif
29
30#include "intro.hxx"
31
32#include <tools/stream.hxx>
33#include <tools/urlobj.hxx>
34#include <unotools/pathoptions.hxx>
35#include <unotools/configmgr.hxx>
36#include <com/sun/star/uno/Any.h>
22// MARKER(update_precomp.py): autogen include statement, do not remove
23#include "precompiled_sfx2.hxx"
24
25#ifndef GCC
26#endif
27
28#include "intro.hxx"
29
30#include <tools/stream.hxx>
31#include <tools/urlobj.hxx>
32#include <unotools/pathoptions.hxx>
33#include <unotools/configmgr.hxx>
34#include <com/sun/star/uno/Any.h>
37
38#include <sfx2/sfxuno.hxx>
35#include <sfx2/sfxuno.hxx>
36#include <vcl/dibtools.hxx>
39
40// -----------------------------------------------------------------------
41
42void IntroWindow_Impl::Init()
43{
44 Size aSize = aIntroBmp.GetSizePixel();
45 SetOutputSizePixel( aSize );
46 Size aScreenSize( GetDesktopRectPixel().GetSize() );

--- 24 unchanged lines hidden (view full) ---

71 ::com::sun::star::uno::Any aRet = ::utl::ConfigManager::GetDirectConfigProperty( ::utl::ConfigManager::PRODUCTNAME );
72 rtl::OUString aTmp;
73 aRet >>= aTmp;
74 String aBmpFileName = aTmp;
75 aBmpFileName += String( DEFINE_CONST_UNICODE("_intro.bmp") );
76 INetURLObject aObj( SvtPathOptions().GetModulePath(), INET_PROT_FILE );
77 aObj.insertName( aBmpFileName );
78 SvFileStream aStrm( aObj.PathToFileName(), STREAM_STD_READ );
37
38// -----------------------------------------------------------------------
39
40void IntroWindow_Impl::Init()
41{
42 Size aSize = aIntroBmp.GetSizePixel();
43 SetOutputSizePixel( aSize );
44 Size aScreenSize( GetDesktopRectPixel().GetSize() );

--- 24 unchanged lines hidden (view full) ---

69 ::com::sun::star::uno::Any aRet = ::utl::ConfigManager::GetDirectConfigProperty( ::utl::ConfigManager::PRODUCTNAME );
70 rtl::OUString aTmp;
71 aRet >>= aTmp;
72 String aBmpFileName = aTmp;
73 aBmpFileName += String( DEFINE_CONST_UNICODE("_intro.bmp") );
74 INetURLObject aObj( SvtPathOptions().GetModulePath(), INET_PROT_FILE );
75 aObj.insertName( aBmpFileName );
76 SvFileStream aStrm( aObj.PathToFileName(), STREAM_STD_READ );
79 if ( !aStrm.GetError() )
80 aStrm >> aIntroBmp;
77
78 if ( !aStrm.GetError() )
79 {
80 ReadDIB(aIntroBmp, aStrm, true);
81 }
81
82 Init();
83}
84
85// -----------------------------------------------------------------------
86
87IntroWindow_Impl::~IntroWindow_Impl()
88{

--- 18 unchanged lines hidden ---
82
83 Init();
84}
85
86// -----------------------------------------------------------------------
87
88IntroWindow_Impl::~IntroWindow_Impl()
89{

--- 18 unchanged lines hidden ---