LCOV - code coverage report
Current view: top level - embeddedobj/source/inc - oleembobj.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 11 0.0 %
Date: 2014-11-03 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 INCLUDED_EMBEDDEDOBJ_SOURCE_INC_OLEEMBOBJ_HXX
      21             : #define INCLUDED_EMBEDDEDOBJ_SOURCE_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             :     bool m_bVerbExecutionInProgress;
      52             : #ifdef WNT
      53             :     oslThreadIdentifier m_nVerbExecutionThreadIdentifier;
      54             :     sal_Bool m_bChangedOnVerbExecution;
      55             : #endif
      56             : 
      57             :     bool m_bWasEverActive;
      58             :     sal_Int32 m_nNotificationLock;
      59             : 
      60             : public:
      61             : 
      62           0 :     VerbExecutionController()
      63             :     : m_bVerbExecutionInProgress( false )
      64             : #ifdef WNT
      65             :     , m_nVerbExecutionThreadIdentifier( 0 )
      66             :     , m_bChangedOnVerbExecution( sal_False )
      67             : #endif
      68             :     , m_bWasEverActive( 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             :     bool CanDoNotification() { return ( !m_bVerbExecutionInProgress && !m_bWasEverActive && !m_nNotificationLock ); }
      81             :     // ... or to change it
      82             :     void ObjectIsActive() { m_bWasEverActive = 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             :     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             :     bool m_bWaitSaveCompleted;
     139             :     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             :     bool m_bStoreLoaded;
     145             : 
     146             :     ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > m_xCachedVisualRepresentation;
     147             :     bool m_bVisReplInitialized;
     148             :     bool m_bVisReplInStream;
     149             :     bool m_bStoreVisRepl;
     150             : 
     151             :     bool m_bIsLink;
     152             : 
     153             :     // TODO/LATER: may need to cache more than one aspect in future
     154             :     bool m_bHasCachedSize; // the object has cached size
     155             :     ::com::sun::star::awt::Size m_aCachedSize;
     156             :     sal_Int64 m_nCachedAspect;
     157             : 
     158             :     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             :     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             :     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             :     bool m_bTriedConversion;
     194             :     OUString m_aFilterName; // if m_bTriedConversion, then the filter detected by that
     195             : 
     196             :     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > m_xParent;
     197             : 
     198             : protected:
     199             : 
     200             :     ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > TryToGetAcceptableFormat_Impl(
     201             :                                     const ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream >& xStream )
     202             :         throw ( ::com::sun::star::uno::Exception );
     203             : 
     204             :     ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > GetNewFilledTempStream_Impl(
     205             :                                     const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& xInStream )
     206             :         throw( css::io::IOException, css::uno::RuntimeException );
     207             : #ifdef WNT
     208             :     void SwitchComponentToRunningState_Impl();
     209             : #endif
     210             :     void MakeEventListenerNotification_Impl( const OUString& aEventName );
     211             : #ifdef WNT
     212             :     void StateChangeNotification_Impl( sal_Bool bBeforeChange, sal_Int32 nOldState, sal_Int32 nNewState );
     213             :     ::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream > GetStreamForSaving();
     214             : 
     215             : 
     216             :     ::com::sun::star::uno::Sequence< sal_Int32 > GetIntermediateVerbsSequence_Impl( sal_Int32 nNewState );
     217             : 
     218             :     ::com::sun::star::uno::Sequence< sal_Int32 > GetReachableStatesList_Impl(
     219             :                         const ::com::sun::star::uno::Sequence< ::com::sun::star::embed::VerbDescriptor >& aVerbList );
     220             : #endif
     221             : 
     222             :     void CloseComponent();
     223             :     void Dispose();
     224             : 
     225             :     void SwitchOwnPersistence(
     226             :                 const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xNewParentStorage,
     227             :                 const ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream >& xNewObjectStream,
     228             :                 const OUString& aNewName );
     229             : 
     230             :     void SwitchOwnPersistence(
     231             :                 const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xNewParentStorage,
     232             :                 const OUString& aNewName );
     233             : 
     234             :     void GetRidOfComponent();
     235             : 
     236             :     void StoreToLocation_Impl(
     237             :                             const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage,
     238             :                             const OUString& sEntName,
     239             :                             const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lObjArgs,
     240             :                             bool bSaveAs )
     241             :         throw ( ::com::sun::star::uno::Exception );
     242             : #ifdef WNT
     243             :     void StoreObjectToStream( ::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream > xOutStream )
     244             :         throw ( ::com::sun::star::uno::Exception );
     245             : #endif
     246             :     void InsertVisualCache_Impl(
     247             :             const ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream >& xTargetStream,
     248             :             const ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream >& xCachedVisualRepresentation )
     249             :         throw ( ::com::sun::star::uno::Exception );
     250             : 
     251             :     void RemoveVisualCache_Impl( const ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream >& xTargetStream )
     252             :         throw ( ::com::sun::star::uno::Exception );
     253             : 
     254             :     void SetVisReplInStream( bool bExists );
     255             :     bool HasVisReplInStream();
     256             : 
     257             :     ::com::sun::star::embed::VisualRepresentation GetVisualRepresentationInNativeFormat_Impl(
     258             :                     const ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > xCachedVisRepr )
     259             :         throw ( ::com::sun::star::uno::Exception );
     260             : 
     261             :     ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream > TryToRetrieveCachedVisualRepresentation_Impl(
     262             :                     const ::com::sun::star::uno::Reference< ::com::sun::star::io::XStream >& xStream,
     263             :                     bool bAllowRepair50 = false )
     264             :         throw ();
     265             : #ifdef WNT
     266             :     sal_Bool SaveObject_Impl();
     267             :     sal_Bool OnShowWindow_Impl( sal_Bool bShow );
     268             :     void CreateOleComponent_Impl( OleComponent* pOleComponent = NULL );
     269             :     void CreateOleComponentAndLoad_Impl( OleComponent* pOleComponent = NULL );
     270             :     void CreateOleComponentFromClipboard_Impl( OleComponent* pOleComponent = NULL );
     271             : #endif
     272             :     void SetObjectIsLink_Impl( bool bIsLink ) { m_bIsLink = bIsLink; }
     273             : 
     274             : #ifdef WNT
     275             :     OUString CreateTempURLEmpty_Impl();
     276             :     OUString GetTempURL_Impl();
     277             : #endif
     278             :     OUString GetContainerName_Impl() { return m_aContainerName; }
     279             : 
     280             :     // the following 4 methods are related to switch to wrapping mode
     281             :     void MoveListeners();
     282             :     ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage > CreateTemporarySubstorage( OUString& o_aStorageName );
     283             :     OUString MoveToTemporarySubstream();
     284             :     bool TryToConvertToOOo();
     285             : 
     286             : public:
     287             :     // in case a new object must be created the class ID must be specified
     288             :     OleEmbeddedObject( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xFactory,
     289             :                         const ::com::sun::star::uno::Sequence< sal_Int8 >& aClassID,
     290             :                         const OUString& aClassName );
     291             : 
     292             :     // in case object will be loaded from a persistent entry or from a file the class ID will be detected on loading
     293             :     // factory can do it for OOo objects, but for OLE objects OS dependent code is required
     294             :     OleEmbeddedObject( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xFactory,
     295             :                         bool bLink );
     296             : #ifdef WNT
     297             :     // this constructor let object be initialized from clipboard
     298             :     OleEmbeddedObject( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xFactory );
     299             : #endif
     300             : 
     301             :     virtual ~OleEmbeddedObject();
     302             : 
     303             : #ifdef WNT
     304             :     void OnIconChanged_Impl();
     305             :     void OnViewChanged_Impl();
     306             :     void OnClosed_Impl();
     307             : #endif
     308             : 
     309             : // XEmbeddedObject
     310             : 
     311             :     virtual void SAL_CALL changeState( sal_Int32 nNewState )
     312             :         throw ( ::com::sun::star::embed::UnreachableStateException,
     313             :                 ::com::sun::star::embed::WrongStateException,
     314             :                 ::com::sun::star::uno::Exception,
     315             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     316             : 
     317             :     virtual ::com::sun::star::uno::Sequence< sal_Int32 > SAL_CALL getReachableStates()
     318             :         throw ( ::com::sun::star::embed::WrongStateException,
     319             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     320             : 
     321             :     virtual sal_Int32 SAL_CALL getCurrentState()
     322             :         throw ( ::com::sun::star::embed::WrongStateException,
     323             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     324             : 
     325             :     virtual void SAL_CALL doVerb( sal_Int32 nVerbID )
     326             :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     327             :                 ::com::sun::star::embed::WrongStateException,
     328             :                 ::com::sun::star::embed::UnreachableStateException,
     329             :                 ::com::sun::star::uno::Exception,
     330             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     331             : 
     332             :     virtual ::com::sun::star::uno::Sequence< ::com::sun::star::embed::VerbDescriptor > SAL_CALL getSupportedVerbs()
     333             :         throw ( ::com::sun::star::embed::WrongStateException,
     334             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     335             : 
     336             :     virtual void SAL_CALL setClientSite(
     337             :                 const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XEmbeddedClient >& xClient )
     338             :         throw ( ::com::sun::star::embed::WrongStateException,
     339             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     340             : 
     341             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::embed::XEmbeddedClient > SAL_CALL getClientSite()
     342             :         throw ( ::com::sun::star::embed::WrongStateException,
     343             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     344             : 
     345             :     virtual void SAL_CALL update()
     346             :         throw ( ::com::sun::star::embed::WrongStateException,
     347             :                 ::com::sun::star::uno::Exception,
     348             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     349             : 
     350             :     virtual void SAL_CALL setUpdateMode( sal_Int32 nMode )
     351             :         throw ( ::com::sun::star::embed::WrongStateException,
     352             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     353             : 
     354             :     virtual sal_Int64 SAL_CALL getStatus( sal_Int64 nAspect )
     355             :         throw ( ::com::sun::star::embed::WrongStateException,
     356             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     357             : 
     358             :     virtual void SAL_CALL setContainerName( const OUString& sName )
     359             :         throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     360             : 
     361             : 
     362             : // XVisualObject
     363             : 
     364             :     virtual void SAL_CALL setVisualAreaSize( sal_Int64 nAspect, const ::com::sun::star::awt::Size& aSize )
     365             :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     366             :                 ::com::sun::star::embed::WrongStateException,
     367             :                 ::com::sun::star::uno::Exception,
     368             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     369             : 
     370             :     virtual ::com::sun::star::awt::Size SAL_CALL getVisualAreaSize( sal_Int64 nAspect )
     371             :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     372             :                 ::com::sun::star::embed::WrongStateException,
     373             :                 ::com::sun::star::uno::Exception,
     374             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     375             : 
     376             :     virtual ::com::sun::star::embed::VisualRepresentation SAL_CALL getPreferredVisualRepresentation( ::sal_Int64 nAspect )
     377             :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     378             :                 ::com::sun::star::embed::WrongStateException,
     379             :                 ::com::sun::star::uno::Exception,
     380             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     381             : 
     382             :     virtual sal_Int32 SAL_CALL getMapUnit( sal_Int64 nAspect )
     383             :         throw ( ::com::sun::star::uno::Exception,
     384             :                 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     385             : 
     386             : 
     387             : // XEmbedPersist
     388             : 
     389             :     virtual void SAL_CALL setPersistentEntry(
     390             :                     const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage,
     391             :                     const OUString& sEntName,
     392             :                     sal_Int32 nEntryConnectionMode,
     393             :                     const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lArguments,
     394             :                     const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lObjArgs )
     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 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 )
     402             :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     403             :                 ::com::sun::star::embed::WrongStateException,
     404             :                 ::com::sun::star::io::IOException,
     405             :                 ::com::sun::star::uno::Exception,
     406             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     407             : 
     408             :     virtual void SAL_CALL storeAsEntry(
     409             :                 const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage,
     410             :                 const OUString& sEntName,
     411             :                 const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lArguments,
     412             :                 const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lObjArgs )
     413             :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     414             :                 ::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 void SAL_CALL saveCompleted( sal_Bool bUseNew )
     420             :         throw ( ::com::sun::star::embed::WrongStateException,
     421             :                 ::com::sun::star::uno::Exception,
     422             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     423             : 
     424             :     virtual sal_Bool SAL_CALL hasEntry()
     425             :         throw ( ::com::sun::star::embed::WrongStateException,
     426             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     427             : 
     428             :     virtual OUString SAL_CALL getEntryName()
     429             :         throw ( ::com::sun::star::embed::WrongStateException,
     430             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     431             : 
     432             : // XLinkageSupport
     433             : 
     434             :     virtual void SAL_CALL breakLink( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage,
     435             :                                      const OUString& sEntName )
     436             :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     437             :                 ::com::sun::star::embed::WrongStateException,
     438             :                 ::com::sun::star::io::IOException,
     439             :                 ::com::sun::star::uno::Exception,
     440             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     441             : 
     442             :     virtual sal_Bool SAL_CALL isLink()
     443             :         throw ( ::com::sun::star::embed::WrongStateException,
     444             :                 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     445             : 
     446             :     virtual OUString SAL_CALL getLinkURL()
     447             :         throw ( ::com::sun::star::embed::WrongStateException,
     448             :                 ::com::sun::star::uno::Exception,
     449             :                 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     450             : 
     451             : // XCommonEmbedPersist
     452             :     virtual void SAL_CALL storeOwn()
     453             :         throw ( ::com::sun::star::embed::WrongStateException,
     454             :                 ::com::sun::star::io::IOException,
     455             :                 ::com::sun::star::uno::Exception,
     456             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     457             : 
     458             :     virtual sal_Bool SAL_CALL isReadonly()
     459             :         throw ( ::com::sun::star::embed::WrongStateException,
     460             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     461             : 
     462             :     virtual void SAL_CALL reload(
     463             :                 const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lArguments,
     464             :                 const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& lObjArgs )
     465             :         throw ( ::com::sun::star::lang::IllegalArgumentException,
     466             :                 ::com::sun::star::embed::WrongStateException,
     467             :                 ::com::sun::star::io::IOException,
     468             :                 ::com::sun::star::uno::Exception,
     469             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     470             : 
     471             : // XClassifiedObject
     472             : 
     473             :     virtual ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getClassID()
     474             :         throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     475             : 
     476             :     virtual OUString SAL_CALL getClassName()
     477             :         throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     478             : 
     479             :     virtual void SAL_CALL setClassInfo(
     480             :                 const ::com::sun::star::uno::Sequence< sal_Int8 >& aClassID, const OUString& aClassName )
     481             :         throw ( ::com::sun::star::lang::NoSupportException,
     482             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     483             : 
     484             : // XStateChangeBroadcaster
     485             :     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;
     486             :     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;
     487             : 
     488             : 
     489             : // XComponentSupplier
     490             : 
     491             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseable > SAL_CALL getComponent()
     492             :         throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     493             : 
     494             : // XCloseable
     495             : 
     496             :     virtual void SAL_CALL close( sal_Bool DeliverOwnership )
     497             :         throw ( ::com::sun::star::util::CloseVetoException,
     498             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     499             : 
     500             :     virtual void SAL_CALL addCloseListener(
     501             :                 const ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseListener >& Listener )
     502             :         throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     503             : 
     504             :     virtual void SAL_CALL removeCloseListener(
     505             :                 const ::com::sun::star::uno::Reference< ::com::sun::star::util::XCloseListener >& Listener )
     506             :         throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     507             : 
     508             : // XEventBroadcaster
     509             :     virtual void SAL_CALL addEventListener(
     510             :                 const ::com::sun::star::uno::Reference< ::com::sun::star::document::XEventListener >& Listener )
     511             :         throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     512             : 
     513             :     virtual void SAL_CALL removeEventListener(
     514             :                 const ::com::sun::star::uno::Reference< ::com::sun::star::document::XEventListener >& Listener )
     515             :         throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     516             : 
     517             : // XInplaceObject ( only for wrapping scenario here )
     518             : 
     519             :     virtual void SAL_CALL setObjectRectangles( const ::com::sun::star::awt::Rectangle& aPosRect,
     520             :                                           const ::com::sun::star::awt::Rectangle& aClipRect )
     521             :         throw ( ::com::sun::star::embed::WrongStateException,
     522             :                 ::com::sun::star::uno::Exception,
     523             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     524             : 
     525             :     virtual void SAL_CALL enableModeless( sal_Bool bEnable )
     526             :         throw ( ::com::sun::star::embed::WrongStateException,
     527             :                 ::com::sun::star::uno::Exception,
     528             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     529             : 
     530             :     virtual void SAL_CALL translateAccelerators(
     531             :                     const ::com::sun::star::uno::Sequence< ::com::sun::star::awt::KeyEvent >& aKeys )
     532             :         throw ( ::com::sun::star::embed::WrongStateException,
     533             :                 ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     534             : 
     535             :     // XChild ( only for wrapping scenario here )
     536             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL getParent(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     537             :     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;
     538             : 
     539             : };
     540             : 
     541             : #endif
     542             : 
     543             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10