LCOV - code coverage report
Current view: top level - embeddedobj/source/inc - commonembobj.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 3 3 100.0 %
Date: 2015-06-13 12:38:46 Functions: 3 3 100.0 %
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 INCLUDED_EMBEDDEDOBJ_SOURCE_INC_COMMONEMBOBJ_HXX
      21             : #define INCLUDED_EMBEDDEDOBJ_SOURCE_INC_COMMONEMBOBJ_HXX
      22             : 
      23             : #include <com/sun/star/uno/Sequence.hxx>
      24             : #include <com/sun/star/uno/Reference.hxx>
      25             : #include <com/sun/star/uno/Any.hxx>
      26             : #include <com/sun/star/container/XChild.hpp>
      27             : #include <com/sun/star/document/XStorageBasedDocument.hpp>
      28             : #include <com/sun/star/embed/XEmbeddedObject.hpp>
      29             : #include <com/sun/star/embed/XVisualObject.hpp>
      30             : #include <com/sun/star/embed/XEmbedPersist2.hpp>
      31             : #include <com/sun/star/embed/XLinkageSupport.hpp>
      32             : #include <com/sun/star/embed/XClassifiedObject.hpp>
      33             : #include <com/sun/star/embed/XComponentSupplier.hpp>
      34             : #include <com/sun/star/embed/XInplaceObject.hpp>
      35             : #include <com/sun/star/embed/XStateChangeBroadcaster.hpp>
      36             : #include <com/sun/star/awt/XWindow.hpp>
      37             : #include <com/sun/star/awt/Rectangle.hpp>
      38             : #include <com/sun/star/document/XEventBroadcaster.hpp>
      39             : #include <com/sun/star/util/XCloseable.hpp>
      40             : #include <com/sun/star/chart2/XDefaultSizeTransmitter.hpp>
      41             : #include <cppuhelper/weak.hxx>
      42             : 
      43             : namespace com { namespace sun { namespace star {
      44             :     namespace embed {
      45             :         class XStorage;
      46             :     }
      47             :     namespace lang {
      48             :         class XMultiServiceFactory;
      49             :     }
      50             :     namespace util {
      51             :         class XCloseListener;
      52             :     }
      53             :     namespace beans {
      54             :         struct PropertyValue;
      55             :         struct NamedValue;
      56             :     }
      57             : }}}
      58             : 
      59             : namespace cppu {
      60             :     class OMultiTypeInterfaceContainerHelper;
      61             : }
      62             : 
      63             : namespace comphelper {
      64             :     class NamedValueCollection;
      65             : }
      66             : 
      67             : #define NUM_SUPPORTED_STATES 5
      68             : // #define NUM_SUPPORTED_VERBS 5
      69             : 
      70             : #include "docholder.hxx"
      71             : 
      72             : class Interceptor;
      73             : 
      74             : class OCommonEmbeddedObject : public ::com::sun::star::embed::XEmbeddedObject
      75             :                             , public ::com::sun::star::embed::XEmbedPersist2
      76             :                             , public ::com::sun::star::embed::XLinkageSupport
      77             :                             , public ::com::sun::star::embed::XInplaceObject
      78             :                             , public ::com::sun::star::container::XChild
      79             :                             , public ::com::sun::star::chart2::XDefaultSizeTransmitter
      80             :                             , public ::cppu::OWeakObject
      81             : {
      82             : protected:
      83             :     ::osl::Mutex    m_aMutex;
      84             : 
      85             :     DocumentHolder* m_pDocHolder;
      86             : 
      87             :     ::cppu::OMultiTypeInterfaceContainerHelper* m_pInterfaceContainer;
      88             : 
      89             :     bool m_bReadOnly;
      90             : 
      91             :     bool m_bDisposed;
      92             :     bool m_bClosed;
      93             : 
      94             :     sal_Int32 m_nObjectState;
      95             :     sal_Int32 m_nTargetState; // should be -1 except during state changing
      96             :     sal_Int32 m_nUpdateMode;
      97             : 
      98             :     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > m_xContext;
      99             : 
     100             :     ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > m_aDocMediaDescriptor;
     101             : 
     102             :     ::com::sun::star::uno::Sequence< sal_Int8 > m_aClassID;
     103             :     OUString m_aClassName;
     104             : 
     105             :     OUString m_aDocServiceName;
     106             :     OUString m_aPresetFilterName;
     107             : 
     108             :     sal_Int64 m_nMiscStatus;
     109             : 
     110             :     ::com::sun::star::uno::Sequence< ::com::sun::star::embed::VerbDescriptor > m_aObjectVerbs;
     111             : 
     112             :     ::com::sun::star::uno::Sequence< sal_Int32 > m_aAcceptedStates;
     113             :     ::com::sun::star::uno::Sequence< sal_Int32 > m_pIntermediateStatesSeqs[NUM_SUPPORTED_STATES][NUM_SUPPORTED_STATES];
     114             :     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< sal_Int32 > > m_aVerbTable;
     115             : 
     116             :     ::com::sun::star::uno::Reference< ::com::sun::star::embed::XEmbeddedClient > m_xClientSite;
     117             : 
     118             :     OUString m_aContainerName;
     119             :     OUString m_aDefaultParentBaseURL;
     120             :     OUString m_aModuleName;
     121             :     bool        m_bEmbeddedScriptSupport;
     122             :     bool        m_bDocumentRecoverySupport;
     123             : 
     124             :     // following information will be used between SaveAs and SaveCompleted
     125             :     bool m_bWaitSaveCompleted;
     126             :     OUString m_aNewEntryName;
     127             :     ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage > m_xNewParentStorage;
     128             :     ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage > m_xNewObjectStorage;
     129             :     ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > m_aNewDocMediaDescriptor;
     130             : 
     131             :     ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > m_xClientWindow; // ???
     132             :     ::com::sun::star::awt::Rectangle m_aOwnRectangle;
     133             :     ::com::sun::star::awt::Rectangle m_aClipRectangle;
     134             : 
     135             :     bool m_bIsLink;
     136             : 
     137             :     // embedded object related stuff
     138             :     OUString m_aEntryName;
     139             :     ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage > m_xParentStorage;
     140             :     ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage > m_xObjectStorage;
     141             :     ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage > m_xRecoveryStorage;
     142             : 
     143             :     // link related stuff
     144             :     OUString m_aLinkURL;
     145             :     OUString m_aLinkFilterName;
     146             :     bool        m_bLinkHasPassword;
     147             :     OUString m_aLinkPassword;
     148             : 
     149             :     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > m_xParent;
     150             : 
     151             :     bool m_bHasClonedSize; // the object has cached size
     152             :     ::com::sun::star::awt::Size m_aClonedSize;
     153             :     sal_Int32 m_nClonedMapUnit;
     154             :     ::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
     155             : 
     156             : private:
     157             :     void CommonInit_Impl( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& aObjectProps );
     158             : 
     159             :     void LinkInit_Impl( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& aObjectProps,
     160             :                         const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aMediaDescr,
     161             :                         const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aObjectDescr );
     162             : 
     163             : 
     164             :     void SwitchOwnPersistence(
     165             :                 const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xNewParentStorage,
     166             :                 const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xNewObjectStorage,
     167             :                 const OUString& aNewName );
     168             : 
     169             :     void SwitchOwnPersistence(
     170             :                 const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xNewParentStorage,
     171             :                 const OUString& aNewName );
     172             : 
     173        1539 :     OUString GetDocumentServiceName() const { return m_aDocServiceName; }
     174         229 :     bool IsChartComponent() const { return m_aDocServiceName == "com.sun.star.chart2.ChartDocument"; }
     175         924 :     OUString GetPresetFilterName() const { return m_aPresetFilterName; }
     176             : 
     177             :     ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >
     178             :         StoreDocumentToTempStream_Impl( sal_Int32 nStorageFormat,
     179             :                                         const OUString& aBaseURL,
     180             :                                         const OUString& aHierarchName );
     181             : 
     182             :     sal_Int32 ConvertVerbToState_Impl( sal_Int32 nVerb );
     183             : 
     184             :     void Deactivate();
     185             : 
     186             :     void StateChangeNotification_Impl( bool bBeforeChange, sal_Int32 nOldState, sal_Int32 nNewState,::osl::ResettableMutexGuard& _rGuard );
     187             : 
     188             :     void SwitchStateTo_Impl( sal_Int32 nNextState );
     189             : 
     190             :     ::com::sun::star::uno::Sequence< sal_Int32 > GetIntermediateStatesSequence_Impl( sal_Int32 nNewState );
     191             : 
     192             :     OUString GetFilterName( sal_Int32 nVersion ) const;
     193             :     ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseable > LoadDocumentFromStorage_Impl();
     194             : 
     195             :     ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseable > LoadLink_Impl();
     196             : 
     197             :     ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseable > InitNewDocument_Impl();
     198             : 
     199             :     void StoreDocToStorage_Impl(
     200             :         const css::uno::Reference<css::embed::XStorage>& xStorage,
     201             :         const css::uno::Sequence<css::beans::PropertyValue>& rMediaArgs,
     202             :         const css::uno::Sequence<css::beans::PropertyValue>& rObjArgs,
     203             :         sal_Int32 nStorageVersion,
     204             :         const OUString& aHierarchName,
     205             :         bool bAttachToStorage );
     206             : 
     207             :     void SwitchDocToStorage_Impl(
     208             :             const ::com::sun::star::uno::Reference< ::com::sun::star::document::XStorageBasedDocument >& xDoc,
     209             :             const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage );
     210             : 
     211             :     void FillDefaultLoadArgs_Impl(
     212             :             const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& i_rxStorage,
     213             :                   ::comphelper::NamedValueCollection& o_rLoadArgs
     214             :         ) const;
     215             : 
     216             :     void EmbedAndReparentDoc_Impl(
     217             :             const ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseable >& i_rxDocument
     218             :         ) const;
     219             : 
     220             :     ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseable > CreateDocFromMediaDescr_Impl(
     221             :                         const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aMedDescr );
     222             : 
     223             :     ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseable > CreateTempDocFromLink_Impl();
     224             : 
     225             :     OUString GetBaseURL_Impl() const;
     226             :     static OUString GetBaseURLFrom_Impl(
     227             :                     const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lArguments,
     228             :                     const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lObjArgs );
     229             : 
     230             : public:
     231             :     OCommonEmbeddedObject(
     232             :         const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext,
     233             :         const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& aObjectProps );
     234             : 
     235             :     // no persistence for linked objects, so the descriptors are provided in constructor
     236             :     OCommonEmbeddedObject(
     237             :         const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext,
     238             :         const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& aObjectProps,
     239             :         const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aMediaDescr,
     240             :         const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aObjectDescr );
     241             : 
     242             :     virtual ~OCommonEmbeddedObject();
     243             : 
     244             :     void SaveObject_Impl();
     245             : 
     246             :     void requestPositioning( const ::com::sun::star::awt::Rectangle& aRect );
     247             : 
     248             :     // not a real listener and should not be
     249             :     void PostEvent_Impl( const OUString& aEventName );
     250             : 
     251             : // XInterface
     252             : 
     253             :     virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& rType )
     254             :         throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE ;
     255             : 
     256             :     virtual void SAL_CALL acquire()
     257             :         throw() SAL_OVERRIDE;
     258             : 
     259             :     virtual void SAL_CALL release()
     260             :         throw() SAL_OVERRIDE;
     261             : 
     262             : // XTypeProvider
     263             : 
     264             :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes()
     265             :         throw( ::com::sun::star::uno::RuntimeException ) ;
     266             : 
     267             : // XEmbeddedObject
     268             : 
     269             :     virtual void SAL_CALL changeState( sal_Int32 nNewState )
     270             :         throw ( ::com::sun::star::embed::UnreachableStateException,
     271             :                 ::com::sun::star::embed::WrongStateException,
     272             :                 ::com::sun::star::uno::Exception,
     273             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     274             : 
     275             :     virtual ::com::sun::star::uno::Sequence< sal_Int32 > SAL_CALL getReachableStates()
     276             :         throw ( ::com::sun::star::embed::WrongStateException,
     277             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     278             : 
     279             :     virtual sal_Int32 SAL_CALL getCurrentState()
     280             :         throw ( ::com::sun::star::embed::WrongStateException,
     281             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     282             : 
     283             :     virtual void SAL_CALL doVerb( sal_Int32 nVerbID )
     284             :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     285             :                 ::com::sun::star::embed::WrongStateException,
     286             :                 ::com::sun::star::embed::UnreachableStateException,
     287             :                 ::com::sun::star::uno::Exception,
     288             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     289             : 
     290             :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::embed::VerbDescriptor > SAL_CALL getSupportedVerbs()
     291             :         throw ( ::com::sun::star::embed::WrongStateException,
     292             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     293             : 
     294             :     virtual void SAL_CALL setClientSite(
     295             :                 const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XEmbeddedClient >& xClient )
     296             :         throw ( ::com::sun::star::embed::WrongStateException,
     297             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     298             : 
     299             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::embed::XEmbeddedClient > SAL_CALL getClientSite()
     300             :         throw ( ::com::sun::star::embed::WrongStateException,
     301             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     302             : 
     303             :     virtual void SAL_CALL update()
     304             :         throw ( ::com::sun::star::embed::WrongStateException,
     305             :                 ::com::sun::star::uno::Exception,
     306             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     307             : 
     308             :     virtual void SAL_CALL setUpdateMode( sal_Int32 nMode )
     309             :         throw ( ::com::sun::star::embed::WrongStateException,
     310             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     311             : 
     312             :     virtual sal_Int64 SAL_CALL getStatus( sal_Int64 nAspect )
     313             :         throw ( ::com::sun::star::embed::WrongStateException,
     314             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     315             : 
     316             :     virtual void SAL_CALL setContainerName( const OUString& sName )
     317             :         throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     318             : 
     319             : 
     320             : // XVisualObject
     321             : 
     322             :     virtual void SAL_CALL setVisualAreaSize( sal_Int64 nAspect, const ::com::sun::star::awt::Size& aSize )
     323             :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     324             :                 ::com::sun::star::embed::WrongStateException,
     325             :                 ::com::sun::star::uno::Exception,
     326             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     327             : 
     328             :     virtual ::com::sun::star::awt::Size SAL_CALL getVisualAreaSize( sal_Int64 nAspect )
     329             :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     330             :                 ::com::sun::star::embed::WrongStateException,
     331             :                 ::com::sun::star::uno::Exception,
     332             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     333             : 
     334             :     virtual ::com::sun::star::embed::VisualRepresentation SAL_CALL getPreferredVisualRepresentation( ::sal_Int64 nAspect )
     335             :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     336             :                 ::com::sun::star::embed::WrongStateException,
     337             :                 ::com::sun::star::uno::Exception,
     338             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     339             : 
     340             :     virtual sal_Int32 SAL_CALL getMapUnit( sal_Int64 nAspect )
     341             :         throw ( ::com::sun::star::uno::Exception,
     342             :                 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     343             : 
     344             : // XEmbedPersist
     345             : 
     346             :     virtual void SAL_CALL setPersistentEntry(
     347             :                     const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage,
     348             :                     const OUString& sEntName,
     349             :                     sal_Int32 nEntryConnectionMode,
     350             :                     const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lArguments,
     351             :                     const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lObjArgs )
     352             :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     353             :                 ::com::sun::star::embed::WrongStateException,
     354             :                 ::com::sun::star::io::IOException,
     355             :                 ::com::sun::star::uno::Exception,
     356             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     357             : 
     358             :     virtual void SAL_CALL storeToEntry( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage, const 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 )
     359             :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     360             :                 ::com::sun::star::embed::WrongStateException,
     361             :                 ::com::sun::star::io::IOException,
     362             :                 ::com::sun::star::uno::Exception,
     363             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     364             : 
     365             :     virtual void SAL_CALL storeAsEntry(
     366             :                 const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage,
     367             :                 const OUString& sEntName,
     368             :                 const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lArguments,
     369             :                 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, std::exception ) SAL_OVERRIDE;
     375             : 
     376             :     virtual void SAL_CALL saveCompleted( sal_Bool bUseNew )
     377             :         throw ( ::com::sun::star::embed::WrongStateException,
     378             :                 ::com::sun::star::uno::Exception,
     379             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     380             : 
     381             :     virtual sal_Bool SAL_CALL hasEntry()
     382             :         throw ( ::com::sun::star::embed::WrongStateException,
     383             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     384             : 
     385             :     virtual OUString SAL_CALL getEntryName()
     386             :         throw ( ::com::sun::star::embed::WrongStateException,
     387             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     388             : 
     389             : // XLinkageSupport
     390             : 
     391             :     virtual void SAL_CALL breakLink( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage,
     392             :                                      const OUString& sEntName )
     393             :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     394             :                 ::com::sun::star::embed::WrongStateException,
     395             :                 ::com::sun::star::io::IOException,
     396             :                 ::com::sun::star::uno::Exception,
     397             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     398             : 
     399             :     virtual sal_Bool SAL_CALL isLink()
     400             :         throw ( ::com::sun::star::embed::WrongStateException,
     401             :                 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     402             : 
     403             :     virtual OUString SAL_CALL getLinkURL()
     404             :         throw ( ::com::sun::star::embed::WrongStateException,
     405             :                 ::com::sun::star::uno::Exception,
     406             :                 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     407             : 
     408             : 
     409             : // XCommonEmbedPersist
     410             : 
     411             :     virtual void SAL_CALL storeOwn()
     412             :         throw ( ::com::sun::star::embed::WrongStateException,
     413             :                 ::com::sun::star::io::IOException,
     414             :                 ::com::sun::star::uno::Exception,
     415             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     416             : 
     417             :     virtual sal_Bool SAL_CALL isReadonly()
     418             :         throw ( ::com::sun::star::embed::WrongStateException,
     419             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     420             : 
     421             :     virtual void SAL_CALL reload(
     422             :                 const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lArguments,
     423             :                 const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lObjArgs )
     424             :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     425             :                 ::com::sun::star::embed::WrongStateException,
     426             :                 ::com::sun::star::io::IOException,
     427             :                 ::com::sun::star::uno::Exception,
     428             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     429             : 
     430             : // XEmbedPersist2
     431             : 
     432             :     virtual sal_Bool SAL_CALL isStored()
     433             :         throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     434             : 
     435             : // XInplaceObject
     436             : 
     437             :     virtual void SAL_CALL setObjectRectangles( const ::com::sun::star::awt::Rectangle& aPosRect,
     438             :                                           const ::com::sun::star::awt::Rectangle& aClipRect )
     439             :         throw ( ::com::sun::star::embed::WrongStateException,
     440             :                 ::com::sun::star::uno::Exception,
     441             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     442             : 
     443             :     virtual void SAL_CALL enableModeless( sal_Bool bEnable )
     444             :         throw ( ::com::sun::star::embed::WrongStateException,
     445             :                 ::com::sun::star::uno::Exception,
     446             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     447             : 
     448             :     virtual void SAL_CALL translateAccelerators(
     449             :                     const ::com::sun::star::uno::Sequence< ::com::sun::star::awt::KeyEvent >& aKeys )
     450             :         throw ( ::com::sun::star::embed::WrongStateException,
     451             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     452             : 
     453             : // XClassifiedObject
     454             : 
     455             :     virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getClassID()
     456             :         throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     457             : 
     458             :     virtual OUString SAL_CALL getClassName()
     459             :         throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     460             : 
     461             :     virtual void SAL_CALL setClassInfo(
     462             :                 const ::com::sun::star::uno::Sequence< sal_Int8 >& aClassID, const OUString& aClassName )
     463             :         throw ( ::com::sun::star::lang::NoSupportException,
     464             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     465             : 
     466             : 
     467             : // XComponentSupplier
     468             : 
     469             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseable > SAL_CALL getComponent()
     470             :         throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     471             : 
     472             : // XStateChangeBroadcaster
     473             :     virtual void SAL_CALL addStateChangeListener( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStateChangeListener >& xListener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     474             :     virtual void SAL_CALL removeStateChangeListener( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStateChangeListener >& xListener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     475             : 
     476             : // XCloseable
     477             : 
     478             :     virtual void SAL_CALL close( sal_Bool DeliverOwnership )
     479             :         throw ( ::com::sun::star::util::CloseVetoException,
     480             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     481             : 
     482             :     virtual void SAL_CALL addCloseListener(
     483             :                 const ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseListener >& Listener )
     484             :         throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     485             : 
     486             :     virtual void SAL_CALL removeCloseListener(
     487             :                 const ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseListener >& Listener )
     488             :         throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     489             : 
     490             : // XEventBroadcaster
     491             :     virtual void SAL_CALL addEventListener(
     492             :                 const ::com::sun::star::uno::Reference< ::com::sun::star::document::XEventListener >& Listener )
     493             :         throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     494             : 
     495             :     virtual void SAL_CALL removeEventListener(
     496             :                 const ::com::sun::star::uno::Reference< ::com::sun::star::document::XEventListener >& Listener )
     497             :         throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     498             : 
     499             :     // XChild
     500             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL getParent(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     501             :     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, std::exception) SAL_OVERRIDE;
     502             : 
     503             :     // XDefaultSizeTransmitter
     504             :     //#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
     505             :     virtual void SAL_CALL setDefaultSize( const ::com::sun::star::awt::Size& rSize_100TH_MM ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     506             : };
     507             : 
     508             : #endif
     509             : 
     510             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11