diff options
author | Kurt Zenker <kz@openoffice.org> | 2003-09-11 09:31:46 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2003-09-11 09:31:46 +0000 |
commit | 52ab5d93117d394cf24268188d315d1e1b265dd7 (patch) | |
tree | 0ef25c66a8fb3798f80f326f2a34c445cc2ce441 /unotools | |
parent | 5066dae5dda3edff261c37e18a24e7860d065d06 (diff) |
INTEGRATION: CWS mav05 (1.4.80); FILE MERGED
2003/07/07 13:54:18 mav 1.4.80.2: #i15929# allow to close temporary file explicitly
2003/06/23 09:20:58 mav 1.4.80.1: #i15929# extend temporary file service
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/ucbhelper/XTempFile.hxx | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/unotools/source/ucbhelper/XTempFile.hxx b/unotools/source/ucbhelper/XTempFile.hxx index 60e8a17d684d..0fd7d61402db 100644 --- a/unotools/source/ucbhelper/XTempFile.hxx +++ b/unotools/source/ucbhelper/XTempFile.hxx @@ -2,9 +2,9 @@ * * $RCSfile: XTempFile.hxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: mtg $ $Date: 2001-09-06 12:53:04 $ + * last change: $Author: kz $ $Date: 2003-09-11 10:31:46 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -70,6 +70,12 @@ #ifndef _COM_SUN_STAR_IO_XSEEKABLE_HPP_ #include <com/sun/star/io/XSeekable.hpp> #endif +#ifndef _COM_SUN_STAR_IO_XSTREAM_HPP_ +#include <com/sun/star/io/XStream.hpp> +#endif +#ifndef _COM_SUN_STAR_IO_XTRUNCATE_HPP_ +#include <com/sun/star/io/XTruncate.hpp> +#endif #ifndef _COM_SUN_STAR_LANG_XSINGLESERVICEFACTORY_HPP_ #include <com/sun/star/lang/XSingleServiceFactory.hpp> #endif @@ -92,6 +98,8 @@ namespace utl { class TempFile; } class XTempFile : public com::sun::star::io::XInputStream, public com::sun::star::io::XOutputStream, public com::sun::star::io::XSeekable, + public com::sun::star::io::XStream, + public com::sun::star::io::XTruncate, public com::sun::star::beans::XPropertySet, public cppu::OWeakObject { @@ -99,6 +107,10 @@ protected: ::utl::TempFile* mpTempFile; ::osl::Mutex maMutex; SvStream* mpStream; + sal_Bool mbRemoveFile; + sal_Bool mbInClosed; + sal_Bool mbOutClosed; + void checkError () const; void checkConnected () const; @@ -139,6 +151,16 @@ public: virtual sal_Int64 SAL_CALL getLength( ) throw (::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException); + // XStream + virtual ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > SAL_CALL getInputStream( ) + throw (::com::sun::star::uno::RuntimeException); + virtual ::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream > SAL_CALL getOutputStream( ) + throw (::com::sun::star::uno::RuntimeException); + + // XTruncate + virtual void SAL_CALL truncate() + throw (::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException); + // XPropertySet virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) throw (::com::sun::star::uno::RuntimeException); |