diff options
author | Malte Timmermann <mt@openoffice.org> | 2001-02-14 17:11:27 +0000 |
---|---|---|
committer | Malte Timmermann <mt@openoffice.org> | 2001-02-14 17:11:27 +0000 |
commit | 37b2c0bdcd04e533fac2362ef3ccc872297c78d7 (patch) | |
tree | 05812016efe09c60aae96fe9725ef216394660a0 /vcl/source/app | |
parent | 5284e0dcf70d9fed83e95402924438e7720010cd (diff) |
xMultiServiceFactory and MSFTempFileName
Diffstat (limited to 'vcl/source/app')
-rw-r--r-- | vcl/source/app/svdata.cxx | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/vcl/source/app/svdata.cxx b/vcl/source/app/svdata.cxx index fcf55c5664ea..d0e3dbdd9644 100644 --- a/vcl/source/app/svdata.cxx +++ b/vcl/source/app/svdata.cxx @@ -2,9 +2,9 @@ * * $RCSfile: svdata.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: hr $ $Date: 2000-12-15 13:53:48 $ + * last change: $Author: mt $ $Date: 2001-02-14 18:11:27 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -79,6 +79,8 @@ #include <vos/mutex.hxx> #endif +#include <osl/file.hxx> + #ifndef _DEBUG_HXX #include <tools/debug.hxx> #endif @@ -101,6 +103,15 @@ #include <unowrap.hxx> #endif +#ifndef _COM_SUN_STAR_LANG_XMULTISERVICEFACTORY_HPP_ +#include <com/sun/star/lang/XMultiServiceFactory.hpp> +#endif + +#include <com/sun/star/lang/XComponent.hpp> + + + + #pragma hdrstop // ======================================================================= @@ -157,6 +168,20 @@ void ImplDeInitSVData() pSVData->mpUnoWrapper->Destroy(); pSVData->mpUnoWrapper = NULL; } + + if ( pSVData->maAppData.mpMSFTempFileName ) + { + if ( pSVData->maAppData.mxMSF.is() ) + { + ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > xComp( pSVData->maAppData.mxMSF, ::com::sun::star::uno::UNO_QUERY ); + xComp->dispose(); + pSVData->maAppData.mxMSF = NULL; + } + + osl::File::remove( *pSVData->maAppData.mpMSFTempFileName ); + delete pSVData->maAppData.mpMSFTempFileName; + pSVData->maAppData.mpMSFTempFileName = NULL; + } } // ----------------------------------------------------------------------- |