LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/package/source/xstor - owriteablestream.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 12 17 70.6 %
Date: 2013-07-09 Functions: 7 12 58.3 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : #ifndef _WRITESTREAM_HXX_
      21             : #define _WRITESTREAM_HXX_
      22             : 
      23             : #include <com/sun/star/io/XInputStream.hpp>
      24             : #include <com/sun/star/io/XOutputStream.hpp>
      25             : #include <com/sun/star/io/XStream.hpp>
      26             : #include <com/sun/star/io/XSeekable.hpp>
      27             : #include <com/sun/star/io/XTruncate.hpp>
      28             : #include <com/sun/star/packages/XDataSinkEncrSupport.hpp>
      29             : #include <com/sun/star/packages/NoEncryptionException.hpp>
      30             : #include <com/sun/star/lang/XEventListener.hpp>
      31             : #include <com/sun/star/lang/XSingleServiceFactory.hpp>
      32             : #include <com/sun/star/lang/XComponent.hpp>
      33             : #include <com/sun/star/embed/XEncryptionProtectedSource2.hpp>
      34             : #include <com/sun/star/embed/XStorage.hpp>
      35             : #include <com/sun/star/embed/XRelationshipAccess.hpp>
      36             : #include <com/sun/star/embed/XExtendedStorageStream.hpp>
      37             : #include <com/sun/star/embed/XTransactedObject.hpp>
      38             : #include <com/sun/star/embed/XTransactionBroadcaster.hpp>
      39             : #include <com/sun/star/container/XNameContainer.hpp>
      40             : #include <com/sun/star/beans/StringPair.hpp>
      41             : #include <com/sun/star/logging/XSimpleLogRing.hpp>
      42             : 
      43             : 
      44             : #include <cppuhelper/implbase1.hxx>
      45             : #include <cppuhelper/weak.hxx>
      46             : #include <cppuhelper/interfacecontainer.h>
      47             : 
      48             : #include <comphelper/sequenceashashmap.hxx>
      49             : 
      50             : #include <list>
      51             : 
      52             : #include "ocompinstream.hxx"
      53             : #include "mutexholder.hxx"
      54             : 
      55             : 
      56        5557 : struct PreCreationStruct
      57             : {
      58             :     SotMutexHolderRef m_rMutexRef;
      59             : 
      60        5597 :     PreCreationStruct()
      61        5597 :     : m_rMutexRef( new SotMutexHolder )
      62        5597 :     {}
      63             : 
      64             : };
      65             : 
      66             : namespace cppu {
      67             :     class OTypeCollection;
      68             : }
      69             : 
      70             : namespace package {
      71             :     void StaticAddLog( const OUString& aMessage );
      72             :     bool PackageEncryptionDatasEqual( const ::comphelper::SequenceAsHashMap& aHash1, const ::comphelper::SequenceAsHashMap& aHash2 );
      73             : }
      74             : 
      75        2634 : struct WSInternalData_Impl
      76             : {
      77             :     SotMutexHolderRef m_rSharedMutexRef;
      78             :     ::cppu::OTypeCollection* m_pTypeCollection;
      79             :     ::cppu::OMultiTypeInterfaceContainerHelper m_aListenersContainer; // list of listeners
      80             :     sal_Int32 m_nStorageType;
      81             : 
      82             :     // the mutex reference MUST NOT be empty
      83        2634 :     WSInternalData_Impl( const SotMutexHolderRef rMutexRef, sal_Int32 nStorageType )
      84             :     : m_rSharedMutexRef( rMutexRef )
      85             :     , m_pTypeCollection( NULL )
      86        2634 :     , m_aListenersContainer( rMutexRef->GetMutex() )
      87        5268 :     , m_nStorageType( nStorageType )
      88        2634 :     {}
      89             : };
      90             : 
      91             : typedef ::std::list< OInputCompStream* > InputStreamsList_Impl;
      92             : 
      93             : struct OStorage_Impl;
      94             : class OWriteStream;
      95             : 
      96             : struct OWriteStream_Impl : public PreCreationStruct
      97             : {
      98             :     friend struct OStorage_Impl;
      99             :     friend class OWriteStream;
     100             :     friend class OInputCompStream;
     101             : 
     102             :     OWriteStream*   m_pAntiImpl;
     103             :     OUString m_aTempURL;
     104             : 
     105             :     ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > m_xCacheStream;
     106             :     ::com::sun::star::uno::Reference< ::com::sun::star::io::XSeekable > m_xCacheSeek;
     107             : 
     108             :     InputStreamsList_Impl m_aInputStreamsList;
     109             : 
     110             :     sal_Bool                        m_bHasDataToFlush;    // only modified elements will be sent to the original content
     111             :     sal_Bool                        m_bFlushed;      // sending the streams is coordinated by the root storage of the package
     112             : 
     113             :     ::com::sun::star::uno::Reference< ::com::sun::star::packages::XDataSinkEncrSupport > m_xPackageStream;
     114             :     ::com::sun::star::uno::Reference< ::com::sun::star::logging::XSimpleLogRing >  m_xLogRing;
     115             : 
     116             :     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > m_xContext;
     117             : 
     118             :     OStorage_Impl* m_pParent;
     119             : 
     120             :     ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > m_aProps;
     121             : 
     122             :     sal_Bool m_bForceEncrypted;
     123             : 
     124             :     sal_Bool m_bUseCommonEncryption;
     125             :     sal_Bool m_bHasCachedEncryptionData;
     126             :     ::comphelper::SequenceAsHashMap m_aEncryptionData;
     127             : 
     128             :     sal_Bool m_bCompressedSetExplicit;
     129             : 
     130             :     ::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleServiceFactory > m_xPackage;
     131             : 
     132             :     sal_Bool m_bHasInsertedStreamOptimization;
     133             : 
     134             :     sal_Int32 m_nStorageType;
     135             : 
     136             :     // Relations info related data, stored in *.rels file in OFOPXML format
     137             :     ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > m_xOrigRelInfoStream;
     138             :     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::beans::StringPair > > m_aOrigRelInfo;
     139             :     sal_Bool m_bOrigRelInfoBroken;
     140             : 
     141             :     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::beans::StringPair > > m_aNewRelInfo;
     142             :     ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > m_xNewRelInfoStream;
     143             :     sal_Int16 m_nRelInfoStatus;
     144             :     sal_Int32 m_nRelId;
     145             : 
     146             : 
     147             : private:
     148             :     OUString GetFilledTempFileIfNo( const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& xStream );
     149             :     OUString FillTempGetFileName();
     150             :     ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream >       GetTempFileAsStream();
     151             :     ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >  GetTempFileAsInputStream();
     152             : 
     153             :     ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > GetStream_Impl( sal_Int32 nStreamMode,
     154             :                                                                                         sal_Bool bHierarchyAccess );
     155             : 
     156             :     ::comphelper::SequenceAsHashMap GetCommonRootEncryptionData() throw ( ::com::sun::star::packages::NoEncryptionException );
     157             : 
     158             :     ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > ReadPackageStreamProperties();
     159             :     ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > InsertOwnProps(
     160             :                             const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aProps,
     161             :                             sal_Bool bUseCommonEncryption );
     162             : 
     163             : public:
     164             :     OWriteStream_Impl(
     165             :                 OStorage_Impl* pParent,
     166             :                 const ::com::sun::star::uno::Reference< ::com::sun::star::packages::XDataSinkEncrSupport >& xPackageStream,
     167             :                 const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XSingleServiceFactory >& xPackage,
     168             :                 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext,
     169             :                 sal_Bool bForceEncrypted,
     170             :                 sal_Int32 nStorageType,
     171             :                 sal_Bool bDefaultCompress,
     172             :                 const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& xRelInfoStream =
     173             :                     ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >() );
     174             : 
     175             :     ~OWriteStream_Impl();
     176             : 
     177             :     void CleanCacheStream();
     178             : 
     179             :     void AddLog( const OUString& aMessage );
     180             : 
     181           2 :     sal_Bool UsesCommonEncryption_Impl() { return m_bUseCommonEncryption; }
     182           2 :     sal_Bool HasTempFile_Impl() const { return ( m_aTempURL.getLength() != 0 ); }
     183             :     sal_Bool IsTransacted();
     184             : 
     185           0 :     sal_Bool HasWriteOwner_Impl() const { return ( m_pAntiImpl != NULL ); }
     186             : 
     187             :     void InsertIntoPackageFolder(
     188             :             const OUString& aName,
     189             :             const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer >& xParentPackageFolder );
     190             : 
     191           0 :     void SetToBeCommited() { m_bFlushed = sal_True; }
     192             : 
     193           0 :     sal_Bool HasCachedEncryptionData() { return m_bHasCachedEncryptionData; }
     194           0 :     ::comphelper::SequenceAsHashMap& GetCachedEncryptionData() { return m_aEncryptionData; }
     195             : 
     196           0 :     sal_Bool IsModified() { return m_bHasDataToFlush || m_bFlushed; }
     197             : 
     198             :     sal_Bool IsEncrypted();
     199             :     void SetDecrypted();
     200             :     void SetEncrypted( const ::comphelper::SequenceAsHashMap& aEncryptionData );
     201             : 
     202             :     void DisposeWrappers();
     203             : 
     204             :     void InsertStreamDirectly(
     205             :             const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& xInStream,
     206             :             const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aProps );
     207             : 
     208             :     void Commit();
     209             :     void Revert();
     210             : 
     211             :     void Free( sal_Bool bMust ); // allows to try to disconnect from the temporary stream
     212             :                                  // in case bMust is set to sal_True the method
     213             :                                 // will throw exception in case the file is still busy
     214             : 
     215             :     void SetModified(); // can be done only by parent storage after renaming
     216             : 
     217             :     ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > GetStreamProperties();
     218             : 
     219             :     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::beans::StringPair > > GetAllRelationshipsIfAny();
     220             : 
     221             :     void CopyInternallyTo_Impl( const ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream >& xDestStream,
     222             :                                 const ::comphelper::SequenceAsHashMap& aEncryptionData );
     223             :     void CopyInternallyTo_Impl( const ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream >& xDestStream );
     224             : 
     225             :     ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > GetStream(
     226             :                         sal_Int32 nStreamMode,
     227             :                         const ::comphelper::SequenceAsHashMap& aEncryptionData,
     228             :                         sal_Bool bHierarchyAccess );
     229             : 
     230             :     ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > GetStream(
     231             :                         sal_Int32 nStreamMode,
     232             :                         sal_Bool bHierarchyAccess );
     233             : 
     234             : 
     235             :     ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > GetRawInStream();
     236             :     ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > GetPlainRawInStream();
     237             : 
     238             :     void InputStreamDisposed( OInputCompStream* pStream );
     239             : 
     240             :     void CreateReadonlyCopyBasedOnData(
     241             :                     const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& xDataToCopy,
     242             :                     const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aProps,
     243             :                     sal_Bool bUseCommonEncryption,
     244             :                     ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream >& xTargetStream );
     245             : 
     246             :     void GetCopyOfLastCommit( ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream >& xTargetStream );
     247             :     void GetCopyOfLastCommit(
     248             :                   ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream >& xTargetStream,
     249             :                             const ::comphelper::SequenceAsHashMap& aEncryptionData );
     250             : 
     251             : 
     252             :     void CommitStreamRelInfo(
     253             :                     const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xRelStorage,
     254             :                     const OUString& aOrigStreamName,
     255             :                     const OUString& aNewStreamName );
     256             : 
     257             :     void ReadRelInfoIfNecessary();
     258             : 
     259         184 :     sal_Int32 GetNewRelId() { return m_nRelId ++; }
     260             : };
     261             : 
     262             : class OWriteStream : ::com::sun::star::lang::XTypeProvider
     263             :             , public ::com::sun::star::io::XInputStream
     264             :             , public ::com::sun::star::io::XOutputStream
     265             :             , public ::com::sun::star::embed::XExtendedStorageStream
     266             :             , public ::com::sun::star::io::XSeekable
     267             :             , public ::com::sun::star::io::XTruncate
     268             :             , public ::com::sun::star::embed::XEncryptionProtectedSource2
     269             :             , public ::com::sun::star::embed::XRelationshipAccess
     270             :             , public ::com::sun::star::embed::XTransactedObject
     271             :             , public ::com::sun::star::embed::XTransactionBroadcaster
     272             :             , public ::com::sun::star::beans::XPropertySet
     273             :             , public ::cppu::OWeakObject
     274             : {
     275             :     friend struct OWriteStream_Impl;
     276             : 
     277             : protected:
     278             :     ::com::sun::star::uno::Reference < ::com::sun::star::io::XInputStream > m_xInStream;
     279             :     ::com::sun::star::uno::Reference < ::com::sun::star::io::XOutputStream > m_xOutStream;
     280             :     ::com::sun::star::uno::Reference < ::com::sun::star::io::XSeekable > m_xSeekable;
     281             : 
     282             :     OWriteStream_Impl* m_pImpl;
     283             :     WSInternalData_Impl* m_pData;
     284             : 
     285             :     sal_Bool m_bInStreamDisconnected;
     286             :     sal_Bool m_bInitOnDemand;
     287             :     sal_Int64 m_nInitPosition;
     288             : 
     289             :     sal_Bool m_bTransacted;
     290             : 
     291             :     OWriteStream( OWriteStream_Impl* pImpl, sal_Bool bTransacted );
     292             :     OWriteStream( OWriteStream_Impl* pImpl, ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > xStream, sal_Bool bTransacted );
     293             : 
     294             :     void CloseOutput_Impl();
     295             : 
     296             :     void CopyToStreamInternally_Impl( const ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream >& xStream );
     297             : 
     298             :     void ModifyParentUnlockMutex_Impl( ::osl::ResettableMutexGuard& aGuard );
     299             : 
     300             :     void BroadcastTransaction( sal_Int8 nMessage );
     301             : 
     302             : public:
     303             : 
     304             :     virtual ~OWriteStream();
     305             : 
     306             :     void CheckInitOnDemand();
     307             :     void DeInit();
     308             : 
     309             :     // XInterface
     310             :     virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& rType )
     311             :         throw( ::com::sun::star::uno::RuntimeException );
     312             :     virtual void SAL_CALL acquire() throw();
     313             :     virtual void SAL_CALL release() throw();
     314             : 
     315             :     //  XTypeProvider
     316             :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes()
     317             :         throw( ::com::sun::star::uno::RuntimeException );
     318             :     virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId()
     319             :         throw( ::com::sun::star::uno::RuntimeException );
     320             : 
     321             :     // XInputStream
     322             :     virtual sal_Int32 SAL_CALL readBytes( ::com::sun::star::uno::Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead )
     323             :         throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::BufferSizeExceededException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
     324             :     virtual sal_Int32 SAL_CALL readSomeBytes( ::com::sun::star::uno::Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead ) throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::BufferSizeExceededException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
     325             :     virtual void SAL_CALL skipBytes( sal_Int32 nBytesToSkip )
     326             :         throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::BufferSizeExceededException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
     327             :     virtual sal_Int32 SAL_CALL available(  )
     328             :         throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
     329             :     virtual void SAL_CALL closeInput(  )
     330             :         throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
     331             : 
     332             :     // XOutputStream
     333             :     virtual void SAL_CALL writeBytes( const ::com::sun::star::uno::Sequence< sal_Int8 >& aData ) throw (::com::sun::star::io::NotConnectedException, ::com::sun::star::io::BufferSizeExceededException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
     334             :     virtual void SAL_CALL flush(  ) throw (::com::sun::star::io::NotConnectedException, ::com::sun::star::io::BufferSizeExceededException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
     335             :     virtual void SAL_CALL closeOutput(  ) throw (::com::sun::star::io::NotConnectedException, ::com::sun::star::io::BufferSizeExceededException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
     336             : 
     337             :     //XSeekable
     338             :     virtual void SAL_CALL seek( sal_Int64 location ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
     339             :     virtual sal_Int64 SAL_CALL getPosition() throw (::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
     340             :     virtual sal_Int64 SAL_CALL getLength() throw (::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
     341             : 
     342             :     //XStream
     343             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > SAL_CALL getInputStream(  ) throw (::com::sun::star::uno::RuntimeException);
     344             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream > SAL_CALL getOutputStream(  ) throw (::com::sun::star::uno::RuntimeException);
     345             : 
     346             :     // XTruncate
     347             :     virtual void SAL_CALL truncate() throw (::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
     348             : 
     349             :     //XComponent
     350             :     virtual void SAL_CALL dispose() throw (::com::sun::star::uno::RuntimeException);
     351             :     virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
     352             :     virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& aListener ) throw (::com::sun::star::uno::RuntimeException);
     353             : 
     354             :     //XEncryptionProtectedSource
     355             :     virtual void SAL_CALL setEncryptionPassword( const OUString& aPass )
     356             :         throw ( ::com::sun::star::uno::RuntimeException,
     357             :                 ::com::sun::star::io::IOException );
     358             :     virtual void SAL_CALL removeEncryption()
     359             :         throw ( ::com::sun::star::uno::RuntimeException,
     360             :                 ::com::sun::star::io::IOException );
     361             : 
     362             :     //XEncryptionProtectedSource2
     363             :     virtual void SAL_CALL setEncryptionData( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& aEncryptionData ) throw (::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
     364             :     virtual sal_Bool SAL_CALL hasEncryptionData() throw (::com::sun::star::uno::RuntimeException);
     365             : 
     366             :     //XRelationshipAccess
     367             :     virtual ::sal_Bool SAL_CALL hasByID( const OUString& sID ) throw (::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
     368             :     virtual OUString SAL_CALL getTargetByID( const OUString& sID ) throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
     369             :     virtual OUString SAL_CALL getTypeByID( const OUString& sID ) throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
     370             :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::StringPair > SAL_CALL getRelationshipByID( const OUString& sID ) throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
     371             :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::beans::StringPair > > SAL_CALL getRelationshipsByType( const OUString& sType ) throw (::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
     372             :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::beans::StringPair > > SAL_CALL getAllRelationships(  ) throw (::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
     373             :     virtual void SAL_CALL insertRelationshipByID( const OUString& sID, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::StringPair >& aEntry, ::sal_Bool bReplace ) throw (::com::sun::star::container::ElementExistException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
     374             :     virtual void SAL_CALL removeRelationshipByID( const OUString& sID ) throw (::com::sun::star::container::NoSuchElementException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
     375             :     virtual void SAL_CALL insertRelationships( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::beans::StringPair > >& aEntries, ::sal_Bool bReplace ) throw (::com::sun::star::container::ElementExistException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
     376             :     virtual void SAL_CALL clearRelationships(  ) throw (::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
     377             : 
     378             :     //XPropertySet
     379             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() throw ( ::com::sun::star::uno::RuntimeException );
     380             :     virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue ) throw ( ::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException );
     381             :     virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) throw ( ::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException );
     382             :     virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& xListener ) throw ( ::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException );
     383             :     virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertyChangeListener >& aListener ) throw ( ::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException );
     384             :     virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw ( ::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException );
     385             :     virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName, const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XVetoableChangeListener >& aListener ) throw ( ::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException );
     386             : 
     387             :     // XTransactedObject
     388             :     virtual void SAL_CALL commit()
     389             :         throw ( ::com::sun::star::io::IOException,
     390             :                 ::com::sun::star::embed::StorageWrappedTargetException,
     391             :                 ::com::sun::star::uno::RuntimeException );
     392             :     virtual void SAL_CALL revert()
     393             :         throw ( ::com::sun::star::io::IOException,
     394             :                 ::com::sun::star::embed::StorageWrappedTargetException,
     395             :                 ::com::sun::star::uno::RuntimeException );
     396             : 
     397             :     // XTransactionBroadcaster
     398             :     virtual void SAL_CALL addTransactionListener(
     399             :             const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XTransactionListener >& aListener )
     400             :         throw ( ::com::sun::star::uno::RuntimeException );
     401             :     virtual void SAL_CALL removeTransactionListener(
     402             :             const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XTransactionListener >& aListener )
     403             :         throw ( ::com::sun::star::uno::RuntimeException );
     404             : 
     405             : };
     406             : 
     407             : #endif
     408             : 
     409             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10