LCOV - code coverage report
Current view: top level - embeddedobj/source/inc - oleembobj.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 11 0.0 %
Date: 2014-04-14 Functions: 0 4 0.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 _INC_OLEEMBOBJ_HXX_
      21             : #define _INC_OLEEMBOBJ_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/embed/XEmbeddedObject.hpp>
      27             : #include <com/sun/star/embed/XInplaceObject.hpp>
      28             : #include <com/sun/star/embed/XVisualObject.hpp>
      29             : #include <com/sun/star/embed/XEmbedPersist.hpp>
      30             : #include <com/sun/star/embed/XLinkageSupport.hpp>
      31             : #include <com/sun/star/embed/XClassifiedObject.hpp>
      32             : #include <com/sun/star/embed/XComponentSupplier.hpp>
      33             : #include <com/sun/star/embed/VerbDescriptor.hpp>
      34             : #include <com/sun/star/document/XEventBroadcaster.hpp>
      35             : #include <com/sun/star/container/XChild.hpp>
      36             : #include <com/sun/star/util/XCloseable.hpp>
      37             : #include <com/sun/star/util/XCloseListener.hpp>
      38             : #include <cppuhelper/implbase5.hxx>
      39             : 
      40             : #include <osl/thread.h>
      41             : 
      42             : namespace cppu {
      43             :     class OMultiTypeInterfaceContainerHelper;
      44             : }
      45             : 
      46           0 : class VerbExecutionController
      47             : {
      48             :     // the following mutex is allowed to be locked only for variables initialization, so no deadlock can be caused
      49             :     ::osl::Mutex    m_aVerbExecutionMutex;
      50             : 
      51             :     sal_Bool m_bVerbExecutionInProgress;
      52             : #ifdef WNT
      53             :     oslThreadIdentifier m_nVerbExecutionThreadIdentifier;
      54             :     sal_Bool m_bChangedOnVerbExecution;
      55             : #endif
      56             : 
      57             :     sal_Bool m_bWasEverActive;
      58             :     sal_Int32 m_nNotificationLock;
      59             : 
      60             : public:
      61             : 
      62           0 :     VerbExecutionController()
      63             :     : m_bVerbExecutionInProgress( sal_False )
      64             : #ifdef WNT
      65             :     , m_nVerbExecutionThreadIdentifier( 0 )
      66             :     , m_bChangedOnVerbExecution( sal_False )
      67             : #endif
      68             :     , m_bWasEverActive( sal_False )
      69           0 :     , m_nNotificationLock( 0 )
      70           0 :     {}
      71             : #ifdef WNT
      72             :     void StartControlExecution();
      73             :     sal_Bool EndControlExecution_WasModified();
      74             :     void ModificationNotificationIsDone();
      75             : #endif
      76             :     void LockNotification();
      77             :     void UnlockNotification();
      78             : 
      79             :     // no need to lock anything to check the value of the numeric members
      80             :     sal_Bool CanDoNotification() { return ( !m_bVerbExecutionInProgress && !m_bWasEverActive && !m_nNotificationLock ); }
      81             :     // ... or to change it
      82             :     void ObjectIsActive() { m_bWasEverActive = sal_True; }
      83             : };
      84             : 
      85             : class VerbExecutionControllerGuard
      86             : {
      87             :     VerbExecutionController& m_rController;
      88             : public:
      89             : 
      90           0 :     VerbExecutionControllerGuard( VerbExecutionController& rController )
      91           0 :     : m_rController( rController )
      92             :     {
      93           0 :         m_rController.LockNotification();
      94           0 :     }
      95             : 
      96           0 :     ~VerbExecutionControllerGuard()
      97             :     {
      98           0 :         m_rController.UnlockNotification();
      99           0 :     }
     100             : };
     101             : 
     102             : 
     103             : class OleComponent;
     104             : class OwnView_Impl;
     105             : class OleEmbeddedObject : public ::cppu::WeakImplHelper5
     106             :                         < ::com::sun::star::embed::XEmbeddedObject
     107             :                         , ::com::sun::star::embed::XEmbedPersist
     108             :                         , ::com::sun::star::embed::XLinkageSupport
     109             :                         , ::com::sun::star::embed::XInplaceObject
     110             :                         , ::com::sun::star::container::XChild >
     111             : {
     112             :     friend class OleComponent;
     113             : 
     114             :     ::osl::Mutex    m_aMutex;
     115             : 
     116             :     OleComponent*   m_pOleComponent;
     117             : 
     118             :     ::cppu::OMultiTypeInterfaceContainerHelper* m_pInterfaceContainer;
     119             : 
     120             :     sal_Bool m_bReadOnly;
     121             : 
     122             :     bool m_bDisposed;
     123             :     sal_Int32 m_nObjectState;
     124             :     sal_Int32 m_nTargetState;
     125             :     sal_Int32 m_nUpdateMode;
     126             : 
     127             :     ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_xFactory;
     128             : 
     129             :     ::com::sun::star::uno::Sequence< sal_Int8 > m_aClassID;
     130             :     OUString m_aClassName;
     131             : 
     132             :     ::com::sun::star::uno::Reference< ::com::sun::star::embed::XEmbeddedClient > m_xClientSite;
     133             : 
     134             :     OUString m_aContainerName;
     135             : 
     136             :     ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseListener > m_xClosePreventer;
     137             : 
     138             :     sal_Bool m_bWaitSaveCompleted;
     139             :     sal_Bool m_bNewVisReplInStream;
     140             :     ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > m_xNewCachedVisRepl;
     141             :     OUString m_aNewEntryName;
     142             :     ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage > m_xNewParentStorage;
     143             :     ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > m_xNewObjectStream;
     144             :     sal_Bool m_bStoreLoaded;
     145             : 
     146             :     ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > m_xCachedVisualRepresentation;
     147             :     sal_Bool m_bVisReplInitialized;
     148             :     sal_Bool m_bVisReplInStream;
     149             :     sal_Bool m_bStoreVisRepl;
     150             : 
     151             :     sal_Bool m_bIsLink;
     152             : 
     153             :     // TODO/LATER: may need to cache more than one aspect in future
     154             :     sal_Bool m_bHasCachedSize; // the object has cached size
     155             :     ::com::sun::star::awt::Size m_aCachedSize;
     156             :     sal_Int64 m_nCachedAspect;
     157             : 
     158             :     sal_Bool m_bHasSizeToSet;  // the object has cached size that should be set to OLE component
     159             :     ::com::sun::star::awt::Size m_aSizeToSet; // this size might be different from the cached one ( scaling is applied )
     160             :     sal_Int64 m_nAspectToSet;
     161             : 
     162             : 
     163             :     // cache the status of the object
     164             :     // TODO/LATER: may need to cache more than one aspect in future
     165             :     sal_Bool m_bGotStatus;
     166             :     sal_Int64 m_nStatus;
     167             :     sal_Int64 m_nStatusAspect;
     168             : 
     169             :     // embedded object related stuff
     170             :     OUString m_aEntryName;
     171             :     ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage > m_xParentStorage;
     172             :     ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > m_xObjectStream;
     173             : 
     174             :     // link related stuff
     175             :     OUString m_aLinkURL; // ???
     176             : 
     177             :     // points to own view provider if the object has no server
     178             :     OwnView_Impl*   m_pOwnView;
     179             : 
     180             :     // whether the object should be initialized from clipboard in case of default initialization
     181             :     sal_Bool m_bFromClipboard;
     182             : 
     183             :     OUString m_aTempURL;
     184             : 
     185             :     OUString m_aTempDumpURL;
     186             : 
     187             :     // STAMPIT solution
     188             :     // the following member is used during verb execution to detect whether the verb execution modifies the object
     189             :     VerbExecutionController m_aVerbExecutionController;
     190             : 
     191             :     // if the following member is set, the object works in wrapper mode
     192             :     ::com::sun::star::uno::Reference< ::com::sun::star::embed::XEmbeddedObject > m_xWrappedObject;
     193             :     sal_Bool m_bTriedConversion;
     194             : 
     195             :     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > m_xParent;
     196             : 
     197             : protected:
     198             : 
     199             :     ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > TryToGetAcceptableFormat_Impl(
     200             :                                     const ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream >& xStream )
     201             :         throw ( ::com::sun::star::uno::Exception );
     202             : 
     203             :     ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > GetNewFilledTempStream_Impl(
     204             :                                     const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& xInStream )
     205             :         throw( css::io::IOException, css::uno::RuntimeException );
     206             : #ifdef WNT
     207             :     void SwitchComponentToRunningState_Impl();
     208             : #endif
     209             :     void MakeEventListenerNotification_Impl( const OUString& aEventName );
     210             : #ifdef WNT
     211             :     void StateChangeNotification_Impl( sal_Bool bBeforeChange, sal_Int32 nOldState, sal_Int32 nNewState );
     212             :     ::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream > GetStreamForSaving();
     213             : 
     214             : 
     215             :     ::com::sun::star::uno::Sequence< sal_Int32 > GetIntermediateVerbsSequence_Impl( sal_Int32 nNewState );
     216             : 
     217             :     ::com::sun::star::uno::Sequence< sal_Int32 > GetReachableStatesList_Impl(
     218             :                         const ::com::sun::star::uno::Sequence< ::com::sun::star::embed::VerbDescriptor >& aVerbList );
     219             : #endif
     220             : 
     221             :     void CloseComponent();
     222             :     void Dispose();
     223             : 
     224             :     void SwitchOwnPersistence(
     225             :                 const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xNewParentStorage,
     226             :                 const ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream >& xNewObjectStream,
     227             :                 const OUString& aNewName );
     228             : 
     229             :     void SwitchOwnPersistence(
     230             :                 const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xNewParentStorage,
     231             :                 const OUString& aNewName );
     232             : 
     233             :     void GetRidOfComponent();
     234             : 
     235             :     void StoreToLocation_Impl(
     236             :                             const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage,
     237             :                             const OUString& sEntName,
     238             :                             const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lObjArgs,
     239             :                             sal_Bool bSaveAs )
     240             :         throw ( ::com::sun::star::uno::Exception );
     241             : #ifdef WNT
     242             :     void StoreObjectToStream( ::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream > xOutStream )
     243             :         throw ( ::com::sun::star::uno::Exception );
     244             : #endif
     245             :     void InsertVisualCache_Impl(
     246             :             const ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream >& xTargetStream,
     247             :             const ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream >& xCachedVisualRepresentation )
     248             :         throw ( ::com::sun::star::uno::Exception );
     249             : 
     250             :     void RemoveVisualCache_Impl( const ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream >& xTargetStream )
     251             :         throw ( ::com::sun::star::uno::Exception );
     252             : 
     253             :     void SetVisReplInStream( sal_Bool bExists );
     254             :     sal_Bool HasVisReplInStream();
     255             : 
     256             :     ::com::sun::star::embed::VisualRepresentation GetVisualRepresentationInNativeFormat_Impl(
     257             :                     const ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > xCachedVisRepr )
     258             :         throw ( ::com::sun::star::uno::Exception );
     259             : 
     260             :     ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > TryToRetrieveCachedVisualRepresentation_Impl(
     261             :                     const ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream >& xStream,
     262             :                     sal_Bool bAllowRepair50 = sal_False )
     263             :         throw ();
     264             : #ifdef WNT
     265             :     sal_Bool SaveObject_Impl();
     266             :     sal_Bool OnShowWindow_Impl( sal_Bool bShow );
     267             :     void CreateOleComponent_Impl( OleComponent* pOleComponent = NULL );
     268             :     void CreateOleComponentAndLoad_Impl( OleComponent* pOleComponent = NULL );
     269             :     void CreateOleComponentFromClipboard_Impl( OleComponent* pOleComponent = NULL );
     270             : #endif
     271             :     void SetObjectIsLink_Impl( sal_Bool bIsLink ) { m_bIsLink = bIsLink; }
     272             : 
     273             : #ifdef WNT
     274             :     OUString CreateTempURLEmpty_Impl();
     275             :     OUString GetTempURL_Impl();
     276             : #endif
     277             :     OUString GetContainerName_Impl() { return m_aContainerName; }
     278             : 
     279             :     // the following 4 methods are related to switch to wrapping mode
     280             :     void MoveListeners();
     281             :     ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage > CreateTemporarySubstorage( OUString& o_aStorageName );
     282             :     OUString MoveToTemporarySubstream();
     283             :     sal_Bool TryToConvertToOOo();
     284             : 
     285             : public:
     286             :     // in case a new object must be created the class ID must be specified
     287             :     OleEmbeddedObject( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xFactory,
     288             :                         const ::com::sun::star::uno::Sequence< sal_Int8 >& aClassID,
     289             :                         const OUString& aClassName );
     290             : 
     291             :     // in case object will be loaded from a persistent entry or from a file the class ID will be detected on loading
     292             :     // factory can do it for OOo objects, but for OLE objects OS dependent code is required
     293             :     OleEmbeddedObject( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xFactory,
     294             :                         sal_Bool bLink );
     295             : #ifdef WNT
     296             :     // this constructor let object be initialized from clipboard
     297             :     OleEmbeddedObject( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xFactory );
     298             : #endif
     299             : 
     300             :     virtual ~OleEmbeddedObject();
     301             : 
     302             : #ifdef WNT
     303             :     void OnIconChanged_Impl();
     304             :     void OnViewChanged_Impl();
     305             :     void OnClosed_Impl();
     306             : #endif
     307             : 
     308             : // XEmbeddedObject
     309             : 
     310             :     virtual void SAL_CALL changeState( sal_Int32 nNewState )
     311             :         throw ( ::com::sun::star::embed::UnreachableStateException,
     312             :                 ::com::sun::star::embed::WrongStateException,
     313             :                 ::com::sun::star::uno::Exception,
     314             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     315             : 
     316             :     virtual ::com::sun::star::uno::Sequence< sal_Int32 > SAL_CALL getReachableStates()
     317             :         throw ( ::com::sun::star::embed::WrongStateException,
     318             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     319             : 
     320             :     virtual sal_Int32 SAL_CALL getCurrentState()
     321             :         throw ( ::com::sun::star::embed::WrongStateException,
     322             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     323             : 
     324             :     virtual void SAL_CALL doVerb( sal_Int32 nVerbID )
     325             :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     326             :                 ::com::sun::star::embed::WrongStateException,
     327             :                 ::com::sun::star::embed::UnreachableStateException,
     328             :                 ::com::sun::star::uno::Exception,
     329             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     330             : 
     331             :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::embed::VerbDescriptor > SAL_CALL getSupportedVerbs()
     332             :         throw ( ::com::sun::star::embed::WrongStateException,
     333             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     334             : 
     335             :     virtual void SAL_CALL setClientSite(
     336             :                 const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XEmbeddedClient >& xClient )
     337             :         throw ( ::com::sun::star::embed::WrongStateException,
     338             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     339             : 
     340             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::embed::XEmbeddedClient > SAL_CALL getClientSite()
     341             :         throw ( ::com::sun::star::embed::WrongStateException,
     342             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     343             : 
     344             :     virtual void SAL_CALL update()
     345             :         throw ( ::com::sun::star::embed::WrongStateException,
     346             :                 ::com::sun::star::uno::Exception,
     347             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     348             : 
     349             :     virtual void SAL_CALL setUpdateMode( sal_Int32 nMode )
     350             :         throw ( ::com::sun::star::embed::WrongStateException,
     351             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     352             : 
     353             :     virtual sal_Int64 SAL_CALL getStatus( sal_Int64 nAspect )
     354             :         throw ( ::com::sun::star::embed::WrongStateException,
     355             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     356             : 
     357             :     virtual void SAL_CALL setContainerName( const OUString& sName )
     358             :         throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     359             : 
     360             : 
     361             : // XVisualObject
     362             : 
     363             :     virtual void SAL_CALL setVisualAreaSize( sal_Int64 nAspect, const ::com::sun::star::awt::Size& aSize )
     364             :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     365             :                 ::com::sun::star::embed::WrongStateException,
     366             :                 ::com::sun::star::uno::Exception,
     367             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     368             : 
     369             :     virtual ::com::sun::star::awt::Size SAL_CALL getVisualAreaSize( sal_Int64 nAspect )
     370             :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     371             :                 ::com::sun::star::embed::WrongStateException,
     372             :                 ::com::sun::star::uno::Exception,
     373             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     374             : 
     375             :     virtual ::com::sun::star::embed::VisualRepresentation SAL_CALL getPreferredVisualRepresentation( ::sal_Int64 nAspect )
     376             :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     377             :                 ::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_Int32 SAL_CALL getMapUnit( sal_Int64 nAspect )
     382             :         throw ( ::com::sun::star::uno::Exception,
     383             :                 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     384             : 
     385             : 
     386             : // XEmbedPersist
     387             : 
     388             :     virtual void SAL_CALL setPersistentEntry(
     389             :                     const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage,
     390             :                     const OUString& sEntName,
     391             :                     sal_Int32 nEntryConnectionMode,
     392             :                     const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lArguments,
     393             :                     const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lObjArgs )
     394             :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     395             :                 ::com::sun::star::embed::WrongStateException,
     396             :                 ::com::sun::star::io::IOException,
     397             :                 ::com::sun::star::uno::Exception,
     398             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     399             : 
     400             :     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 )
     401             :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     402             :                 ::com::sun::star::embed::WrongStateException,
     403             :                 ::com::sun::star::io::IOException,
     404             :                 ::com::sun::star::uno::Exception,
     405             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     406             : 
     407             :     virtual void SAL_CALL storeAsEntry(
     408             :                 const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage,
     409             :                 const OUString& sEntName,
     410             :                 const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lArguments,
     411             :                 const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lObjArgs )
     412             :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     413             :                 ::com::sun::star::embed::WrongStateException,
     414             :                 ::com::sun::star::io::IOException,
     415             :                 ::com::sun::star::uno::Exception,
     416             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     417             : 
     418             :     virtual void SAL_CALL saveCompleted( sal_Bool bUseNew )
     419             :         throw ( ::com::sun::star::embed::WrongStateException,
     420             :                 ::com::sun::star::uno::Exception,
     421             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     422             : 
     423             :     virtual sal_Bool SAL_CALL hasEntry()
     424             :         throw ( ::com::sun::star::embed::WrongStateException,
     425             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     426             : 
     427             :     virtual OUString SAL_CALL getEntryName()
     428             :         throw ( ::com::sun::star::embed::WrongStateException,
     429             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     430             : 
     431             : // XLinkageSupport
     432             : 
     433             :     virtual void SAL_CALL breakLink( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage,
     434             :                                      const OUString& sEntName )
     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, std::exception ) SAL_OVERRIDE;
     440             : 
     441             :     virtual sal_Bool SAL_CALL isLink()
     442             :         throw ( ::com::sun::star::embed::WrongStateException,
     443             :                 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     444             : 
     445             :     virtual OUString SAL_CALL getLinkURL()
     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             : // XCommonEmbedPersist
     451             :     virtual void SAL_CALL storeOwn()
     452             :         throw ( ::com::sun::star::embed::WrongStateException,
     453             :                 ::com::sun::star::io::IOException,
     454             :                 ::com::sun::star::uno::Exception,
     455             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     456             : 
     457             :     virtual sal_Bool SAL_CALL isReadonly()
     458             :         throw ( ::com::sun::star::embed::WrongStateException,
     459             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     460             : 
     461             :     virtual void SAL_CALL reload(
     462             :                 const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lArguments,
     463             :                 const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lObjArgs )
     464             :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     465             :                 ::com::sun::star::embed::WrongStateException,
     466             :                 ::com::sun::star::io::IOException,
     467             :                 ::com::sun::star::uno::Exception,
     468             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     469             : 
     470             : // XClassifiedObject
     471             : 
     472             :     virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getClassID()
     473             :         throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     474             : 
     475             :     virtual OUString SAL_CALL getClassName()
     476             :         throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     477             : 
     478             :     virtual void SAL_CALL setClassInfo(
     479             :                 const ::com::sun::star::uno::Sequence< sal_Int8 >& aClassID, const OUString& aClassName )
     480             :         throw ( ::com::sun::star::lang::NoSupportException,
     481             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     482             : 
     483             : // XStateChangeBroadcaster
     484             :     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;
     485             :     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;
     486             : 
     487             : 
     488             : // XComponentSupplier
     489             : 
     490             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseable > SAL_CALL getComponent()
     491             :         throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     492             : 
     493             : // XCloseable
     494             : 
     495             :     virtual void SAL_CALL close( sal_Bool DeliverOwnership )
     496             :         throw ( ::com::sun::star::util::CloseVetoException,
     497             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     498             : 
     499             :     virtual void SAL_CALL addCloseListener(
     500             :                 const ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseListener >& Listener )
     501             :         throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     502             : 
     503             :     virtual void SAL_CALL removeCloseListener(
     504             :                 const ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseListener >& Listener )
     505             :         throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     506             : 
     507             : // XEventBroadcaster
     508             :     virtual void SAL_CALL addEventListener(
     509             :                 const ::com::sun::star::uno::Reference< ::com::sun::star::document::XEventListener >& Listener )
     510             :         throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     511             : 
     512             :     virtual void SAL_CALL removeEventListener(
     513             :                 const ::com::sun::star::uno::Reference< ::com::sun::star::document::XEventListener >& Listener )
     514             :         throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     515             : 
     516             : // XInplaceObject ( only for wrapping scenario here )
     517             : 
     518             :     virtual void SAL_CALL setObjectRectangles( const ::com::sun::star::awt::Rectangle& aPosRect,
     519             :                                           const ::com::sun::star::awt::Rectangle& aClipRect )
     520             :         throw ( ::com::sun::star::embed::WrongStateException,
     521             :                 ::com::sun::star::uno::Exception,
     522             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     523             : 
     524             :     virtual void SAL_CALL enableModeless( sal_Bool bEnable )
     525             :         throw ( ::com::sun::star::embed::WrongStateException,
     526             :                 ::com::sun::star::uno::Exception,
     527             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     528             : 
     529             :     virtual void SAL_CALL translateAccelerators(
     530             :                     const ::com::sun::star::uno::Sequence< ::com::sun::star::awt::KeyEvent >& aKeys )
     531             :         throw ( ::com::sun::star::embed::WrongStateException,
     532             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     533             : 
     534             :     // XChild ( only for wrapping scenario here )
     535             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL getParent(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     536             :     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;
     537             : 
     538             : };
     539             : 
     540             : #endif
     541             : 
     542             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10