LCOV - code coverage report
Current view: top level - embeddedobj/source/inc - commonembobj.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 2 2 100.0 %
Date: 2014-11-03 Functions: 2 2 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        3090 :     OUString GetDocumentServiceName() const { return m_aDocServiceName; }
     174        1918 :     OUString GetPresetFilterName() const { return m_aPresetFilterName; }
     175             : 
     176             :     ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >
     177             :         StoreDocumentToTempStream_Impl( sal_Int32 nStorageFormat,
     178             :                                         const OUString& aBaseURL,
     179             :                                         const OUString& aHierarchName );
     180             : 
     181             :     sal_Int32 ConvertVerbToState_Impl( sal_Int32 nVerb );
     182             : 
     183             :     void Deactivate();
     184             : 
     185             :     void StateChangeNotification_Impl( bool bBeforeChange, sal_Int32 nOldState, sal_Int32 nNewState,::osl::ResettableMutexGuard& _rGuard );
     186             : 
     187             :     void SwitchStateTo_Impl( sal_Int32 nNextState );
     188             : 
     189             :     ::com::sun::star::uno::Sequence< sal_Int32 > GetIntermediateStatesSequence_Impl( sal_Int32 nNewState );
     190             : 
     191             :     OUString GetFilterName( sal_Int32 nVersion ) const;
     192             :     ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseable > LoadDocumentFromStorage_Impl();
     193             : 
     194             :     ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseable > LoadLink_Impl();
     195             : 
     196             :     ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseable > InitNewDocument_Impl();
     197             : 
     198             :     void StoreDocToStorage_Impl(
     199             :         const css::uno::Reference<css::embed::XStorage>& xStorage,
     200             :         const css::uno::Sequence<css::beans::PropertyValue>& rMediaArgs,
     201             :         const css::uno::Sequence<css::beans::PropertyValue>& rObjArgs,
     202             :         sal_Int32 nStorageVersion,
     203             :         const OUString& aHierarchName,
     204             :         bool bAttachToStorage );
     205             : 
     206             :     void SwitchDocToStorage_Impl(
     207             :             const ::com::sun::star::uno::Reference< ::com::sun::star::document::XStorageBasedDocument >& xDoc,
     208             :             const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage );
     209             : 
     210             :     void FillDefaultLoadArgs_Impl(
     211             :             const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& i_rxStorage,
     212             :                   ::comphelper::NamedValueCollection& o_rLoadArgs
     213             :         ) const;
     214             : 
     215             :     void EmbedAndReparentDoc_Impl(
     216             :             const ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseable >& i_rxDocument
     217             :         ) const;
     218             : 
     219             :     ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseable > CreateDocFromMediaDescr_Impl(
     220             :                         const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aMedDescr );
     221             : 
     222             :     ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseable > CreateTempDocFromLink_Impl();
     223             : 
     224             :     OUString GetBaseURL_Impl() const;
     225             :     OUString GetBaseURLFrom_Impl(
     226             :                     const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lArguments,
     227             :                     const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lObjArgs );
     228             : 
     229             : public:
     230             :     OCommonEmbeddedObject(
     231             :         const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext,
     232             :         const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& aObjectProps );
     233             : 
     234             :     // no persistence for linked objects, so the descriptors are provided in constructor
     235             :     OCommonEmbeddedObject(
     236             :         const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext,
     237             :         const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& aObjectProps,
     238             :         const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aMediaDescr,
     239             :         const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aObjectDescr );
     240             : 
     241             :     virtual ~OCommonEmbeddedObject();
     242             : 
     243             :     void SaveObject_Impl();
     244             : 
     245             :     void requestPositioning( const ::com::sun::star::awt::Rectangle& aRect );
     246             : 
     247             :     // not a real listener and should not be
     248             :     void PostEvent_Impl( const OUString& aEventName );
     249             : 
     250             : // XInterface
     251             : 
     252             :     virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& rType )
     253             :         throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE ;
     254             : 
     255             :     virtual void SAL_CALL acquire()
     256             :         throw() SAL_OVERRIDE;
     257             : 
     258             :     virtual void SAL_CALL release()
     259             :         throw() SAL_OVERRIDE;
     260             : 
     261             : // XTypeProvider
     262             : 
     263             :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes()
     264             :         throw( ::com::sun::star::uno::RuntimeException ) ;
     265             : 
     266             :     virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId()
     267             :         throw( ::com::sun::star::uno::RuntimeException ) ;
     268             : 
     269             : // XEmbeddedObject
     270             : 
     271             :     virtual void SAL_CALL changeState( sal_Int32 nNewState )
     272             :         throw ( ::com::sun::star::embed::UnreachableStateException,
     273             :                 ::com::sun::star::embed::WrongStateException,
     274             :                 ::com::sun::star::uno::Exception,
     275             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     276             : 
     277             :     virtual ::com::sun::star::uno::Sequence< sal_Int32 > SAL_CALL getReachableStates()
     278             :         throw ( ::com::sun::star::embed::WrongStateException,
     279             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     280             : 
     281             :     virtual sal_Int32 SAL_CALL getCurrentState()
     282             :         throw ( ::com::sun::star::embed::WrongStateException,
     283             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     284             : 
     285             :     virtual void SAL_CALL doVerb( sal_Int32 nVerbID )
     286             :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     287             :                 ::com::sun::star::embed::WrongStateException,
     288             :                 ::com::sun::star::embed::UnreachableStateException,
     289             :                 ::com::sun::star::uno::Exception,
     290             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     291             : 
     292             :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::embed::VerbDescriptor > SAL_CALL getSupportedVerbs()
     293             :         throw ( ::com::sun::star::embed::WrongStateException,
     294             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     295             : 
     296             :     virtual void SAL_CALL setClientSite(
     297             :                 const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XEmbeddedClient >& xClient )
     298             :         throw ( ::com::sun::star::embed::WrongStateException,
     299             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     300             : 
     301             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::embed::XEmbeddedClient > SAL_CALL getClientSite()
     302             :         throw ( ::com::sun::star::embed::WrongStateException,
     303             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     304             : 
     305             :     virtual void SAL_CALL update()
     306             :         throw ( ::com::sun::star::embed::WrongStateException,
     307             :                 ::com::sun::star::uno::Exception,
     308             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     309             : 
     310             :     virtual void SAL_CALL setUpdateMode( sal_Int32 nMode )
     311             :         throw ( ::com::sun::star::embed::WrongStateException,
     312             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     313             : 
     314             :     virtual sal_Int64 SAL_CALL getStatus( sal_Int64 nAspect )
     315             :         throw ( ::com::sun::star::embed::WrongStateException,
     316             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     317             : 
     318             :     virtual void SAL_CALL setContainerName( const OUString& sName )
     319             :         throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     320             : 
     321             : 
     322             : // XVisualObject
     323             : 
     324             :     virtual void SAL_CALL setVisualAreaSize( sal_Int64 nAspect, const ::com::sun::star::awt::Size& aSize )
     325             :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     326             :                 ::com::sun::star::embed::WrongStateException,
     327             :                 ::com::sun::star::uno::Exception,
     328             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     329             : 
     330             :     virtual ::com::sun::star::awt::Size SAL_CALL getVisualAreaSize( sal_Int64 nAspect )
     331             :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     332             :                 ::com::sun::star::embed::WrongStateException,
     333             :                 ::com::sun::star::uno::Exception,
     334             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     335             : 
     336             :     virtual ::com::sun::star::embed::VisualRepresentation SAL_CALL getPreferredVisualRepresentation( ::sal_Int64 nAspect )
     337             :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     338             :                 ::com::sun::star::embed::WrongStateException,
     339             :                 ::com::sun::star::uno::Exception,
     340             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     341             : 
     342             :     virtual sal_Int32 SAL_CALL getMapUnit( sal_Int64 nAspect )
     343             :         throw ( ::com::sun::star::uno::Exception,
     344             :                 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     345             : 
     346             : // XEmbedPersist
     347             : 
     348             :     virtual void SAL_CALL setPersistentEntry(
     349             :                     const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage,
     350             :                     const OUString& sEntName,
     351             :                     sal_Int32 nEntryConnectionMode,
     352             :                     const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lArguments,
     353             :                     const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lObjArgs )
     354             :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     355             :                 ::com::sun::star::embed::WrongStateException,
     356             :                 ::com::sun::star::io::IOException,
     357             :                 ::com::sun::star::uno::Exception,
     358             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     359             : 
     360             :     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 )
     361             :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     362             :                 ::com::sun::star::embed::WrongStateException,
     363             :                 ::com::sun::star::io::IOException,
     364             :                 ::com::sun::star::uno::Exception,
     365             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     366             : 
     367             :     virtual void SAL_CALL storeAsEntry(
     368             :                 const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage,
     369             :                 const OUString& sEntName,
     370             :                 const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lArguments,
     371             :                 const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lObjArgs )
     372             :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     373             :                 ::com::sun::star::embed::WrongStateException,
     374             :                 ::com::sun::star::io::IOException,
     375             :                 ::com::sun::star::uno::Exception,
     376             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     377             : 
     378             :     virtual void SAL_CALL saveCompleted( sal_Bool bUseNew )
     379             :         throw ( ::com::sun::star::embed::WrongStateException,
     380             :                 ::com::sun::star::uno::Exception,
     381             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     382             : 
     383             :     virtual sal_Bool SAL_CALL hasEntry()
     384             :         throw ( ::com::sun::star::embed::WrongStateException,
     385             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     386             : 
     387             :     virtual OUString SAL_CALL getEntryName()
     388             :         throw ( ::com::sun::star::embed::WrongStateException,
     389             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     390             : 
     391             : // XLinkageSupport
     392             : 
     393             :     virtual void SAL_CALL breakLink( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage,
     394             :                                      const OUString& sEntName )
     395             :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     396             :                 ::com::sun::star::embed::WrongStateException,
     397             :                 ::com::sun::star::io::IOException,
     398             :                 ::com::sun::star::uno::Exception,
     399             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     400             : 
     401             :     virtual sal_Bool SAL_CALL isLink()
     402             :         throw ( ::com::sun::star::embed::WrongStateException,
     403             :                 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     404             : 
     405             :     virtual OUString SAL_CALL getLinkURL()
     406             :         throw ( ::com::sun::star::embed::WrongStateException,
     407             :                 ::com::sun::star::uno::Exception,
     408             :                 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     409             : 
     410             : 
     411             : // XCommonEmbedPersist
     412             : 
     413             :     virtual void SAL_CALL storeOwn()
     414             :         throw ( ::com::sun::star::embed::WrongStateException,
     415             :                 ::com::sun::star::io::IOException,
     416             :                 ::com::sun::star::uno::Exception,
     417             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     418             : 
     419             :     virtual sal_Bool SAL_CALL isReadonly()
     420             :         throw ( ::com::sun::star::embed::WrongStateException,
     421             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     422             : 
     423             :     virtual void SAL_CALL reload(
     424             :                 const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lArguments,
     425             :                 const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lObjArgs )
     426             :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     427             :                 ::com::sun::star::embed::WrongStateException,
     428             :                 ::com::sun::star::io::IOException,
     429             :                 ::com::sun::star::uno::Exception,
     430             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     431             : 
     432             : // XEmbedPersist2
     433             : 
     434             :     virtual sal_Bool SAL_CALL isStored()
     435             :         throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     436             : 
     437             : // XInplaceObject
     438             : 
     439             :     virtual void SAL_CALL setObjectRectangles( const ::com::sun::star::awt::Rectangle& aPosRect,
     440             :                                           const ::com::sun::star::awt::Rectangle& aClipRect )
     441             :         throw ( ::com::sun::star::embed::WrongStateException,
     442             :                 ::com::sun::star::uno::Exception,
     443             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     444             : 
     445             :     virtual void SAL_CALL enableModeless( sal_Bool bEnable )
     446             :         throw ( ::com::sun::star::embed::WrongStateException,
     447             :                 ::com::sun::star::uno::Exception,
     448             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     449             : 
     450             :     virtual void SAL_CALL translateAccelerators(
     451             :                     const ::com::sun::star::uno::Sequence< ::com::sun::star::awt::KeyEvent >& aKeys )
     452             :         throw ( ::com::sun::star::embed::WrongStateException,
     453             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     454             : 
     455             : // XClassifiedObject
     456             : 
     457             :     virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getClassID()
     458             :         throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     459             : 
     460             :     virtual OUString SAL_CALL getClassName()
     461             :         throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     462             : 
     463             :     virtual void SAL_CALL setClassInfo(
     464             :                 const ::com::sun::star::uno::Sequence< sal_Int8 >& aClassID, const OUString& aClassName )
     465             :         throw ( ::com::sun::star::lang::NoSupportException,
     466             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     467             : 
     468             : 
     469             : // XComponentSupplier
     470             : 
     471             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseable > SAL_CALL getComponent()
     472             :         throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     473             : 
     474             : // XStateChangeBroadcaster
     475             :     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;
     476             :     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;
     477             : 
     478             : // XCloseable
     479             : 
     480             :     virtual void SAL_CALL close( sal_Bool DeliverOwnership )
     481             :         throw ( ::com::sun::star::util::CloseVetoException,
     482             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     483             : 
     484             :     virtual void SAL_CALL addCloseListener(
     485             :                 const ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseListener >& Listener )
     486             :         throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     487             : 
     488             :     virtual void SAL_CALL removeCloseListener(
     489             :                 const ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseListener >& Listener )
     490             :         throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     491             : 
     492             : // XEventBroadcaster
     493             :     virtual void SAL_CALL addEventListener(
     494             :                 const ::com::sun::star::uno::Reference< ::com::sun::star::document::XEventListener >& Listener )
     495             :         throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     496             : 
     497             :     virtual void SAL_CALL removeEventListener(
     498             :                 const ::com::sun::star::uno::Reference< ::com::sun::star::document::XEventListener >& Listener )
     499             :         throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     500             : 
     501             :     // XChild
     502             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL getParent(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     503             :     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;
     504             : 
     505             :     // XDefaultSizeTransmitter
     506             :     //#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
     507             :     virtual void SAL_CALL setDefaultSize( const ::com::sun::star::awt::Size& rSize_100TH_MM ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     508             : };
     509             : 
     510             : #endif
     511             : 
     512             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10