2010-10-27 13:11:31 +01:00
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2012-09-27 13:52:10 +01:00
/*
* This file is part of the LibreOffice project .
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License , v . 2.0 . If a copy of the MPL was not distributed with this
* file , You can obtain one at http : //mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice :
*
* Licensed to the Apache Software Foundation ( ASF ) under one or more
* contributor license agreements . See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership . The ASF licenses this file to you under the Apache
* License , Version 2.0 ( the " License " ) ; you may not use this file
* except in compliance with the License . You may obtain a copy of
* the License at http : //www.apache.org/licenses/LICENSE-2.0 .
*/
2003-10-27 12:05:38 +00:00
2014-05-15 12:06:32 +02:00
# ifndef INCLUDED_EMBEDDEDOBJ_SOURCE_INC_COMMONEMBOBJ_HXX
# define INCLUDED_EMBEDDEDOBJ_SOURCE_INC_COMMONEMBOBJ_HXX
2003-10-27 12:05:38 +00:00
# include <com/sun/star/uno/Sequence.hxx>
# include <com/sun/star/uno/Reference.hxx>
# include <com/sun/star/uno/Any.hxx>
2005-04-04 07:08:44 +00:00
# include <com/sun/star/container/XChild.hpp>
autorecovery: save/recover forms and reports
Still some lose ends. Most notably, the current code contains cases for other sub component types,
but has no real implementation - attempting to save/recover those other types will yield multiple
assertions only. Also, recovery of SRB-reports has not been tested, yet, chances are good there's
some work ahead here.
Other known open issues:
- recovering sub components immediately shows them, instead of initially hiding them, and showing
only when the main document window is shown
- the implementation currently is no real session save, which would require saving information about
*unmodified* open sub components (though not their actual content), and restoring them upon
recovery.
- doing an implicit "connect" at the controller of the to-be-recovered database document is a requirement
to actually load the sub components, but might yield problems in case this requires interaction
(e.g. a login). Need to investigate
- the "recovery" storage is not removed from the database document storage after un/successful recovery
- cancelling the recovery of a "modified" database document always suggests to store this doc somewhere
2010-01-15 15:21:15 +01:00
# include <com/sun/star/document/XStorageBasedDocument.hpp>
2003-10-27 12:05:38 +00:00
# include <com/sun/star/embed/XEmbeddedObject.hpp>
# include <com/sun/star/embed/XVisualObject.hpp>
# include <com/sun/star/embed/XEmbedPersist.hpp>
# include <com/sun/star/embed/XLinkageSupport.hpp>
# include <com/sun/star/embed/XClassifiedObject.hpp>
# include <com/sun/star/embed/XComponentSupplier.hpp>
2004-10-04 18:53:17 +00:00
# include <com/sun/star/embed/XInplaceObject.hpp>
2004-05-10 16:52:42 +00:00
# include <com/sun/star/embed/XStateChangeBroadcaster.hpp>
2004-10-04 18:53:17 +00:00
# include <com/sun/star/awt/XWindow.hpp>
# include <com/sun/star/awt/Rectangle.hpp>
2003-10-27 12:05:38 +00:00
# include <com/sun/star/document/XEventBroadcaster.hpp>
2003-11-17 15:19:26 +00:00
# include <com/sun/star/util/XCloseable.hpp>
2009-09-14 10:57:16 +00:00
# include <com/sun/star/chart2/XDefaultSizeTransmitter.hpp>
2003-10-27 12:05:38 +00:00
# include <cppuhelper/weak.hxx>
namespace com { namespace sun { namespace star {
namespace embed {
class XStorage ;
}
namespace lang {
class XMultiServiceFactory ;
}
namespace util {
class XCloseListener ;
}
2004-05-10 16:52:42 +00:00
namespace beans {
2004-10-04 18:53:17 +00:00
struct PropertyValue ;
struct NamedValue ;
2004-05-10 16:52:42 +00:00
}
2003-10-27 12:05:38 +00:00
} } }
namespace cppu {
class OMultiTypeInterfaceContainerHelper ;
}
2010-01-27 10:53:30 +01:00
namespace comphelper {
class NamedValueCollection ;
}
2004-10-04 18:53:17 +00:00
# define NUM_SUPPORTED_STATES 5
// #define NUM_SUPPORTED_VERBS 5
2003-10-27 12:05:38 +00:00
# include "docholder.hxx"
class Interceptor ;
class OCommonEmbeddedObject : public : : com : : sun : : star : : embed : : XEmbeddedObject
, public : : com : : sun : : star : : embed : : XEmbedPersist
, public : : com : : sun : : star : : embed : : XLinkageSupport
2004-10-04 18:53:17 +00:00
, public : : com : : sun : : star : : embed : : XInplaceObject
2005-04-04 07:08:44 +00:00
, public : : com : : sun : : star : : container : : XChild
2009-09-14 10:57:16 +00:00
, public : : com : : sun : : star : : chart2 : : XDefaultSizeTransmitter
2003-10-27 12:05:38 +00:00
, public : : cppu : : OWeakObject
{
2004-10-04 18:53:17 +00:00
protected :
2003-10-27 12:05:38 +00:00
: : osl : : Mutex m_aMutex ;
DocumentHolder * m_pDocHolder ;
: : cppu : : OMultiTypeInterfaceContainerHelper * m_pInterfaceContainer ;
2014-04-17 11:39:18 +02:00
bool m_bReadOnly ;
2003-10-27 12:05:38 +00:00
2014-04-17 11:39:18 +02:00
bool m_bDisposed ;
bool m_bClosed ;
2003-11-18 11:47:08 +00:00
2003-10-27 12:05:38 +00:00
sal_Int32 m_nObjectState ;
2014-04-29 19:05:05 +00:00
sal_Int32 m_nTargetState ; // should be -1 except during state changing
2003-10-27 12:05:38 +00:00
sal_Int32 m_nUpdateMode ;
2013-01-08 15:29:57 +02:00
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : uno : : XComponentContext > m_xContext ;
2003-10-27 12:05:38 +00:00
2004-05-10 16:52:42 +00:00
: : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : beans : : PropertyValue > m_aDocMediaDescriptor ;
2003-10-27 12:05:38 +00:00
: : com : : sun : : star : : uno : : Sequence < sal_Int8 > m_aClassID ;
2013-04-07 12:06:47 +02:00
OUString m_aClassName ;
2003-10-27 12:05:38 +00:00
2013-04-07 12:06:47 +02:00
OUString m_aDocServiceName ;
OUString m_aPresetFilterName ;
2003-10-27 12:05:38 +00:00
2004-10-04 18:53:17 +00:00
sal_Int64 m_nMiscStatus ;
: : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : embed : : VerbDescriptor > m_aObjectVerbs ;
2003-10-27 12:05:38 +00:00
: : com : : sun : : star : : uno : : Sequence < sal_Int32 > m_aAcceptedStates ;
: : com : : sun : : star : : uno : : Sequence < sal_Int32 > m_pIntermediateStatesSeqs [ NUM_SUPPORTED_STATES ] [ NUM_SUPPORTED_STATES ] ;
: : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : uno : : Sequence < sal_Int32 > > m_aVerbTable ;
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : embed : : XEmbeddedClient > m_xClientSite ;
2013-04-07 12:06:47 +02:00
OUString m_aContainerName ;
OUString m_aDefaultParentBaseURL ;
OUString m_aModuleName ;
2014-04-17 11:39:18 +02:00
bool m_bEmbeddedScriptSupport ;
bool m_bDocumentRecoverySupport ;
2003-10-27 12:05:38 +00:00
// following information will be used between SaveAs and SaveCompleted
2014-04-17 11:39:18 +02:00
bool m_bWaitSaveCompleted ;
2013-04-07 12:06:47 +02:00
OUString m_aNewEntryName ;
2003-10-27 12:05:38 +00:00
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : embed : : XStorage > m_xNewParentStorage ;
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : embed : : XStorage > m_xNewObjectStorage ;
2004-10-04 18:53:17 +00:00
: : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : beans : : PropertyValue > m_aNewDocMediaDescriptor ;
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : awt : : XWindow > m_xClientWindow ; // ???
: : com : : sun : : star : : awt : : Rectangle m_aOwnRectangle ;
: : com : : sun : : star : : awt : : Rectangle m_aClipRectangle ;
2003-10-27 12:05:38 +00:00
2014-04-17 11:39:18 +02:00
bool m_bIsLink ;
2003-10-27 12:05:38 +00:00
// embedded object related stuff
2013-04-07 12:06:47 +02:00
OUString m_aEntryName ;
2003-10-27 12:05:38 +00:00
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : embed : : XStorage > m_xParentStorage ;
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : embed : : XStorage > m_xObjectStorage ;
2010-01-26 13:19:11 +01:00
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : embed : : XStorage > m_xRecoveryStorage ;
2003-10-27 12:05:38 +00:00
// link related stuff
2013-04-07 12:06:47 +02:00
OUString m_aLinkURL ;
OUString m_aLinkFilterName ;
2014-04-17 11:39:18 +02:00
bool m_bLinkHasPassword ;
2013-04-07 12:06:47 +02:00
OUString m_aLinkPassword ;
2003-10-27 12:05:38 +00:00
2005-04-04 07:08:44 +00:00
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : uno : : XInterface > m_xParent ;
2014-04-17 11:39:18 +02:00
bool m_bHasClonedSize ; // the object has cached size
2007-08-02 16:05:48 +00:00
: : com : : sun : : star : : awt : : Size m_aClonedSize ;
sal_Int32 m_nClonedMapUnit ;
2009-09-14 10:57:16 +00:00
: : 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
2007-05-22 18:36:08 +00:00
2003-10-27 12:05:38 +00:00
private :
2004-10-04 18:53:17 +00:00
void CommonInit_Impl ( const : : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : beans : : NamedValue > & aObjectProps ) ;
void LinkInit_Impl ( const : : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : beans : : NamedValue > & aObjectProps ,
const : : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : beans : : PropertyValue > & aMediaDescr ,
const : : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : beans : : PropertyValue > & aObjectDescr ) ;
2003-10-27 12:05:38 +00:00
2003-11-25 12:21:47 +00:00
void SwitchOwnPersistence (
const : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : embed : : XStorage > & xNewParentStorage ,
const : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : embed : : XStorage > & xNewObjectStorage ,
2013-04-07 12:06:47 +02:00
const OUString & aNewName ) ;
2003-11-25 12:21:47 +00:00
void SwitchOwnPersistence (
const : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : embed : : XStorage > & xNewParentStorage ,
2013-04-07 12:06:47 +02:00
const OUString & aNewName ) ;
2003-11-25 12:21:47 +00:00
2013-04-07 12:06:47 +02:00
OUString GetDocumentServiceName ( ) const { return m_aDocServiceName ; }
OUString GetPresetFilterName ( ) const { return m_aPresetFilterName ; }
2003-10-27 12:05:38 +00:00
2004-10-04 18:53:17 +00:00
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : io : : XInputStream >
StoreDocumentToTempStream_Impl ( sal_Int32 nStorageFormat ,
2013-04-07 12:06:47 +02:00
const OUString & aBaseURL ,
const OUString & aHierarchName ) ;
2003-10-27 12:05:38 +00:00
sal_Int32 ConvertVerbToState_Impl ( sal_Int32 nVerb ) ;
2004-10-04 18:53:17 +00:00
void Deactivate ( ) ;
2014-04-17 11:39:18 +02:00
void StateChangeNotification_Impl ( bool bBeforeChange , sal_Int32 nOldState , sal_Int32 nNewState , : : osl : : ResettableMutexGuard & _rGuard ) ;
2004-05-10 16:52:42 +00:00
2003-10-27 12:05:38 +00:00
void SwitchStateTo_Impl ( sal_Int32 nNextState ) ;
: : com : : sun : : star : : uno : : Sequence < sal_Int32 > GetIntermediateStatesSequence_Impl ( sal_Int32 nNewState ) ;
2013-04-07 12:06:47 +02:00
OUString GetFilterName ( sal_Int32 nVersion ) const ;
autorecovery: save/recover forms and reports
Still some lose ends. Most notably, the current code contains cases for other sub component types,
but has no real implementation - attempting to save/recover those other types will yield multiple
assertions only. Also, recovery of SRB-reports has not been tested, yet, chances are good there's
some work ahead here.
Other known open issues:
- recovering sub components immediately shows them, instead of initially hiding them, and showing
only when the main document window is shown
- the implementation currently is no real session save, which would require saving information about
*unmodified* open sub components (though not their actual content), and restoring them upon
recovery.
- doing an implicit "connect" at the controller of the to-be-recovered database document is a requirement
to actually load the sub components, but might yield problems in case this requires interaction
(e.g. a login). Need to investigate
- the "recovery" storage is not removed from the database document storage after un/successful recovery
- cancelling the recovery of a "modified" database document always suggests to store this doc somewhere
2010-01-15 15:21:15 +01:00
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : util : : XCloseable > LoadDocumentFromStorage_Impl ( ) ;
2003-10-27 12:05:38 +00:00
2004-10-04 18:53:17 +00:00
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : util : : XCloseable > LoadLink_Impl ( ) ;
2003-10-27 12:05:38 +00:00
2004-10-04 18:53:17 +00:00
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : util : : XCloseable > InitNewDocument_Impl ( ) ;
2003-10-27 12:05:38 +00:00
2004-10-04 18:53:17 +00:00
void StoreDocToStorage_Impl ( const : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : embed : : XStorage > & xStorage ,
sal_Int32 nStorageVersion ,
2013-04-07 12:06:47 +02:00
const OUString & aBaseURL ,
const OUString & aHierarchName ,
2014-04-17 11:39:18 +02:00
bool bAttachToStorage ) ;
2003-10-27 12:05:38 +00:00
autorecovery: save/recover forms and reports
Still some lose ends. Most notably, the current code contains cases for other sub component types,
but has no real implementation - attempting to save/recover those other types will yield multiple
assertions only. Also, recovery of SRB-reports has not been tested, yet, chances are good there's
some work ahead here.
Other known open issues:
- recovering sub components immediately shows them, instead of initially hiding them, and showing
only when the main document window is shown
- the implementation currently is no real session save, which would require saving information about
*unmodified* open sub components (though not their actual content), and restoring them upon
recovery.
- doing an implicit "connect" at the controller of the to-be-recovered database document is a requirement
to actually load the sub components, but might yield problems in case this requires interaction
(e.g. a login). Need to investigate
- the "recovery" storage is not removed from the database document storage after un/successful recovery
- cancelling the recovery of a "modified" database document always suggests to store this doc somewhere
2010-01-15 15:21:15 +01:00
void SwitchDocToStorage_Impl (
const : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : document : : XStorageBasedDocument > & xDoc ,
const : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : embed : : XStorage > & xStorage ) ;
2010-01-27 10:53:30 +01:00
void FillDefaultLoadArgs_Impl (
const : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : embed : : XStorage > & i_rxStorage ,
: : comphelper : : NamedValueCollection & o_rLoadArgs
) const ;
void EmbedAndReparentDoc_Impl (
const : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : util : : XCloseable > & i_rxDocument
) const ;
2004-10-04 18:53:17 +00:00
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : util : : XCloseable > CreateDocFromMediaDescr_Impl (
2003-10-27 12:05:38 +00:00
const : : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : beans : : PropertyValue > & aMedDescr ) ;
2004-10-04 18:53:17 +00:00
: : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : util : : XCloseable > CreateTempDocFromLink_Impl ( ) ;
2013-04-07 12:06:47 +02:00
OUString GetBaseURL_Impl ( ) const ;
OUString GetBaseURLFrom_Impl (
2004-10-04 18:53:17 +00:00
const : : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : beans : : PropertyValue > & lArguments ,
const : : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : beans : : PropertyValue > & lObjArgs ) ;
2003-10-27 12:05:38 +00:00
public :
OCommonEmbeddedObject (
2013-01-08 15:29:57 +02:00
const : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : uno : : XComponentContext > & rxContext ,
2004-10-04 18:53:17 +00:00
const : : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : beans : : NamedValue > & aObjectProps ) ;
2003-10-27 12:05:38 +00:00
2014-03-29 18:15:35 +01:00
// no persistence for linked objects, so the descriptors are provided in constructor
2003-10-27 12:05:38 +00:00
OCommonEmbeddedObject (
2013-01-08 15:29:57 +02:00
const : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : uno : : XComponentContext > & rxContext ,
2004-10-04 18:53:17 +00:00
const : : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : beans : : NamedValue > & aObjectProps ,
const : : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : beans : : PropertyValue > & aMediaDescr ,
const : : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : beans : : PropertyValue > & aObjectDescr ) ;
2003-10-27 12:05:38 +00:00
virtual ~ OCommonEmbeddedObject ( ) ;
void SaveObject_Impl ( ) ;
2004-10-04 18:53:17 +00:00
void requestPositioning ( const : : com : : sun : : star : : awt : : Rectangle & aRect ) ;
2003-10-27 12:05:38 +00:00
// not a real listener and should not be
2013-04-07 12:06:47 +02:00
void PostEvent_Impl ( const OUString & aEventName ) ;
2003-10-27 12:05:38 +00:00
// XInterface
virtual : : com : : sun : : star : : uno : : Any SAL_CALL queryInterface ( const : : com : : sun : : star : : uno : : Type & rType )
2014-03-26 16:37:00 +01:00
throw ( : : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2003-10-27 12:05:38 +00:00
virtual void SAL_CALL acquire ( )
2014-03-26 16:37:00 +01:00
throw ( ) SAL_OVERRIDE ;
2003-10-27 12:05:38 +00:00
virtual void SAL_CALL release ( )
2014-03-26 16:37:00 +01:00
throw ( ) SAL_OVERRIDE ;
2003-10-27 12:05:38 +00:00
// XTypeProvider
virtual : : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : uno : : Type > SAL_CALL getTypes ( )
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
virtual : : com : : sun : : star : : uno : : Sequence < sal_Int8 > SAL_CALL getImplementationId ( )
throw ( : : com : : sun : : star : : uno : : RuntimeException ) ;
// XEmbeddedObject
virtual void SAL_CALL changeState ( sal_Int32 nNewState )
throw ( : : com : : sun : : star : : embed : : UnreachableStateException ,
: : com : : sun : : star : : embed : : WrongStateException ,
: : com : : sun : : star : : uno : : Exception ,
2014-03-26 16:37:00 +01:00
: : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2003-10-27 12:05:38 +00:00
virtual : : com : : sun : : star : : uno : : Sequence < sal_Int32 > SAL_CALL getReachableStates ( )
throw ( : : com : : sun : : star : : embed : : WrongStateException ,
2014-03-26 16:37:00 +01:00
: : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2003-10-27 12:05:38 +00:00
virtual sal_Int32 SAL_CALL getCurrentState ( )
throw ( : : com : : sun : : star : : embed : : WrongStateException ,
2014-03-26 16:37:00 +01:00
: : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2003-10-27 12:05:38 +00:00
virtual void SAL_CALL doVerb ( sal_Int32 nVerbID )
throw ( : : com : : sun : : star : : lang : : IllegalArgumentException ,
: : com : : sun : : star : : embed : : WrongStateException ,
: : com : : sun : : star : : embed : : UnreachableStateException ,
: : com : : sun : : star : : uno : : Exception ,
2014-03-26 16:37:00 +01:00
: : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2003-10-27 12:05:38 +00:00
2004-05-10 16:52:42 +00:00
virtual : : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : embed : : VerbDescriptor > SAL_CALL getSupportedVerbs ( )
2003-10-27 12:05:38 +00:00
throw ( : : com : : sun : : star : : embed : : WrongStateException ,
2014-03-26 16:37:00 +01:00
: : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2003-10-27 12:05:38 +00:00
virtual void SAL_CALL setClientSite (
const : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : embed : : XEmbeddedClient > & xClient )
throw ( : : com : : sun : : star : : embed : : WrongStateException ,
2014-03-26 16:37:00 +01:00
: : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2003-10-27 12:05:38 +00:00
virtual : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : embed : : XEmbeddedClient > SAL_CALL getClientSite ( )
throw ( : : com : : sun : : star : : embed : : WrongStateException ,
2014-03-26 16:37:00 +01:00
: : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2003-10-27 12:05:38 +00:00
virtual void SAL_CALL update ( )
throw ( : : com : : sun : : star : : embed : : WrongStateException ,
: : com : : sun : : star : : uno : : Exception ,
2014-03-26 16:37:00 +01:00
: : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2003-10-27 12:05:38 +00:00
virtual void SAL_CALL setUpdateMode ( sal_Int32 nMode )
throw ( : : com : : sun : : star : : embed : : WrongStateException ,
2014-03-26 16:37:00 +01:00
: : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2003-10-27 12:05:38 +00:00
virtual sal_Int64 SAL_CALL getStatus ( sal_Int64 nAspect )
throw ( : : com : : sun : : star : : embed : : WrongStateException ,
2014-03-26 16:37:00 +01:00
: : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2003-10-27 12:05:38 +00:00
2013-04-07 12:06:47 +02:00
virtual void SAL_CALL setContainerName ( const OUString & sName )
2014-03-26 16:37:00 +01:00
throw ( : : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2003-10-27 12:05:38 +00:00
2004-05-10 16:52:42 +00:00
// XVisualObject
virtual void SAL_CALL setVisualAreaSize ( sal_Int64 nAspect , const : : com : : sun : : star : : awt : : Size & aSize )
2003-10-27 12:05:38 +00:00
throw ( : : com : : sun : : star : : lang : : IllegalArgumentException ,
: : com : : sun : : star : : embed : : WrongStateException ,
: : com : : sun : : star : : uno : : Exception ,
2014-03-26 16:37:00 +01:00
: : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2003-10-27 12:05:38 +00:00
2004-05-10 16:52:42 +00:00
virtual : : com : : sun : : star : : awt : : Size SAL_CALL getVisualAreaSize ( sal_Int64 nAspect )
2003-10-27 12:05:38 +00:00
throw ( : : com : : sun : : star : : lang : : IllegalArgumentException ,
: : com : : sun : : star : : embed : : WrongStateException ,
: : com : : sun : : star : : uno : : Exception ,
2014-03-26 16:37:00 +01:00
: : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2003-10-27 12:05:38 +00:00
2004-10-04 18:53:17 +00:00
virtual : : com : : sun : : star : : embed : : VisualRepresentation SAL_CALL getPreferredVisualRepresentation ( : : sal_Int64 nAspect )
throw ( : : com : : sun : : star : : lang : : IllegalArgumentException ,
: : com : : sun : : star : : embed : : WrongStateException ,
: : com : : sun : : star : : uno : : Exception ,
2014-03-26 16:37:00 +01:00
: : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2004-10-04 18:53:17 +00:00
virtual sal_Int32 SAL_CALL getMapUnit ( sal_Int64 nAspect )
2003-10-27 12:05:38 +00:00
throw ( : : com : : sun : : star : : uno : : Exception ,
2014-03-26 16:37:00 +01:00
: : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2003-10-27 12:05:38 +00:00
// XEmbedPersist
2003-11-14 14:24:28 +00:00
virtual void SAL_CALL setPersistentEntry (
2003-10-27 12:05:38 +00:00
const : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : embed : : XStorage > & xStorage ,
2013-04-07 12:06:47 +02:00
const OUString & sEntName ,
2003-10-27 12:05:38 +00:00
sal_Int32 nEntryConnectionMode ,
2003-12-08 11:49:52 +00:00
const : : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : beans : : PropertyValue > & lArguments ,
const : : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : beans : : PropertyValue > & lObjArgs )
2003-10-27 12:05:38 +00:00
throw ( : : com : : sun : : star : : lang : : IllegalArgumentException ,
: : com : : sun : : star : : embed : : WrongStateException ,
: : com : : sun : : star : : io : : IOException ,
: : com : : sun : : star : : uno : : Exception ,
2014-03-26 16:37:00 +01:00
: : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2003-10-27 12:05:38 +00:00
2013-04-07 12:06:47 +02:00
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 )
2003-10-27 12:05:38 +00:00
throw ( : : com : : sun : : star : : lang : : IllegalArgumentException ,
: : com : : sun : : star : : embed : : WrongStateException ,
: : com : : sun : : star : : io : : IOException ,
: : com : : sun : : star : : uno : : Exception ,
2014-03-26 16:37:00 +01:00
: : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2003-10-27 12:05:38 +00:00
virtual void SAL_CALL storeAsEntry (
const : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : embed : : XStorage > & xStorage ,
2013-04-07 12:06:47 +02:00
const OUString & sEntName ,
2003-12-08 11:49:52 +00:00
const : : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : beans : : PropertyValue > & lArguments ,
const : : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : beans : : PropertyValue > & lObjArgs )
2003-10-27 12:05:38 +00:00
throw ( : : com : : sun : : star : : lang : : IllegalArgumentException ,
: : com : : sun : : star : : embed : : WrongStateException ,
: : com : : sun : : star : : io : : IOException ,
: : com : : sun : : star : : uno : : Exception ,
2014-03-26 16:37:00 +01:00
: : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2003-10-27 12:05:38 +00:00
virtual void SAL_CALL saveCompleted ( sal_Bool bUseNew )
throw ( : : com : : sun : : star : : embed : : WrongStateException ,
: : com : : sun : : star : : uno : : Exception ,
2014-03-26 16:37:00 +01:00
: : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2003-10-27 12:05:38 +00:00
virtual sal_Bool SAL_CALL hasEntry ( )
throw ( : : com : : sun : : star : : embed : : WrongStateException ,
2014-03-26 16:37:00 +01:00
: : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2003-10-27 12:05:38 +00:00
2013-04-07 12:06:47 +02:00
virtual OUString SAL_CALL getEntryName ( )
2003-10-27 12:05:38 +00:00
throw ( : : com : : sun : : star : : embed : : WrongStateException ,
2014-03-26 16:37:00 +01:00
: : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2003-10-27 12:05:38 +00:00
2004-10-04 18:53:17 +00:00
// XLinkageSupport
virtual void SAL_CALL breakLink ( const : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : embed : : XStorage > & xStorage ,
2013-04-07 12:06:47 +02:00
const OUString & sEntName )
2004-10-04 18:53:17 +00:00
throw ( : : com : : sun : : star : : lang : : IllegalArgumentException ,
: : com : : sun : : star : : embed : : WrongStateException ,
: : com : : sun : : star : : io : : IOException ,
: : com : : sun : : star : : uno : : Exception ,
2014-03-26 16:37:00 +01:00
: : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2004-10-04 18:53:17 +00:00
virtual sal_Bool SAL_CALL isLink ( )
throw ( : : com : : sun : : star : : embed : : WrongStateException ,
2014-03-26 16:37:00 +01:00
: : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2004-10-04 18:53:17 +00:00
2013-04-07 12:06:47 +02:00
virtual OUString SAL_CALL getLinkURL ( )
2004-10-04 18:53:17 +00:00
throw ( : : com : : sun : : star : : embed : : WrongStateException ,
: : com : : sun : : star : : uno : : Exception ,
2014-03-26 16:37:00 +01:00
: : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2004-10-04 18:53:17 +00:00
// XCommonEmbedPersist
virtual void SAL_CALL storeOwn ( )
throw ( : : com : : sun : : star : : embed : : WrongStateException ,
: : com : : sun : : star : : io : : IOException ,
: : com : : sun : : star : : uno : : Exception ,
2014-03-26 16:37:00 +01:00
: : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2004-10-04 18:53:17 +00:00
2003-10-27 12:05:38 +00:00
virtual sal_Bool SAL_CALL isReadonly ( )
throw ( : : com : : sun : : star : : embed : : WrongStateException ,
2014-03-26 16:37:00 +01:00
: : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2003-10-27 12:05:38 +00:00
virtual void SAL_CALL reload (
2003-12-08 11:49:52 +00:00
const : : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : beans : : PropertyValue > & lArguments ,
const : : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : beans : : PropertyValue > & lObjArgs )
2003-10-27 12:05:38 +00:00
throw ( : : com : : sun : : star : : lang : : IllegalArgumentException ,
: : com : : sun : : star : : embed : : WrongStateException ,
: : com : : sun : : star : : io : : IOException ,
: : com : : sun : : star : : uno : : Exception ,
2014-03-26 16:37:00 +01:00
: : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2003-10-27 12:05:38 +00:00
2004-10-04 18:53:17 +00:00
// XInplaceObject
virtual void SAL_CALL setObjectRectangles ( const : : com : : sun : : star : : awt : : Rectangle & aPosRect ,
const : : com : : sun : : star : : awt : : Rectangle & aClipRect )
throw ( : : com : : sun : : star : : embed : : WrongStateException ,
2003-11-04 13:30:21 +00:00
: : com : : sun : : star : : uno : : Exception ,
2014-03-26 16:37:00 +01:00
: : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2003-11-04 13:30:21 +00:00
2004-10-04 18:53:17 +00:00
virtual void SAL_CALL enableModeless ( sal_Bool bEnable )
2003-10-27 12:05:38 +00:00
throw ( : : com : : sun : : star : : embed : : WrongStateException ,
2004-10-04 18:53:17 +00:00
: : com : : sun : : star : : uno : : Exception ,
2014-03-26 16:37:00 +01:00
: : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2003-10-27 12:05:38 +00:00
2004-10-04 18:53:17 +00:00
virtual void SAL_CALL translateAccelerators (
const : : com : : sun : : star : : uno : : Sequence < : : com : : sun : : star : : awt : : KeyEvent > & aKeys )
2003-10-27 12:05:38 +00:00
throw ( : : com : : sun : : star : : embed : : WrongStateException ,
2014-03-26 16:37:00 +01:00
: : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2003-10-27 12:05:38 +00:00
// XClassifiedObject
virtual : : com : : sun : : star : : uno : : Sequence < sal_Int8 > SAL_CALL getClassID ( )
2014-03-26 16:37:00 +01:00
throw ( : : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2003-10-27 12:05:38 +00:00
2013-04-07 12:06:47 +02:00
virtual OUString SAL_CALL getClassName ( )
2014-03-26 16:37:00 +01:00
throw ( : : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2003-10-27 12:05:38 +00:00
virtual void SAL_CALL setClassInfo (
2013-04-07 12:06:47 +02:00
const : : com : : sun : : star : : uno : : Sequence < sal_Int8 > & aClassID , const OUString & aClassName )
2003-10-27 12:05:38 +00:00
throw ( : : com : : sun : : star : : lang : : NoSupportException ,
2014-03-26 16:37:00 +01:00
: : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2003-10-27 12:05:38 +00:00
// XComponentSupplier
2003-11-18 08:03:56 +00:00
virtual : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : util : : XCloseable > SAL_CALL getComponent ( )
2014-03-26 16:37:00 +01:00
throw ( : : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2003-10-27 12:05:38 +00:00
2004-05-10 16:52:42 +00:00
// XStateChangeBroadcaster
2014-03-26 16:37:00 +01:00
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 ;
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 ;
2004-05-10 16:52:42 +00:00
2003-11-17 15:19:26 +00:00
// XCloseable
2003-10-27 12:05:38 +00:00
2003-11-17 15:19:26 +00:00
virtual void SAL_CALL close ( sal_Bool DeliverOwnership )
throw ( : : com : : sun : : star : : util : : CloseVetoException ,
2014-03-26 16:37:00 +01:00
: : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2003-10-27 12:05:38 +00:00
2003-11-17 15:19:26 +00:00
virtual void SAL_CALL addCloseListener (
const : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : util : : XCloseListener > & Listener )
2014-03-26 16:37:00 +01:00
throw ( : : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2003-10-27 12:05:38 +00:00
2003-11-17 15:19:26 +00:00
virtual void SAL_CALL removeCloseListener (
const : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : util : : XCloseListener > & Listener )
2014-03-26 16:37:00 +01:00
throw ( : : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2003-10-27 12:05:38 +00:00
2003-11-17 15:19:26 +00:00
// XEventBroadcaster
2003-10-27 12:05:38 +00:00
virtual void SAL_CALL addEventListener (
2003-11-17 15:19:26 +00:00
const : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : document : : XEventListener > & Listener )
2014-03-26 16:37:00 +01:00
throw ( : : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2003-10-27 12:05:38 +00:00
virtual void SAL_CALL removeEventListener (
2003-11-17 15:19:26 +00:00
const : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : document : : XEventListener > & Listener )
2014-03-26 16:37:00 +01:00
throw ( : : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2005-04-04 07:08:44 +00:00
// XChild
2014-03-26 16:37:00 +01:00
virtual : : com : : sun : : star : : uno : : Reference < : : com : : sun : : star : : uno : : XInterface > SAL_CALL getParent ( ) throw ( : : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
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 ;
2009-09-14 10:57:16 +00:00
// XDefaultSizeTransmitter
//#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
2014-03-26 16:37:00 +01:00
virtual void SAL_CALL setDefaultSize ( const : : com : : sun : : star : : awt : : Size & rSize_100TH_MM ) throw ( : : com : : sun : : star : : uno : : RuntimeException , std : : exception ) SAL_OVERRIDE ;
2003-10-27 12:05:38 +00:00
} ;
# endif
2010-10-27 13:11:31 +01:00
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */