Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_EMBED_XSTORAGE_HDL
2 : #define INCLUDED_COM_SUN_STAR_EMBED_XSTORAGE_HDL
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/container/ElementExistException.hdl"
7 : #include "com/sun/star/container/NoSuchElementException.hdl"
8 : #include "com/sun/star/container/XNameAccess.hdl"
9 : #include "com/sun/star/embed/InvalidStorageException.hdl"
10 : #include "com/sun/star/embed/StorageWrappedTargetException.hdl"
11 : namespace com { namespace sun { namespace star { namespace embed { class XStorage; } } } }
12 : #include "com/sun/star/io/IOException.hdl"
13 : namespace com { namespace sun { namespace star { namespace io { class XStream; } } } }
14 : #include "com/sun/star/lang/IllegalArgumentException.hdl"
15 : #include "com/sun/star/lang/XComponent.hdl"
16 : #include "com/sun/star/packages/NoEncryptionException.hdl"
17 : #include "com/sun/star/packages/WrongPasswordException.hdl"
18 : #include "com/sun/star/uno/RuntimeException.hdl"
19 : #include "com/sun/star/uno/Reference.h"
20 : #include "cppu/macros.hxx"
21 : #include "rtl/ustring.hxx"
22 : #include "sal/types.h"
23 :
24 : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
25 :
26 : namespace com { namespace sun { namespace star { namespace embed {
27 :
28 12269 : class SAL_NO_VTABLE XStorage : public css::container::XNameAccess, public css::lang::XComponent
29 : {
30 : public:
31 :
32 : // Methods
33 : virtual void SAL_CALL copyToStorage( const ::com::sun::star::uno::Reference< css::embed::XStorage >& xDest ) /* throw (css::embed::InvalidStorageException, css::lang::IllegalArgumentException, css::io::IOException, css::embed::StorageWrappedTargetException, ::com::sun::star::uno::RuntimeException) */ = 0;
34 : virtual ::com::sun::star::uno::Reference< css::io::XStream > SAL_CALL openStreamElement( const ::rtl::OUString& sStreamName, ::sal_Int32 nOpenMode ) /* throw (css::embed::InvalidStorageException, css::lang::IllegalArgumentException, css::packages::WrongPasswordException, css::io::IOException, css::embed::StorageWrappedTargetException, ::com::sun::star::uno::RuntimeException) */ = 0;
35 : virtual ::com::sun::star::uno::Reference< css::io::XStream > SAL_CALL openEncryptedStreamElement( const ::rtl::OUString& sStreamName, ::sal_Int32 nOpenMode, const ::rtl::OUString& sPassword ) /* throw (css::embed::InvalidStorageException, css::lang::IllegalArgumentException, css::packages::NoEncryptionException, css::packages::WrongPasswordException, css::io::IOException, css::embed::StorageWrappedTargetException, ::com::sun::star::uno::RuntimeException) */ = 0;
36 : virtual ::com::sun::star::uno::Reference< css::embed::XStorage > SAL_CALL openStorageElement( const ::rtl::OUString& sStorName, ::sal_Int32 nOpenMode ) /* throw (css::embed::InvalidStorageException, css::lang::IllegalArgumentException, css::io::IOException, css::embed::StorageWrappedTargetException, ::com::sun::star::uno::RuntimeException) */ = 0;
37 : virtual ::com::sun::star::uno::Reference< css::io::XStream > SAL_CALL cloneStreamElement( const ::rtl::OUString& sStreamName ) /* throw (css::embed::InvalidStorageException, css::lang::IllegalArgumentException, css::packages::WrongPasswordException, css::io::IOException, css::embed::StorageWrappedTargetException, ::com::sun::star::uno::RuntimeException) */ = 0;
38 : virtual ::com::sun::star::uno::Reference< css::io::XStream > SAL_CALL cloneEncryptedStreamElement( const ::rtl::OUString& sStreamName, const ::rtl::OUString& sPassword ) /* throw (css::embed::InvalidStorageException, css::lang::IllegalArgumentException, css::packages::NoEncryptionException, css::packages::WrongPasswordException, css::io::IOException, css::embed::StorageWrappedTargetException, ::com::sun::star::uno::RuntimeException) */ = 0;
39 : virtual void SAL_CALL copyLastCommitTo( const ::com::sun::star::uno::Reference< css::embed::XStorage >& xTargetStorage ) /* throw (css::embed::InvalidStorageException, css::lang::IllegalArgumentException, css::io::IOException, css::embed::StorageWrappedTargetException, ::com::sun::star::uno::RuntimeException) */ = 0;
40 : virtual void SAL_CALL copyStorageElementLastCommitTo( const ::rtl::OUString& sStorName, const ::com::sun::star::uno::Reference< css::embed::XStorage >& xTargetStorage ) /* throw (css::embed::InvalidStorageException, css::lang::IllegalArgumentException, css::io::IOException, css::embed::StorageWrappedTargetException, ::com::sun::star::uno::RuntimeException) */ = 0;
41 : virtual ::sal_Bool SAL_CALL isStreamElement( const ::rtl::OUString& sElementName ) /* throw (css::container::NoSuchElementException, css::lang::IllegalArgumentException, css::embed::InvalidStorageException, ::com::sun::star::uno::RuntimeException) */ = 0;
42 : virtual ::sal_Bool SAL_CALL isStorageElement( const ::rtl::OUString& sElementName ) /* throw (css::container::NoSuchElementException, css::lang::IllegalArgumentException, css::embed::InvalidStorageException, ::com::sun::star::uno::RuntimeException) */ = 0;
43 : virtual void SAL_CALL removeElement( const ::rtl::OUString& sElementName ) /* throw (css::embed::InvalidStorageException, css::lang::IllegalArgumentException, css::container::NoSuchElementException, css::io::IOException, css::embed::StorageWrappedTargetException, ::com::sun::star::uno::RuntimeException) */ = 0;
44 : virtual void SAL_CALL renameElement( const ::rtl::OUString& sElementName, const ::rtl::OUString& sNewName ) /* throw (css::embed::InvalidStorageException, css::lang::IllegalArgumentException, css::container::NoSuchElementException, css::container::ElementExistException, css::io::IOException, css::embed::StorageWrappedTargetException, ::com::sun::star::uno::RuntimeException) */ = 0;
45 : virtual void SAL_CALL copyElementTo( const ::rtl::OUString& sElementName, const ::com::sun::star::uno::Reference< css::embed::XStorage >& xDest, const ::rtl::OUString& sNewName ) /* throw (css::embed::InvalidStorageException, css::lang::IllegalArgumentException, css::container::NoSuchElementException, css::container::ElementExistException, css::io::IOException, css::embed::StorageWrappedTargetException, ::com::sun::star::uno::RuntimeException) */ = 0;
46 : virtual void SAL_CALL moveElementTo( const ::rtl::OUString& sElementName, const ::com::sun::star::uno::Reference< css::embed::XStorage >& xDest, const ::rtl::OUString& sNewName ) /* throw (css::embed::InvalidStorageException, css::lang::IllegalArgumentException, css::container::NoSuchElementException, css::container::ElementExistException, css::io::IOException, css::embed::StorageWrappedTargetException, ::com::sun::star::uno::RuntimeException) */ = 0;
47 :
48 : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
49 :
50 : protected:
51 11777 : ~XStorage() throw () {} // avoid warnings about virtual members and non-virtual dtor
52 : };
53 :
54 :
55 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::embed::XStorage const *);
56 : } } } }
57 :
58 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< css::embed::XStorage > *) SAL_THROW(());
59 :
60 : #endif
|