1*cdf0e10cSrcweir /************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir #ifndef __XSTORAGE_HXX_ 29*cdf0e10cSrcweir #define __XSTORAGE_HXX_ 30*cdf0e10cSrcweir 31*cdf0e10cSrcweir #include <com/sun/star/uno/Sequence.hxx> 32*cdf0e10cSrcweir #include <com/sun/star/embed/XStorage.hpp> 33*cdf0e10cSrcweir #include <com/sun/star/embed/XHierarchicalStorageAccess.hpp> 34*cdf0e10cSrcweir #include <com/sun/star/beans/XPropertySet.hpp> 35*cdf0e10cSrcweir #include <com/sun/star/beans/PropertyValue.hpp> 36*cdf0e10cSrcweir #include <com/sun/star/io/XStream.hpp> 37*cdf0e10cSrcweir #include <com/sun/star/lang/XSingleServiceFactory.hpp> 38*cdf0e10cSrcweir #include <com/sun/star/lang/XMultiServiceFactory.hpp> 39*cdf0e10cSrcweir #include <com/sun/star/lang/XTypeProvider.hpp> 40*cdf0e10cSrcweir #include <com/sun/star/lang/XComponent.hpp> 41*cdf0e10cSrcweir #include <com/sun/star/packages/NoEncryptionException.hpp> 42*cdf0e10cSrcweir #include <cppuhelper/weak.hxx> 43*cdf0e10cSrcweir #include <cppuhelper/interfacecontainer.h> 44*cdf0e10cSrcweir 45*cdf0e10cSrcweir #include <ucbhelper/content.hxx> 46*cdf0e10cSrcweir 47*cdf0e10cSrcweir struct FSStorage_Impl; 48*cdf0e10cSrcweir class FSStorage : public ::com::sun::star::lang::XTypeProvider 49*cdf0e10cSrcweir , public ::com::sun::star::embed::XStorage 50*cdf0e10cSrcweir , public ::com::sun::star::embed::XHierarchicalStorageAccess 51*cdf0e10cSrcweir , public ::com::sun::star::beans::XPropertySet 52*cdf0e10cSrcweir , public ::cppu::OWeakObject 53*cdf0e10cSrcweir { 54*cdf0e10cSrcweir ::osl::Mutex m_aMutex; 55*cdf0e10cSrcweir FSStorage_Impl* m_pImpl; 56*cdf0e10cSrcweir 57*cdf0e10cSrcweir protected: 58*cdf0e10cSrcweir 59*cdf0e10cSrcweir public: 60*cdf0e10cSrcweir 61*cdf0e10cSrcweir FSStorage( const ::ucbhelper::Content& aContent, 62*cdf0e10cSrcweir sal_Int32 nMode, 63*cdf0e10cSrcweir ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > xProperties, 64*cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > xFactory ); 65*cdf0e10cSrcweir 66*cdf0e10cSrcweir virtual ~FSStorage(); 67*cdf0e10cSrcweir 68*cdf0e10cSrcweir ::ucbhelper::Content* GetContent(); 69*cdf0e10cSrcweir 70*cdf0e10cSrcweir void CopyStreamToSubStream( const ::rtl::OUString& aSourceURL, 71*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xDest, 72*cdf0e10cSrcweir const ::rtl::OUString& aNewEntryName ); 73*cdf0e10cSrcweir 74*cdf0e10cSrcweir void CopyContentToStorage_Impl( ::ucbhelper::Content* pContent, 75*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xDest ); 76*cdf0e10cSrcweir 77*cdf0e10cSrcweir static sal_Bool MakeFolderNoUI( const String& rFolder, sal_Bool bNewOnly ); 78*cdf0e10cSrcweir 79*cdf0e10cSrcweir //____________________________________________________________________________________________________ 80*cdf0e10cSrcweir // XInterface 81*cdf0e10cSrcweir //____________________________________________________________________________________________________ 82*cdf0e10cSrcweir 83*cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& rType ) 84*cdf0e10cSrcweir throw( ::com::sun::star::uno::RuntimeException ); 85*cdf0e10cSrcweir 86*cdf0e10cSrcweir virtual void SAL_CALL acquire() throw(); 87*cdf0e10cSrcweir 88*cdf0e10cSrcweir virtual void SAL_CALL release() throw(); 89*cdf0e10cSrcweir 90*cdf0e10cSrcweir //____________________________________________________________________________________________________ 91*cdf0e10cSrcweir // XTypeProvider 92*cdf0e10cSrcweir //____________________________________________________________________________________________________ 93*cdf0e10cSrcweir 94*cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() 95*cdf0e10cSrcweir throw( ::com::sun::star::uno::RuntimeException ); 96*cdf0e10cSrcweir 97*cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() 98*cdf0e10cSrcweir throw( ::com::sun::star::uno::RuntimeException ); 99*cdf0e10cSrcweir 100*cdf0e10cSrcweir //____________________________________________________________________________________________________ 101*cdf0e10cSrcweir // XStorage 102*cdf0e10cSrcweir //____________________________________________________________________________________________________ 103*cdf0e10cSrcweir 104*cdf0e10cSrcweir virtual void SAL_CALL copyToStorage( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xDest ) 105*cdf0e10cSrcweir throw ( ::com::sun::star::embed::InvalidStorageException, 106*cdf0e10cSrcweir ::com::sun::star::lang::IllegalArgumentException, 107*cdf0e10cSrcweir ::com::sun::star::io::IOException, 108*cdf0e10cSrcweir ::com::sun::star::embed::StorageWrappedTargetException, 109*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException ); 110*cdf0e10cSrcweir 111*cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > SAL_CALL openStreamElement( 112*cdf0e10cSrcweir const ::rtl::OUString& aStreamName, sal_Int32 nOpenMode ) 113*cdf0e10cSrcweir throw ( ::com::sun::star::embed::InvalidStorageException, 114*cdf0e10cSrcweir ::com::sun::star::lang::IllegalArgumentException, 115*cdf0e10cSrcweir ::com::sun::star::packages::WrongPasswordException, 116*cdf0e10cSrcweir ::com::sun::star::io::IOException, 117*cdf0e10cSrcweir ::com::sun::star::embed::StorageWrappedTargetException, 118*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException ); 119*cdf0e10cSrcweir 120*cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > SAL_CALL openEncryptedStreamElement( 121*cdf0e10cSrcweir const ::rtl::OUString& aStreamName, sal_Int32 nOpenMode, const ::rtl::OUString& aPass ) 122*cdf0e10cSrcweir throw ( ::com::sun::star::embed::InvalidStorageException, 123*cdf0e10cSrcweir ::com::sun::star::lang::IllegalArgumentException, 124*cdf0e10cSrcweir ::com::sun::star::packages::NoEncryptionException, 125*cdf0e10cSrcweir ::com::sun::star::packages::WrongPasswordException, 126*cdf0e10cSrcweir ::com::sun::star::io::IOException, 127*cdf0e10cSrcweir ::com::sun::star::embed::StorageWrappedTargetException, 128*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException ); 129*cdf0e10cSrcweir 130*cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage > SAL_CALL openStorageElement( 131*cdf0e10cSrcweir const ::rtl::OUString& aStorName, sal_Int32 nStorageMode ) 132*cdf0e10cSrcweir throw ( ::com::sun::star::embed::InvalidStorageException, 133*cdf0e10cSrcweir ::com::sun::star::lang::IllegalArgumentException, 134*cdf0e10cSrcweir ::com::sun::star::io::IOException, 135*cdf0e10cSrcweir ::com::sun::star::embed::StorageWrappedTargetException, 136*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException ); 137*cdf0e10cSrcweir 138*cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > SAL_CALL cloneStreamElement( 139*cdf0e10cSrcweir const ::rtl::OUString& aStreamName ) 140*cdf0e10cSrcweir throw ( ::com::sun::star::embed::InvalidStorageException, 141*cdf0e10cSrcweir ::com::sun::star::lang::IllegalArgumentException, 142*cdf0e10cSrcweir ::com::sun::star::packages::WrongPasswordException, 143*cdf0e10cSrcweir ::com::sun::star::io::IOException, 144*cdf0e10cSrcweir ::com::sun::star::embed::StorageWrappedTargetException, 145*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException ); 146*cdf0e10cSrcweir 147*cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > SAL_CALL cloneEncryptedStreamElement( 148*cdf0e10cSrcweir const ::rtl::OUString& aStreamName, const ::rtl::OUString& aPass ) 149*cdf0e10cSrcweir throw ( ::com::sun::star::embed::InvalidStorageException, 150*cdf0e10cSrcweir ::com::sun::star::lang::IllegalArgumentException, 151*cdf0e10cSrcweir ::com::sun::star::packages::NoEncryptionException, 152*cdf0e10cSrcweir ::com::sun::star::packages::WrongPasswordException, 153*cdf0e10cSrcweir ::com::sun::star::io::IOException, 154*cdf0e10cSrcweir ::com::sun::star::embed::StorageWrappedTargetException, 155*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException ); 156*cdf0e10cSrcweir 157*cdf0e10cSrcweir virtual void SAL_CALL copyLastCommitTo( 158*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xTargetStorage ) 159*cdf0e10cSrcweir throw ( ::com::sun::star::embed::InvalidStorageException, 160*cdf0e10cSrcweir ::com::sun::star::lang::IllegalArgumentException, 161*cdf0e10cSrcweir ::com::sun::star::io::IOException, 162*cdf0e10cSrcweir ::com::sun::star::embed::StorageWrappedTargetException, 163*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException ); 164*cdf0e10cSrcweir 165*cdf0e10cSrcweir virtual void SAL_CALL copyStorageElementLastCommitTo( 166*cdf0e10cSrcweir const ::rtl::OUString& aStorName, 167*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xTargetStorage ) 168*cdf0e10cSrcweir throw ( ::com::sun::star::embed::InvalidStorageException, 169*cdf0e10cSrcweir ::com::sun::star::lang::IllegalArgumentException, 170*cdf0e10cSrcweir ::com::sun::star::io::IOException, 171*cdf0e10cSrcweir ::com::sun::star::embed::StorageWrappedTargetException, 172*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException ); 173*cdf0e10cSrcweir 174*cdf0e10cSrcweir virtual sal_Bool SAL_CALL isStreamElement( const ::rtl::OUString& aElementName ) 175*cdf0e10cSrcweir throw ( ::com::sun::star::container::NoSuchElementException, 176*cdf0e10cSrcweir ::com::sun::star::lang::IllegalArgumentException, 177*cdf0e10cSrcweir ::com::sun::star::embed::InvalidStorageException, 178*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException ); 179*cdf0e10cSrcweir 180*cdf0e10cSrcweir virtual sal_Bool SAL_CALL isStorageElement( const ::rtl::OUString& aElementName ) 181*cdf0e10cSrcweir throw ( ::com::sun::star::container::NoSuchElementException, 182*cdf0e10cSrcweir ::com::sun::star::lang::IllegalArgumentException, 183*cdf0e10cSrcweir ::com::sun::star::embed::InvalidStorageException, 184*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException ); 185*cdf0e10cSrcweir 186*cdf0e10cSrcweir virtual void SAL_CALL removeElement( const ::rtl::OUString& aElementName ) 187*cdf0e10cSrcweir throw ( ::com::sun::star::embed::InvalidStorageException, 188*cdf0e10cSrcweir ::com::sun::star::lang::IllegalArgumentException, 189*cdf0e10cSrcweir ::com::sun::star::container::NoSuchElementException, 190*cdf0e10cSrcweir ::com::sun::star::io::IOException, 191*cdf0e10cSrcweir ::com::sun::star::embed::StorageWrappedTargetException, 192*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException ); 193*cdf0e10cSrcweir 194*cdf0e10cSrcweir virtual void SAL_CALL renameElement( const ::rtl::OUString& rEleName, const ::rtl::OUString& rNewName ) 195*cdf0e10cSrcweir throw ( ::com::sun::star::embed::InvalidStorageException, 196*cdf0e10cSrcweir ::com::sun::star::lang::IllegalArgumentException, 197*cdf0e10cSrcweir ::com::sun::star::container::NoSuchElementException, 198*cdf0e10cSrcweir ::com::sun::star::container::ElementExistException, 199*cdf0e10cSrcweir ::com::sun::star::io::IOException, 200*cdf0e10cSrcweir ::com::sun::star::embed::StorageWrappedTargetException, 201*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException ); 202*cdf0e10cSrcweir 203*cdf0e10cSrcweir virtual void SAL_CALL copyElementTo( const ::rtl::OUString& aElementName, 204*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xDest, 205*cdf0e10cSrcweir const ::rtl::OUString& aNewName ) 206*cdf0e10cSrcweir throw ( ::com::sun::star::embed::InvalidStorageException, 207*cdf0e10cSrcweir ::com::sun::star::lang::IllegalArgumentException, 208*cdf0e10cSrcweir ::com::sun::star::container::NoSuchElementException, 209*cdf0e10cSrcweir ::com::sun::star::container::ElementExistException, 210*cdf0e10cSrcweir ::com::sun::star::io::IOException, 211*cdf0e10cSrcweir ::com::sun::star::embed::StorageWrappedTargetException, 212*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException ); 213*cdf0e10cSrcweir 214*cdf0e10cSrcweir virtual void SAL_CALL moveElementTo( const ::rtl::OUString& aElementName, 215*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xDest, 216*cdf0e10cSrcweir const ::rtl::OUString& rNewName ) 217*cdf0e10cSrcweir throw ( ::com::sun::star::embed::InvalidStorageException, 218*cdf0e10cSrcweir ::com::sun::star::lang::IllegalArgumentException, 219*cdf0e10cSrcweir ::com::sun::star::container::NoSuchElementException, 220*cdf0e10cSrcweir ::com::sun::star::container::ElementExistException, 221*cdf0e10cSrcweir ::com::sun::star::io::IOException, 222*cdf0e10cSrcweir ::com::sun::star::embed::StorageWrappedTargetException, 223*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException ); 224*cdf0e10cSrcweir 225*cdf0e10cSrcweir //____________________________________________________________________________________________________ 226*cdf0e10cSrcweir // XNameAccess 227*cdf0e10cSrcweir //____________________________________________________________________________________________________ 228*cdf0e10cSrcweir 229*cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL getByName( const ::rtl::OUString& aName ) 230*cdf0e10cSrcweir throw ( ::com::sun::star::container::NoSuchElementException, 231*cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 232*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException ); 233*cdf0e10cSrcweir 234*cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getElementNames() 235*cdf0e10cSrcweir throw ( ::com::sun::star::uno::RuntimeException ); 236*cdf0e10cSrcweir 237*cdf0e10cSrcweir virtual sal_Bool SAL_CALL hasByName( const ::rtl::OUString& aName ) 238*cdf0e10cSrcweir throw ( ::com::sun::star::uno::RuntimeException ); 239*cdf0e10cSrcweir 240*cdf0e10cSrcweir virtual ::com::sun::star::uno::Type SAL_CALL getElementType() 241*cdf0e10cSrcweir throw ( ::com::sun::star::uno::RuntimeException ); 242*cdf0e10cSrcweir 243*cdf0e10cSrcweir virtual sal_Bool SAL_CALL hasElements() 244*cdf0e10cSrcweir throw ( ::com::sun::star::uno::RuntimeException ); 245*cdf0e10cSrcweir 246*cdf0e10cSrcweir //____________________________________________________________________________________________________ 247*cdf0e10cSrcweir // XComponent 248*cdf0e10cSrcweir //____________________________________________________________________________________________________ 249*cdf0e10cSrcweir 250*cdf0e10cSrcweir virtual void SAL_CALL dispose() 251*cdf0e10cSrcweir throw ( ::com::sun::star::uno::RuntimeException ); 252*cdf0e10cSrcweir 253*cdf0e10cSrcweir virtual void SAL_CALL addEventListener( 254*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& xListener ) 255*cdf0e10cSrcweir throw ( ::com::sun::star::uno::RuntimeException ); 256*cdf0e10cSrcweir 257*cdf0e10cSrcweir virtual void SAL_CALL removeEventListener( 258*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& xListener ) 259*cdf0e10cSrcweir throw ( ::com::sun::star::uno::RuntimeException ); 260*cdf0e10cSrcweir 261*cdf0e10cSrcweir //____________________________________________________________________________________________________ 262*cdf0e10cSrcweir // XPropertySet 263*cdf0e10cSrcweir //____________________________________________________________________________________________________ 264*cdf0e10cSrcweir 265*cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() 266*cdf0e10cSrcweir throw ( ::com::sun::star::uno::RuntimeException ); 267*cdf0e10cSrcweir 268*cdf0e10cSrcweir virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue ) 269*cdf0e10cSrcweir throw ( ::com::sun::star::beans::UnknownPropertyException, 270*cdf0e10cSrcweir ::com::sun::star::beans::PropertyVetoException, 271*cdf0e10cSrcweir ::com::sun::star::lang::IllegalArgumentException, 272*cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 273*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException ); 274*cdf0e10cSrcweir 275*cdf0e10cSrcweir virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const ::rtl::OUString& PropertyName ) 276*cdf0e10cSrcweir throw ( ::com::sun::star::beans::UnknownPropertyException, 277*cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 278*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException ); 279*cdf0e10cSrcweir 280*cdf0e10cSrcweir virtual void SAL_CALL addPropertyChangeListener( 281*cdf0e10cSrcweir const ::rtl::OUString& aPropertyName, 282*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) 283*cdf0e10cSrcweir throw ( ::com::sun::star::beans::UnknownPropertyException, 284*cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 285*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException ); 286*cdf0e10cSrcweir 287*cdf0e10cSrcweir virtual void SAL_CALL removePropertyChangeListener( 288*cdf0e10cSrcweir const ::rtl::OUString& aPropertyName, 289*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener ) 290*cdf0e10cSrcweir throw ( ::com::sun::star::beans::UnknownPropertyException, 291*cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 292*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException ); 293*cdf0e10cSrcweir 294*cdf0e10cSrcweir virtual void SAL_CALL addVetoableChangeListener( 295*cdf0e10cSrcweir const ::rtl::OUString& PropertyName, 296*cdf0e10cSrcweir const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) 297*cdf0e10cSrcweir throw ( ::com::sun::star::beans::UnknownPropertyException, 298*cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 299*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException ); 300*cdf0e10cSrcweir 301*cdf0e10cSrcweir virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) 302*cdf0e10cSrcweir throw ( ::com::sun::star::beans::UnknownPropertyException, 303*cdf0e10cSrcweir ::com::sun::star::lang::WrappedTargetException, 304*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException ); 305*cdf0e10cSrcweir 306*cdf0e10cSrcweir //____________________________________________________________________________________________________ 307*cdf0e10cSrcweir // XHierarchicalStorageAccess 308*cdf0e10cSrcweir //____________________________________________________________________________________________________ 309*cdf0e10cSrcweir 310*cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::embed::XExtendedStorageStream > SAL_CALL openStreamElementByHierarchicalName( const ::rtl::OUString& sStreamPath, ::sal_Int32 nOpenMode ) 311*cdf0e10cSrcweir throw ( ::com::sun::star::embed::InvalidStorageException, 312*cdf0e10cSrcweir ::com::sun::star::lang::IllegalArgumentException, 313*cdf0e10cSrcweir ::com::sun::star::packages::WrongPasswordException, 314*cdf0e10cSrcweir ::com::sun::star::io::IOException, 315*cdf0e10cSrcweir ::com::sun::star::embed::StorageWrappedTargetException, 316*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException ); 317*cdf0e10cSrcweir 318*cdf0e10cSrcweir virtual ::com::sun::star::uno::Reference< ::com::sun::star::embed::XExtendedStorageStream > SAL_CALL openEncryptedStreamElementByHierarchicalName( const ::rtl::OUString& sStreamName, ::sal_Int32 nOpenMode, const ::rtl::OUString& sPassword ) 319*cdf0e10cSrcweir throw ( ::com::sun::star::embed::InvalidStorageException, 320*cdf0e10cSrcweir ::com::sun::star::lang::IllegalArgumentException, 321*cdf0e10cSrcweir ::com::sun::star::packages::NoEncryptionException, 322*cdf0e10cSrcweir ::com::sun::star::packages::WrongPasswordException, 323*cdf0e10cSrcweir ::com::sun::star::io::IOException, 324*cdf0e10cSrcweir ::com::sun::star::embed::StorageWrappedTargetException, 325*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException ); 326*cdf0e10cSrcweir 327*cdf0e10cSrcweir virtual void SAL_CALL removeStreamElementByHierarchicalName( const ::rtl::OUString& sElementPath ) 328*cdf0e10cSrcweir throw ( ::com::sun::star::embed::InvalidStorageException, 329*cdf0e10cSrcweir ::com::sun::star::lang::IllegalArgumentException, 330*cdf0e10cSrcweir ::com::sun::star::container::NoSuchElementException, 331*cdf0e10cSrcweir ::com::sun::star::io::IOException, 332*cdf0e10cSrcweir ::com::sun::star::embed::StorageWrappedTargetException, 333*cdf0e10cSrcweir ::com::sun::star::uno::RuntimeException ); 334*cdf0e10cSrcweir }; 335*cdf0e10cSrcweir 336*cdf0e10cSrcweir #endif 337*cdf0e10cSrcweir 338