Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_EMBED_XOPTIMIZEDSTORAGE_HDL
2 : : #define INCLUDED_COM_SUN_STAR_EMBED_XOPTIMIZEDSTORAGE_HDL
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/uno/RuntimeException.hdl"
7 : : #include "com/sun/star/packages/WrongPasswordException.hdl"
8 : : #include "com/sun/star/container/NoSuchElementException.hdl"
9 : : namespace com { namespace sun { namespace star { namespace embed { class XOptimizedStorage; } } } }
10 : : #include "com/sun/star/embed/InvalidStorageException.hdl"
11 : : namespace com { namespace sun { namespace star { namespace io { class XStream; } } } }
12 : : #include "com/sun/star/beans/PropertyValue.hdl"
13 : : #include "com/sun/star/packages/NoRawFormatException.hdl"
14 : : #include "com/sun/star/lang/IllegalArgumentException.hdl"
15 : : #include "com/sun/star/io/IOException.hdl"
16 : : #include "com/sun/star/container/ElementExistException.hdl"
17 : : #include "com/sun/star/beans/UnknownPropertyException.hdl"
18 : : #include "com/sun/star/embed/StorageWrappedTargetException.hdl"
19 : : namespace com { namespace sun { namespace star { namespace io { class XInputStream; } } } }
20 : : #include "com/sun/star/beans/PropertyVetoException.hdl"
21 : : #include "com/sun/star/uno/XInterface.hdl"
22 : : #include "com/sun/star/uno/Any.h"
23 : : #include "com/sun/star/uno/Reference.h"
24 : : #include "com/sun/star/uno/Sequence.h"
25 : : #include "cppu/macros.hxx"
26 : : #include "rtl/ustring.hxx"
27 : : #include "sal/types.h"
28 : :
29 : : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
30 : :
31 : : namespace com { namespace sun { namespace star { namespace embed {
32 : :
33 : 35422 : class SAL_NO_VTABLE XOptimizedStorage : public ::com::sun::star::uno::XInterface
34 : : {
35 : : public:
36 : :
37 : : // Methods
38 : : virtual void SAL_CALL insertRawNonEncrStreamElementDirect( const ::rtl::OUString& sStreamName, const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& xInStream ) throw (::com::sun::star::embed::InvalidStorageException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::packages::NoRawFormatException, ::com::sun::star::container::ElementExistException, ::com::sun::star::io::IOException, ::com::sun::star::embed::StorageWrappedTargetException, ::com::sun::star::uno::RuntimeException) = 0;
39 : : virtual void SAL_CALL insertStreamElementDirect( const ::rtl::OUString& sStreamName, const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& xInStream, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aProperties ) throw (::com::sun::star::embed::InvalidStorageException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::ElementExistException, ::com::sun::star::io::IOException, ::com::sun::star::embed::StorageWrappedTargetException, ::com::sun::star::uno::RuntimeException) = 0;
40 : : virtual void SAL_CALL copyElementDirectlyTo( const ::rtl::OUString& sSourceName, const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XOptimizedStorage >& xTargetStorage, const ::rtl::OUString& sTargetName ) throw (::com::sun::star::embed::InvalidStorageException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::NoSuchElementException, ::com::sun::star::container::ElementExistException, ::com::sun::star::io::IOException, ::com::sun::star::embed::StorageWrappedTargetException, ::com::sun::star::uno::RuntimeException) = 0;
41 : : virtual void SAL_CALL writeAndAttachToStream( const ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream >& xStream ) throw (::com::sun::star::embed::InvalidStorageException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::io::IOException, ::com::sun::star::embed::StorageWrappedTargetException, ::com::sun::star::uno::RuntimeException) = 0;
42 : : virtual void SAL_CALL attachToURL( const ::rtl::OUString& sURL, ::sal_Bool bReadOnly ) throw (::com::sun::star::embed::InvalidStorageException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::io::IOException, ::com::sun::star::embed::StorageWrappedTargetException, ::com::sun::star::uno::RuntimeException) = 0;
43 : : virtual ::com::sun::star::uno::Any SAL_CALL getElementPropertyValue( const ::rtl::OUString& sElementName, const ::rtl::OUString& sPropertyName ) throw (::com::sun::star::embed::InvalidStorageException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::container::NoSuchElementException, ::com::sun::star::io::IOException, ::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::embed::StorageWrappedTargetException, ::com::sun::star::uno::RuntimeException) = 0;
44 : : virtual void SAL_CALL copyStreamElementData( const ::rtl::OUString& sStreamName, const ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream >& xTargetStream ) throw (::com::sun::star::embed::InvalidStorageException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::packages::WrongPasswordException, ::com::sun::star::io::IOException, ::com::sun::star::embed::StorageWrappedTargetException, ::com::sun::star::uno::RuntimeException) = 0;
45 : :
46 : : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
47 : :
48 : : protected:
49 : 33885 : ~XOptimizedStorage() throw () {} // avoid warnings about virtual members and non-virtual dtor
50 : : };
51 : :
52 : :
53 : : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::embed::XOptimizedStorage const *);
54 : : } } } }
55 : :
56 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XOptimizedStorage > *) SAL_THROW(());
57 : :
58 : : #endif
|