LCOV - code coverage report
Current view: top level - embeddedobj/source/inc - commonembobj.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 2 2 100.0 %
Date: 2012-08-25 Functions: 2 2 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : 
      29                 :            : #ifndef _INC_COMMONEMBOBJ_HXX_
      30                 :            : #define _INC_COMMONEMBOBJ_HXX_
      31                 :            : 
      32                 :            : #include <com/sun/star/uno/Sequence.hxx>
      33                 :            : #include <com/sun/star/uno/Reference.hxx>
      34                 :            : #include <com/sun/star/uno/Any.hxx>
      35                 :            : #include <com/sun/star/container/XChild.hpp>
      36                 :            : #include <com/sun/star/document/XStorageBasedDocument.hpp>
      37                 :            : #include <com/sun/star/embed/XEmbeddedObject.hpp>
      38                 :            : #include <com/sun/star/embed/XVisualObject.hpp>
      39                 :            : #include <com/sun/star/embed/XEmbedPersist.hpp>
      40                 :            : #include <com/sun/star/embed/XLinkageSupport.hpp>
      41                 :            : #include <com/sun/star/embed/XClassifiedObject.hpp>
      42                 :            : #include <com/sun/star/embed/XComponentSupplier.hpp>
      43                 :            : #include <com/sun/star/embed/XInplaceObject.hpp>
      44                 :            : #include <com/sun/star/embed/XStateChangeBroadcaster.hpp>
      45                 :            : #include <com/sun/star/awt/XWindow.hpp>
      46                 :            : #include <com/sun/star/awt/Rectangle.hpp>
      47                 :            : #include <com/sun/star/document/XEventBroadcaster.hpp>
      48                 :            : #include <com/sun/star/util/XCloseable.hpp>
      49                 :            : #include <com/sun/star/chart2/XDefaultSizeTransmitter.hpp>
      50                 :            : #include <cppuhelper/weak.hxx>
      51                 :            : 
      52                 :            : namespace com { namespace sun { namespace star {
      53                 :            :     namespace embed {
      54                 :            :         class XStorage;
      55                 :            :     }
      56                 :            :     namespace lang {
      57                 :            :         class XMultiServiceFactory;
      58                 :            :     }
      59                 :            :     namespace util {
      60                 :            :         class XCloseListener;
      61                 :            :     }
      62                 :            :     namespace beans {
      63                 :            :         struct PropertyValue;
      64                 :            :         struct NamedValue;
      65                 :            :     }
      66                 :            : }}}
      67                 :            : 
      68                 :            : namespace cppu {
      69                 :            :     class OMultiTypeInterfaceContainerHelper;
      70                 :            : }
      71                 :            : 
      72                 :            : namespace comphelper {
      73                 :            :     class NamedValueCollection;
      74                 :            : }
      75                 :            : 
      76                 :            : #define NUM_SUPPORTED_STATES 5
      77                 :            : // #define NUM_SUPPORTED_VERBS 5
      78                 :            : 
      79                 :            : #include "docholder.hxx"
      80                 :            : 
      81                 :            : class Interceptor;
      82                 :            : 
      83                 :            : class OCommonEmbeddedObject : public ::com::sun::star::embed::XEmbeddedObject
      84                 :            :                             , public ::com::sun::star::embed::XEmbedPersist
      85                 :            :                             , public ::com::sun::star::embed::XLinkageSupport
      86                 :            :                             , public ::com::sun::star::embed::XInplaceObject
      87                 :            :                             , public ::com::sun::star::container::XChild
      88                 :            :                             , public ::com::sun::star::chart2::XDefaultSizeTransmitter
      89                 :            :                             , public ::cppu::OWeakObject
      90                 :            : {
      91                 :            : protected:
      92                 :            :     ::osl::Mutex    m_aMutex;
      93                 :            : 
      94                 :            :     DocumentHolder* m_pDocHolder;
      95                 :            : 
      96                 :            :     ::cppu::OMultiTypeInterfaceContainerHelper* m_pInterfaceContainer;
      97                 :            : 
      98                 :            :     sal_Bool m_bReadOnly;
      99                 :            : 
     100                 :            :     sal_Bool m_bDisposed;
     101                 :            :     sal_Bool m_bClosed;
     102                 :            : 
     103                 :            :     sal_Int32 m_nObjectState;
     104                 :            :     sal_Int32 m_nTargetState; // should be -1 exept during state changing
     105                 :            :     sal_Int32 m_nUpdateMode;
     106                 :            : 
     107                 :            :     ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_xFactory;
     108                 :            : 
     109                 :            :     ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > m_aDocMediaDescriptor;
     110                 :            : 
     111                 :            :     ::com::sun::star::uno::Sequence< sal_Int8 > m_aClassID;
     112                 :            :     ::rtl::OUString m_aClassName;
     113                 :            : 
     114                 :            :     ::rtl::OUString m_aDocServiceName;
     115                 :            :     ::rtl::OUString m_aPresetFilterName;
     116                 :            : 
     117                 :            :     sal_Int64 m_nMiscStatus;
     118                 :            : 
     119                 :            :     ::com::sun::star::uno::Sequence< ::com::sun::star::embed::VerbDescriptor > m_aObjectVerbs;
     120                 :            : 
     121                 :            :     ::com::sun::star::uno::Sequence< sal_Int32 > m_aAcceptedStates;
     122                 :            :     ::com::sun::star::uno::Sequence< sal_Int32 > m_pIntermediateStatesSeqs[NUM_SUPPORTED_STATES][NUM_SUPPORTED_STATES];
     123                 :            :     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< sal_Int32 > > m_aVerbTable;
     124                 :            : 
     125                 :            :     ::com::sun::star::uno::Reference< ::com::sun::star::embed::XEmbeddedClient > m_xClientSite;
     126                 :            : 
     127                 :            :     ::rtl::OUString m_aContainerName;
     128                 :            :     ::rtl::OUString m_aDefaultParentBaseURL;
     129                 :            :     ::rtl::OUString m_aModuleName;
     130                 :            :     sal_Bool        m_bEmbeddedScriptSupport;
     131                 :            :     sal_Bool        m_bDocumentRecoverySupport;
     132                 :            : 
     133                 :            :     Interceptor* m_pInterceptor;
     134                 :            : 
     135                 :            :     // following information will be used between SaveAs and SaveCompleted
     136                 :            :     sal_Bool m_bWaitSaveCompleted;
     137                 :            :     ::rtl::OUString m_aNewEntryName;
     138                 :            :     ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage > m_xNewParentStorage;
     139                 :            :     ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage > m_xNewObjectStorage;
     140                 :            :     ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > m_aNewDocMediaDescriptor;
     141                 :            : 
     142                 :            :     ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > m_xClientWindow; // ???
     143                 :            :     ::com::sun::star::awt::Rectangle m_aOwnRectangle;
     144                 :            :     ::com::sun::star::awt::Rectangle m_aClipRectangle;
     145                 :            : 
     146                 :            :     sal_Bool m_bIsLink;
     147                 :            : 
     148                 :            :     // embedded object related stuff
     149                 :            :     ::rtl::OUString m_aEntryName;
     150                 :            :     ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage > m_xParentStorage;
     151                 :            :     ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage > m_xObjectStorage;
     152                 :            :     ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage > m_xRecoveryStorage;
     153                 :            : 
     154                 :            :     // link related stuff
     155                 :            :     ::rtl::OUString m_aLinkURL;
     156                 :            :     ::rtl::OUString m_aLinkFilterName;
     157                 :            :     sal_Bool        m_bLinkHasPassword;
     158                 :            :     ::rtl::OUString m_aLinkPassword;
     159                 :            : 
     160                 :            :     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > m_xParent;
     161                 :            : 
     162                 :            :     sal_Bool m_bHasClonedSize; // the object has cached size
     163                 :            :     ::com::sun::star::awt::Size m_aClonedSize;
     164                 :            :     sal_Int32 m_nClonedMapUnit;
     165                 :            :     ::com::sun::star::awt::Size m_aDefaultSizeForChart_In_100TH_MM;//#i103460# charts do not necessaryly have an own size within ODF files, in this case they need to use the size settings from the surrounding frame, which is made available with this member
     166                 :            : 
     167                 :            : private:
     168                 :            :     void CommonInit_Impl( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& aObjectProps );
     169                 :            : 
     170                 :            :     void LinkInit_Impl( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& aObjectProps,
     171                 :            :                         const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aMediaDescr,
     172                 :            :                         const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aObjectDescr );
     173                 :            : 
     174                 :            : 
     175                 :            :     void SwitchOwnPersistence(
     176                 :            :                 const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xNewParentStorage,
     177                 :            :                 const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xNewObjectStorage,
     178                 :            :                 const ::rtl::OUString& aNewName );
     179                 :            : 
     180                 :            :     void SwitchOwnPersistence(
     181                 :            :                 const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xNewParentStorage,
     182                 :            :                 const ::rtl::OUString& aNewName );
     183                 :            : 
     184                 :       1326 :     ::rtl::OUString GetDocumentServiceName() const { return m_aDocServiceName; }
     185                 :        867 :     ::rtl::OUString GetPresetFilterName() const { return m_aPresetFilterName; }
     186                 :            : 
     187                 :            :     ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >
     188                 :            :         StoreDocumentToTempStream_Impl( sal_Int32 nStorageFormat,
     189                 :            :                                         const ::rtl::OUString& aBaseURL,
     190                 :            :                                         const ::rtl::OUString& aHierarchName );
     191                 :            : 
     192                 :            :     sal_Int32 ConvertVerbToState_Impl( sal_Int32 nVerb );
     193                 :            : 
     194                 :            :     void Deactivate();
     195                 :            : 
     196                 :            :     void StateChangeNotification_Impl( sal_Bool bBeforeChange, sal_Int32 nOldState, sal_Int32 nNewState,::osl::ResettableMutexGuard& _rGuard );
     197                 :            : 
     198                 :            :     void SwitchStateTo_Impl( sal_Int32 nNextState );
     199                 :            : 
     200                 :            :     ::com::sun::star::uno::Sequence< sal_Int32 > GetIntermediateStatesSequence_Impl( sal_Int32 nNewState );
     201                 :            : 
     202                 :            :     ::rtl::OUString GetFilterName( sal_Int32 nVersion ) const;
     203                 :            :     ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseable > LoadDocumentFromStorage_Impl();
     204                 :            : 
     205                 :            :     ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseable > LoadLink_Impl();
     206                 :            : 
     207                 :            :     ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseable > InitNewDocument_Impl();
     208                 :            : 
     209                 :            :     void StoreDocToStorage_Impl( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage,
     210                 :            :                                 sal_Int32 nStorageVersion,
     211                 :            :                                 const ::rtl::OUString& aBaseURL,
     212                 :            :                                 const ::rtl::OUString& aHierarchName,
     213                 :            :                                 sal_Bool bAttachToStorage );
     214                 :            : 
     215                 :            :     void SwitchDocToStorage_Impl(
     216                 :            :             const ::com::sun::star::uno::Reference< ::com::sun::star::document::XStorageBasedDocument >& xDoc,
     217                 :            :             const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage );
     218                 :            : 
     219                 :            :     void FillDefaultLoadArgs_Impl(
     220                 :            :             const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& i_rxStorage,
     221                 :            :                   ::comphelper::NamedValueCollection& o_rLoadArgs
     222                 :            :         ) const;
     223                 :            : 
     224                 :            :     void EmbedAndReparentDoc_Impl(
     225                 :            :             const ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseable >& i_rxDocument
     226                 :            :         ) const;
     227                 :            : 
     228                 :            :     ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseable > CreateDocFromMediaDescr_Impl(
     229                 :            :                         const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aMedDescr );
     230                 :            : 
     231                 :            :     ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseable > CreateTempDocFromLink_Impl();
     232                 :            : 
     233                 :            :     ::rtl::OUString GetBaseURL_Impl() const;
     234                 :            :     ::rtl::OUString GetBaseURLFrom_Impl(
     235                 :            :                     const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lArguments,
     236                 :            :                     const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lObjArgs );
     237                 :            : 
     238                 :            : public:
     239                 :            :     OCommonEmbeddedObject(
     240                 :            :         const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xFactory,
     241                 :            :         const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& aObjectProps );
     242                 :            : 
     243                 :            :     // no persistance for linked objects, so the descriptors are provided in constructor
     244                 :            :     OCommonEmbeddedObject(
     245                 :            :         const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xFactory,
     246                 :            :         const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& aObjectProps,
     247                 :            :         const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aMediaDescr,
     248                 :            :         const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aObjectDescr );
     249                 :            : 
     250                 :            :     virtual ~OCommonEmbeddedObject();
     251                 :            : 
     252                 :            :     void SaveObject_Impl();
     253                 :            : 
     254                 :            :     void requestPositioning( const ::com::sun::star::awt::Rectangle& aRect );
     255                 :            : 
     256                 :            :     // not a real listener and should not be
     257                 :            :     void PostEvent_Impl( const ::rtl::OUString& aEventName );
     258                 :            : 
     259                 :            : // XInterface
     260                 :            : 
     261                 :            :     virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& rType )
     262                 :            :         throw( ::com::sun::star::uno::RuntimeException ) ;
     263                 :            : 
     264                 :            :     virtual void SAL_CALL acquire()
     265                 :            :         throw();
     266                 :            : 
     267                 :            :     virtual void SAL_CALL release()
     268                 :            :         throw();
     269                 :            : 
     270                 :            : // XTypeProvider
     271                 :            : 
     272                 :            :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes()
     273                 :            :         throw( ::com::sun::star::uno::RuntimeException ) ;
     274                 :            : 
     275                 :            :     virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId()
     276                 :            :         throw( ::com::sun::star::uno::RuntimeException ) ;
     277                 :            : 
     278                 :            : // XEmbeddedObject
     279                 :            : 
     280                 :            :     virtual void SAL_CALL changeState( sal_Int32 nNewState )
     281                 :            :         throw ( ::com::sun::star::embed::UnreachableStateException,
     282                 :            :                 ::com::sun::star::embed::WrongStateException,
     283                 :            :                 ::com::sun::star::uno::Exception,
     284                 :            :                 ::com::sun::star::uno::RuntimeException );
     285                 :            : 
     286                 :            :     virtual ::com::sun::star::uno::Sequence< sal_Int32 > SAL_CALL getReachableStates()
     287                 :            :         throw ( ::com::sun::star::embed::WrongStateException,
     288                 :            :                 ::com::sun::star::uno::RuntimeException );
     289                 :            : 
     290                 :            :     virtual sal_Int32 SAL_CALL getCurrentState()
     291                 :            :         throw ( ::com::sun::star::embed::WrongStateException,
     292                 :            :                 ::com::sun::star::uno::RuntimeException );
     293                 :            : 
     294                 :            :     virtual void SAL_CALL doVerb( sal_Int32 nVerbID )
     295                 :            :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     296                 :            :                 ::com::sun::star::embed::WrongStateException,
     297                 :            :                 ::com::sun::star::embed::UnreachableStateException,
     298                 :            :                 ::com::sun::star::uno::Exception,
     299                 :            :                 ::com::sun::star::uno::RuntimeException );
     300                 :            : 
     301                 :            :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::embed::VerbDescriptor > SAL_CALL getSupportedVerbs()
     302                 :            :         throw ( ::com::sun::star::embed::WrongStateException,
     303                 :            :                 ::com::sun::star::uno::RuntimeException );
     304                 :            : 
     305                 :            :     virtual void SAL_CALL setClientSite(
     306                 :            :                 const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XEmbeddedClient >& xClient )
     307                 :            :         throw ( ::com::sun::star::embed::WrongStateException,
     308                 :            :                 ::com::sun::star::uno::RuntimeException );
     309                 :            : 
     310                 :            :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::embed::XEmbeddedClient > SAL_CALL getClientSite()
     311                 :            :         throw ( ::com::sun::star::embed::WrongStateException,
     312                 :            :                 ::com::sun::star::uno::RuntimeException );
     313                 :            : 
     314                 :            :     virtual void SAL_CALL update()
     315                 :            :         throw ( ::com::sun::star::embed::WrongStateException,
     316                 :            :                 ::com::sun::star::uno::Exception,
     317                 :            :                 ::com::sun::star::uno::RuntimeException );
     318                 :            : 
     319                 :            :     virtual void SAL_CALL setUpdateMode( sal_Int32 nMode )
     320                 :            :         throw ( ::com::sun::star::embed::WrongStateException,
     321                 :            :                 ::com::sun::star::uno::RuntimeException );
     322                 :            : 
     323                 :            :     virtual sal_Int64 SAL_CALL getStatus( sal_Int64 nAspect )
     324                 :            :         throw ( ::com::sun::star::embed::WrongStateException,
     325                 :            :                 ::com::sun::star::uno::RuntimeException );
     326                 :            : 
     327                 :            :     virtual void SAL_CALL setContainerName( const ::rtl::OUString& sName )
     328                 :            :         throw ( ::com::sun::star::uno::RuntimeException );
     329                 :            : 
     330                 :            : 
     331                 :            : // XVisualObject
     332                 :            : 
     333                 :            :     virtual void SAL_CALL setVisualAreaSize( sal_Int64 nAspect, const ::com::sun::star::awt::Size& aSize )
     334                 :            :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     335                 :            :                 ::com::sun::star::embed::WrongStateException,
     336                 :            :                 ::com::sun::star::uno::Exception,
     337                 :            :                 ::com::sun::star::uno::RuntimeException );
     338                 :            : 
     339                 :            :     virtual ::com::sun::star::awt::Size SAL_CALL getVisualAreaSize( sal_Int64 nAspect )
     340                 :            :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     341                 :            :                 ::com::sun::star::embed::WrongStateException,
     342                 :            :                 ::com::sun::star::uno::Exception,
     343                 :            :                 ::com::sun::star::uno::RuntimeException );
     344                 :            : 
     345                 :            :     virtual ::com::sun::star::embed::VisualRepresentation SAL_CALL getPreferredVisualRepresentation( ::sal_Int64 nAspect )
     346                 :            :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     347                 :            :                 ::com::sun::star::embed::WrongStateException,
     348                 :            :                 ::com::sun::star::uno::Exception,
     349                 :            :                 ::com::sun::star::uno::RuntimeException );
     350                 :            : 
     351                 :            :     virtual sal_Int32 SAL_CALL getMapUnit( sal_Int64 nAspect )
     352                 :            :         throw ( ::com::sun::star::uno::Exception,
     353                 :            :                 ::com::sun::star::uno::RuntimeException);
     354                 :            : 
     355                 :            : // XEmbedPersist
     356                 :            : 
     357                 :            :     virtual void SAL_CALL setPersistentEntry(
     358                 :            :                     const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage,
     359                 :            :                     const ::rtl::OUString& sEntName,
     360                 :            :                     sal_Int32 nEntryConnectionMode,
     361                 :            :                     const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lArguments,
     362                 :            :                     const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lObjArgs )
     363                 :            :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     364                 :            :                 ::com::sun::star::embed::WrongStateException,
     365                 :            :                 ::com::sun::star::io::IOException,
     366                 :            :                 ::com::sun::star::uno::Exception,
     367                 :            :                 ::com::sun::star::uno::RuntimeException );
     368                 :            : 
     369                 :            :     virtual void SAL_CALL storeToEntry( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage, const ::rtl::OUString& sEntName, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lArguments, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lObjArgs )
     370                 :            :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     371                 :            :                 ::com::sun::star::embed::WrongStateException,
     372                 :            :                 ::com::sun::star::io::IOException,
     373                 :            :                 ::com::sun::star::uno::Exception,
     374                 :            :                 ::com::sun::star::uno::RuntimeException );
     375                 :            : 
     376                 :            :     virtual void SAL_CALL storeAsEntry(
     377                 :            :                 const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage,
     378                 :            :                 const ::rtl::OUString& sEntName,
     379                 :            :                 const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lArguments,
     380                 :            :                 const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lObjArgs )
     381                 :            :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     382                 :            :                 ::com::sun::star::embed::WrongStateException,
     383                 :            :                 ::com::sun::star::io::IOException,
     384                 :            :                 ::com::sun::star::uno::Exception,
     385                 :            :                 ::com::sun::star::uno::RuntimeException );
     386                 :            : 
     387                 :            :     virtual void SAL_CALL saveCompleted( sal_Bool bUseNew )
     388                 :            :         throw ( ::com::sun::star::embed::WrongStateException,
     389                 :            :                 ::com::sun::star::uno::Exception,
     390                 :            :                 ::com::sun::star::uno::RuntimeException );
     391                 :            : 
     392                 :            :     virtual sal_Bool SAL_CALL hasEntry()
     393                 :            :         throw ( ::com::sun::star::embed::WrongStateException,
     394                 :            :                 ::com::sun::star::uno::RuntimeException );
     395                 :            : 
     396                 :            :     virtual ::rtl::OUString SAL_CALL getEntryName()
     397                 :            :         throw ( ::com::sun::star::embed::WrongStateException,
     398                 :            :                 ::com::sun::star::uno::RuntimeException );
     399                 :            : 
     400                 :            : // XLinkageSupport
     401                 :            : 
     402                 :            :     virtual void SAL_CALL breakLink( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage,
     403                 :            :                                      const ::rtl::OUString& sEntName )
     404                 :            :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     405                 :            :                 ::com::sun::star::embed::WrongStateException,
     406                 :            :                 ::com::sun::star::io::IOException,
     407                 :            :                 ::com::sun::star::uno::Exception,
     408                 :            :                 ::com::sun::star::uno::RuntimeException );
     409                 :            : 
     410                 :            :     virtual sal_Bool SAL_CALL isLink()
     411                 :            :         throw ( ::com::sun::star::embed::WrongStateException,
     412                 :            :                 ::com::sun::star::uno::RuntimeException);
     413                 :            : 
     414                 :            :     virtual ::rtl::OUString SAL_CALL getLinkURL()
     415                 :            :         throw ( ::com::sun::star::embed::WrongStateException,
     416                 :            :                 ::com::sun::star::uno::Exception,
     417                 :            :                 ::com::sun::star::uno::RuntimeException);
     418                 :            : 
     419                 :            : 
     420                 :            : // XCommonEmbedPersist
     421                 :            : 
     422                 :            :     virtual void SAL_CALL storeOwn()
     423                 :            :         throw ( ::com::sun::star::embed::WrongStateException,
     424                 :            :                 ::com::sun::star::io::IOException,
     425                 :            :                 ::com::sun::star::uno::Exception,
     426                 :            :                 ::com::sun::star::uno::RuntimeException );
     427                 :            : 
     428                 :            :     virtual sal_Bool SAL_CALL isReadonly()
     429                 :            :         throw ( ::com::sun::star::embed::WrongStateException,
     430                 :            :                 ::com::sun::star::uno::RuntimeException );
     431                 :            : 
     432                 :            :     virtual void SAL_CALL reload(
     433                 :            :                 const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lArguments,
     434                 :            :                 const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lObjArgs )
     435                 :            :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     436                 :            :                 ::com::sun::star::embed::WrongStateException,
     437                 :            :                 ::com::sun::star::io::IOException,
     438                 :            :                 ::com::sun::star::uno::Exception,
     439                 :            :                 ::com::sun::star::uno::RuntimeException );
     440                 :            : 
     441                 :            : 
     442                 :            : // XInplaceObject
     443                 :            : 
     444                 :            :     virtual void SAL_CALL setObjectRectangles( const ::com::sun::star::awt::Rectangle& aPosRect,
     445                 :            :                                           const ::com::sun::star::awt::Rectangle& aClipRect )
     446                 :            :         throw ( ::com::sun::star::embed::WrongStateException,
     447                 :            :                 ::com::sun::star::uno::Exception,
     448                 :            :                 ::com::sun::star::uno::RuntimeException );
     449                 :            : 
     450                 :            :     virtual void SAL_CALL enableModeless( sal_Bool bEnable )
     451                 :            :         throw ( ::com::sun::star::embed::WrongStateException,
     452                 :            :                 ::com::sun::star::uno::Exception,
     453                 :            :                 ::com::sun::star::uno::RuntimeException );
     454                 :            : 
     455                 :            :     virtual void SAL_CALL translateAccelerators(
     456                 :            :                     const ::com::sun::star::uno::Sequence< ::com::sun::star::awt::KeyEvent >& aKeys )
     457                 :            :         throw ( ::com::sun::star::embed::WrongStateException,
     458                 :            :                 ::com::sun::star::uno::RuntimeException );
     459                 :            : 
     460                 :            : // XClassifiedObject
     461                 :            : 
     462                 :            :     virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getClassID()
     463                 :            :         throw ( ::com::sun::star::uno::RuntimeException );
     464                 :            : 
     465                 :            :     virtual ::rtl::OUString SAL_CALL getClassName()
     466                 :            :         throw ( ::com::sun::star::uno::RuntimeException );
     467                 :            : 
     468                 :            :     virtual void SAL_CALL setClassInfo(
     469                 :            :                 const ::com::sun::star::uno::Sequence< sal_Int8 >& aClassID, const ::rtl::OUString& aClassName )
     470                 :            :         throw ( ::com::sun::star::lang::NoSupportException,
     471                 :            :                 ::com::sun::star::uno::RuntimeException );
     472                 :            : 
     473                 :            : 
     474                 :            : // XComponentSupplier
     475                 :            : 
     476                 :            :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseable > SAL_CALL getComponent()
     477                 :            :         throw ( ::com::sun::star::uno::RuntimeException );
     478                 :            : 
     479                 :            : // XStateChangeBroadcaster
     480                 :            :     virtual void SAL_CALL addStateChangeListener( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStateChangeListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
     481                 :            :     virtual void SAL_CALL removeStateChangeListener( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStateChangeListener >& xListener ) throw (::com::sun::star::uno::RuntimeException);
     482                 :            : 
     483                 :            : // XCloseable
     484                 :            : 
     485                 :            :     virtual void SAL_CALL close( sal_Bool DeliverOwnership )
     486                 :            :         throw ( ::com::sun::star::util::CloseVetoException,
     487                 :            :                 ::com::sun::star::uno::RuntimeException );
     488                 :            : 
     489                 :            :     virtual void SAL_CALL addCloseListener(
     490                 :            :                 const ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseListener >& Listener )
     491                 :            :         throw ( ::com::sun::star::uno::RuntimeException );
     492                 :            : 
     493                 :            :     virtual void SAL_CALL removeCloseListener(
     494                 :            :                 const ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseListener >& Listener )
     495                 :            :         throw ( ::com::sun::star::uno::RuntimeException );
     496                 :            : 
     497                 :            : // XEventBroadcaster
     498                 :            :     virtual void SAL_CALL addEventListener(
     499                 :            :                 const ::com::sun::star::uno::Reference< ::com::sun::star::document::XEventListener >& Listener )
     500                 :            :         throw ( ::com::sun::star::uno::RuntimeException );
     501                 :            : 
     502                 :            :     virtual void SAL_CALL removeEventListener(
     503                 :            :                 const ::com::sun::star::uno::Reference< ::com::sun::star::document::XEventListener >& Listener )
     504                 :            :         throw ( ::com::sun::star::uno::RuntimeException );
     505                 :            : 
     506                 :            :     // XChild
     507                 :            :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL getParent(  ) throw (::com::sun::star::uno::RuntimeException);
     508                 :            :     virtual void SAL_CALL setParent( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& Parent ) throw (::com::sun::star::lang::NoSupportException, ::com::sun::star::uno::RuntimeException);
     509                 :            : 
     510                 :            :     // XDefaultSizeTransmitter
     511                 :            :     //#i103460# charts do not necessaryly have an own size within ODF files, in this case they need to use the size settings from the surrounding frame, which is made available with this method
     512                 :            :     virtual void SAL_CALL setDefaultSize( const ::com::sun::star::awt::Size& rSize_100TH_MM ) throw (::com::sun::star::uno::RuntimeException);
     513                 :            : };
     514                 :            : 
     515                 :            : #endif
     516                 :            : 
     517                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10