summaryrefslogtreecommitdiff
path: root/toolkit/source/controls/controlmodelcontainerbase.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/source/controls/controlmodelcontainerbase.cxx')
-rw-r--r--toolkit/source/controls/controlmodelcontainerbase.cxx98
1 files changed, 49 insertions, 49 deletions
diff --git a/toolkit/source/controls/controlmodelcontainerbase.cxx b/toolkit/source/controls/controlmodelcontainerbase.cxx
index 06a983f94b12..54766f011b57 100644
--- a/toolkit/source/controls/controlmodelcontainerbase.cxx
+++ b/toolkit/source/controls/controlmodelcontainerbase.cxx
@@ -263,7 +263,7 @@ Any ControlModelContainerBase::ImplGetDefaultValue( sal_uInt16 nPropId ) const
return *pHelper;
}
-void SAL_CALL ControlModelContainerBase::dispose( ) throw(RuntimeException)
+void SAL_CALL ControlModelContainerBase::dispose( ) throw(RuntimeException, std::exception)
{
// tell our listeners
@@ -300,7 +300,7 @@ void SAL_CALL ControlModelContainerBase::dispose( ) throw(RuntimeException)
}
// XMultiPropertySet
-Reference< XPropertySetInfo > ControlModelContainerBase::getPropertySetInfo( ) throw(RuntimeException)
+Reference< XPropertySetInfo > ControlModelContainerBase::getPropertySetInfo( ) throw(RuntimeException, std::exception)
{
static Reference< XPropertySetInfo > xInfo( createPropertySetInfo( getInfoHelper() ) );
return xInfo;
@@ -328,7 +328,7 @@ ControlModelContainerBase::UnoControlModelHolderList::iterator ControlModelConta
}
// ::XMultiServiceFactory
-Reference< XInterface > ControlModelContainerBase::createInstance( const OUString& aServiceSpecifier ) throw(Exception, RuntimeException)
+Reference< XInterface > ControlModelContainerBase::createInstance( const OUString& aServiceSpecifier ) throw(Exception, RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -415,7 +415,7 @@ Reference< XInterface > ControlModelContainerBase::createInstance( const OUStrin
return xNewModel;
}
-Reference< XInterface > ControlModelContainerBase::createInstanceWithArguments( const OUString& ServiceSpecifier, const Sequence< Any >& i_arguments ) throw(Exception, RuntimeException)
+Reference< XInterface > ControlModelContainerBase::createInstanceWithArguments( const OUString& ServiceSpecifier, const Sequence< Any >& i_arguments ) throw(Exception, RuntimeException, std::exception)
{
const Reference< XInterface > xInstance( createInstance( ServiceSpecifier ) );
const Reference< XInitialization > xInstanceInit( xInstance, UNO_QUERY );
@@ -424,7 +424,7 @@ Reference< XInterface > ControlModelContainerBase::createInstanceWithArguments(
return xInstance;
}
-Sequence< OUString > ControlModelContainerBase::getAvailableServiceNames() throw(RuntimeException)
+Sequence< OUString > ControlModelContainerBase::getAvailableServiceNames() throw(RuntimeException, std::exception)
{
static Sequence< OUString >* pNamesSeq = NULL;
if ( !pNamesSeq )
@@ -462,30 +462,30 @@ Sequence< OUString > ControlModelContainerBase::getAvailableServiceNames() throw
}
// XContainer
-void ControlModelContainerBase::addContainerListener( const Reference< XContainerListener >& l ) throw(RuntimeException)
+void ControlModelContainerBase::addContainerListener( const Reference< XContainerListener >& l ) throw(RuntimeException, std::exception)
{
maContainerListeners.addInterface( l );
}
-void ControlModelContainerBase::removeContainerListener( const Reference< XContainerListener >& l ) throw(RuntimeException)
+void ControlModelContainerBase::removeContainerListener( const Reference< XContainerListener >& l ) throw(RuntimeException, std::exception)
{
maContainerListeners.removeInterface( l );
}
// XElementAcces
-Type ControlModelContainerBase::getElementType() throw(RuntimeException)
+Type ControlModelContainerBase::getElementType() throw(RuntimeException, std::exception)
{
Type aType = getCppuType( ( Reference< XControlModel>* ) NULL );
return aType;
}
-sal_Bool ControlModelContainerBase::hasElements() throw(RuntimeException)
+sal_Bool ControlModelContainerBase::hasElements() throw(RuntimeException, std::exception)
{
return !maModels.empty();
}
// XNameContainer, XNameReplace, XNameAccess
-void ControlModelContainerBase::replaceByName( const OUString& aName, const Any& aElement ) throw(IllegalArgumentException, NoSuchElementException, WrappedTargetException, RuntimeException)
+void ControlModelContainerBase::replaceByName( const OUString& aName, const Any& aElement ) throw(IllegalArgumentException, NoSuchElementException, WrappedTargetException, RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -531,7 +531,7 @@ void ControlModelContainerBase::replaceByName( const OUString& aName, const Any&
implNotifyTabModelChange( aName );
}
-Any ControlModelContainerBase::getByName( const OUString& aName ) throw(NoSuchElementException, WrappedTargetException, RuntimeException)
+Any ControlModelContainerBase::getByName( const OUString& aName ) throw(NoSuchElementException, WrappedTargetException, RuntimeException, std::exception)
{
UnoControlModelHolderList::iterator aElementPos = ImplFindElement( aName );
if ( maModels.end() == aElementPos )
@@ -540,7 +540,7 @@ Any ControlModelContainerBase::getByName( const OUString& aName ) throw(NoSuchEl
return makeAny( aElementPos->first );
}
-Sequence< OUString > ControlModelContainerBase::getElementNames() throw(RuntimeException)
+Sequence< OUString > ControlModelContainerBase::getElementNames() throw(RuntimeException, std::exception)
{
Sequence< OUString > aNames( maModels.size() );
@@ -553,12 +553,12 @@ Sequence< OUString > ControlModelContainerBase::getElementNames() throw(RuntimeE
return aNames;
}
-sal_Bool ControlModelContainerBase::hasByName( const OUString& aName ) throw(RuntimeException)
+sal_Bool ControlModelContainerBase::hasByName( const OUString& aName ) throw(RuntimeException, std::exception)
{
return maModels.end() != ImplFindElement( aName );
}
-void ControlModelContainerBase::insertByName( const OUString& aName, const Any& aElement ) throw(IllegalArgumentException, ElementExistException, WrappedTargetException, RuntimeException)
+void ControlModelContainerBase::insertByName( const OUString& aName, const Any& aElement ) throw(IllegalArgumentException, ElementExistException, WrappedTargetException, RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -622,7 +622,7 @@ void ControlModelContainerBase::insertByName( const OUString& aName, const Any&
implNotifyTabModelChange( aName );
}
-void ControlModelContainerBase::removeByName( const OUString& aName ) throw(NoSuchElementException, WrappedTargetException, RuntimeException)
+void ControlModelContainerBase::removeByName( const OUString& aName ) throw(NoSuchElementException, WrappedTargetException, RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -667,19 +667,19 @@ void ControlModelContainerBase::removeByName( const OUString& aName ) throw(NoSu
}
-sal_Bool SAL_CALL ControlModelContainerBase::getGroupControl( ) throw (RuntimeException)
+sal_Bool SAL_CALL ControlModelContainerBase::getGroupControl( ) throw (RuntimeException, std::exception)
{
return sal_True;
}
-void SAL_CALL ControlModelContainerBase::setGroupControl( sal_Bool ) throw (RuntimeException)
+void SAL_CALL ControlModelContainerBase::setGroupControl( sal_Bool ) throw (RuntimeException, std::exception)
{
OSL_TRACE( "ControlModelContainerBase::setGroupControl: explicit grouping not supported" );
}
-void SAL_CALL ControlModelContainerBase::setControlModels( const Sequence< Reference< XControlModel > >& _rControls ) throw (RuntimeException)
+void SAL_CALL ControlModelContainerBase::setControlModels( const Sequence< Reference< XControlModel > >& _rControls ) throw (RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -716,7 +716,7 @@ void SAL_CALL ControlModelContainerBase::setControlModels( const Sequence< Refer
typedef ::std::multimap< sal_Int32, Reference< XControlModel >, ::std::less< sal_Int32 > > MapIndexToModel;
-Sequence< Reference< XControlModel > > SAL_CALL ControlModelContainerBase::getControlModels( ) throw (RuntimeException)
+Sequence< Reference< XControlModel > > SAL_CALL ControlModelContainerBase::getControlModels( ) throw (RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -764,7 +764,7 @@ Sequence< Reference< XControlModel > > SAL_CALL ControlModelContainerBase::getCo
}
-void SAL_CALL ControlModelContainerBase::setGroup( const Sequence< Reference< XControlModel > >&, const OUString& ) throw (RuntimeException)
+void SAL_CALL ControlModelContainerBase::setGroup( const Sequence< Reference< XControlModel > >&, const OUString& ) throw (RuntimeException, std::exception)
{
// not supported. We have only implicit grouping:
// We only have a sequence of control models, and we _know_ (yes, that's a HACK relying on
@@ -774,7 +774,7 @@ void SAL_CALL ControlModelContainerBase::setGroup( const Sequence< Reference< XC
}
////----- XInitialization -------------------------------------------------------------------
-void SAL_CALL ControlModelContainerBase::initialize (const Sequence<Any>& rArguments) throw (com::sun::star::uno::Exception, com::sun::star::uno::RuntimeException)
+void SAL_CALL ControlModelContainerBase::initialize (const Sequence<Any>& rArguments) throw (com::sun::star::uno::Exception, com::sun::star::uno::RuntimeException, std::exception)
{
if ( rArguments.getLength() == 1 )
{
@@ -786,19 +786,19 @@ void SAL_CALL ControlModelContainerBase::initialize (const Sequence<Any>& rArgum
else
m_nTabPageId = -1;
}
-::sal_Int16 SAL_CALL ControlModelContainerBase::getTabPageID() throw (::com::sun::star::uno::RuntimeException)
+::sal_Int16 SAL_CALL ControlModelContainerBase::getTabPageID() throw (::com::sun::star::uno::RuntimeException, std::exception)
{
return m_nTabPageId;
}
-::sal_Bool SAL_CALL ControlModelContainerBase::getEnabled() throw (::com::sun::star::uno::RuntimeException)
+::sal_Bool SAL_CALL ControlModelContainerBase::getEnabled() throw (::com::sun::star::uno::RuntimeException, std::exception)
{
return m_bEnabled;
}
-void SAL_CALL ControlModelContainerBase::setEnabled( ::sal_Bool _enabled ) throw (::com::sun::star::uno::RuntimeException)
+void SAL_CALL ControlModelContainerBase::setEnabled( ::sal_Bool _enabled ) throw (::com::sun::star::uno::RuntimeException, std::exception)
{
m_bEnabled = _enabled;
}
-OUString SAL_CALL ControlModelContainerBase::getTitle() throw (::com::sun::star::uno::RuntimeException)
+OUString SAL_CALL ControlModelContainerBase::getTitle() throw (::com::sun::star::uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
Reference<XPropertySet> xThis(*this,UNO_QUERY);
@@ -806,25 +806,25 @@ OUString SAL_CALL ControlModelContainerBase::getTitle() throw (::com::sun::star:
xThis->getPropertyValue(GetPropertyName(BASEPROPERTY_TITLE)) >>= sTitle;
return sTitle;
}
-void SAL_CALL ControlModelContainerBase::setTitle( const OUString& _title ) throw (::com::sun::star::uno::RuntimeException)
+void SAL_CALL ControlModelContainerBase::setTitle( const OUString& _title ) throw (::com::sun::star::uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
Reference<XPropertySet> xThis(*this,UNO_QUERY);
xThis->setPropertyValue(GetPropertyName(BASEPROPERTY_TITLE),makeAny(_title));
}
-OUString SAL_CALL ControlModelContainerBase::getImageURL() throw (::com::sun::star::uno::RuntimeException)
+OUString SAL_CALL ControlModelContainerBase::getImageURL() throw (::com::sun::star::uno::RuntimeException, std::exception)
{
return m_sImageURL;
}
-void SAL_CALL ControlModelContainerBase::setImageURL( const OUString& _imageurl ) throw (::com::sun::star::uno::RuntimeException)
+void SAL_CALL ControlModelContainerBase::setImageURL( const OUString& _imageurl ) throw (::com::sun::star::uno::RuntimeException, std::exception)
{
m_sImageURL = _imageurl;
}
-OUString SAL_CALL ControlModelContainerBase::getToolTip() throw (::com::sun::star::uno::RuntimeException)
+OUString SAL_CALL ControlModelContainerBase::getToolTip() throw (::com::sun::star::uno::RuntimeException, std::exception)
{
return m_sTooltip;
}
-void SAL_CALL ControlModelContainerBase::setToolTip( const OUString& _tooltip ) throw (::com::sun::star::uno::RuntimeException)
+void SAL_CALL ControlModelContainerBase::setToolTip( const OUString& _tooltip ) throw (::com::sun::star::uno::RuntimeException, std::exception)
{
m_sTooltip = _tooltip;
}
@@ -856,7 +856,7 @@ namespace
}
-sal_Int32 SAL_CALL ControlModelContainerBase::getGroupCount( ) throw (RuntimeException)
+sal_Int32 SAL_CALL ControlModelContainerBase::getGroupCount( ) throw (RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -866,7 +866,7 @@ sal_Int32 SAL_CALL ControlModelContainerBase::getGroupCount( ) throw (RuntimeEx
}
-void SAL_CALL ControlModelContainerBase::getGroup( sal_Int32 _nGroup, Sequence< Reference< XControlModel > >& _rGroup, OUString& _rName ) throw (RuntimeException)
+void SAL_CALL ControlModelContainerBase::getGroup( sal_Int32 _nGroup, Sequence< Reference< XControlModel > >& _rGroup, OUString& _rName ) throw (RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -890,7 +890,7 @@ void SAL_CALL ControlModelContainerBase::getGroup( sal_Int32 _nGroup, Sequence<
}
-void SAL_CALL ControlModelContainerBase::getGroupByName( const OUString& _rName, Sequence< Reference< XControlModel > >& _rGroup ) throw (RuntimeException)
+void SAL_CALL ControlModelContainerBase::getGroupByName( const OUString& _rName, Sequence< Reference< XControlModel > >& _rGroup ) throw (RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -899,13 +899,13 @@ void SAL_CALL ControlModelContainerBase::getGroupByName( const OUString& _rName,
}
-void SAL_CALL ControlModelContainerBase::addChangesListener( const Reference< XChangesListener >& _rxListener ) throw (RuntimeException)
+void SAL_CALL ControlModelContainerBase::addChangesListener( const Reference< XChangesListener >& _rxListener ) throw (RuntimeException, std::exception)
{
maChangeListeners.addInterface( _rxListener );
}
-void SAL_CALL ControlModelContainerBase::removeChangesListener( const Reference< XChangesListener >& _rxListener ) throw (RuntimeException)
+void SAL_CALL ControlModelContainerBase::removeChangesListener( const Reference< XChangesListener >& _rxListener ) throw (RuntimeException, std::exception)
{
maChangeListeners.removeInterface( _rxListener );
}
@@ -1070,7 +1070,7 @@ void ControlModelContainerBase::implUpdateGroupStructure()
}
-void SAL_CALL ControlModelContainerBase::propertyChange( const PropertyChangeEvent& _rEvent ) throw (RuntimeException)
+void SAL_CALL ControlModelContainerBase::propertyChange( const PropertyChangeEvent& _rEvent ) throw (RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -1096,7 +1096,7 @@ void SAL_CALL ControlModelContainerBase::propertyChange( const PropertyChangeEve
}
-void SAL_CALL ControlModelContainerBase::disposing( const EventObject& /*rEvent*/ ) throw (RuntimeException)
+void SAL_CALL ControlModelContainerBase::disposing( const EventObject& /*rEvent*/ ) throw (RuntimeException, std::exception)
{
}
@@ -1146,7 +1146,7 @@ ResourceListener::~ResourceListener()
// XInterface
Any SAL_CALL ResourceListener::queryInterface( const Type& rType )
-throw ( RuntimeException )
+throw ( RuntimeException, std::exception )
{
Any a = ::cppu::queryInterface(
rType ,
@@ -1252,7 +1252,7 @@ void ResourceListener::stopListening()
// XModifyListener
void SAL_CALL ResourceListener::modified(
const lang::EventObject& aEvent )
-throw ( RuntimeException )
+throw ( RuntimeException, std::exception )
{
Reference< util::XModifyListener > xListener;
@@ -1281,7 +1281,7 @@ throw ( RuntimeException )
// XEventListener
void SAL_CALL ResourceListener::disposing(
const EventObject& Source )
-throw ( RuntimeException )
+throw ( RuntimeException, std::exception )
{
Reference< lang::XEventListener > xListener;
Reference< resource::XStringResourceResolver > xResource;
@@ -1371,7 +1371,7 @@ ControlContainerBase::~ControlContainerBase()
{
}
-void ControlContainerBase::createPeer( const Reference< XToolkit > & rxToolkit, const Reference< XWindowPeer > & rParentPeer ) throw(RuntimeException)
+void ControlContainerBase::createPeer( const Reference< XToolkit > & rxToolkit, const Reference< XWindowPeer > & rParentPeer ) throw(RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
UnoControlContainer::createPeer( rxToolkit, rParentPeer );
@@ -1474,7 +1474,7 @@ void ControlContainerBase::ImplSetPosSize( Reference< XControl >& rxCtrl )
xW->setPosSize( nX, nY, nWidth, nHeight, PosSize::POSSIZE );
}
-void ControlContainerBase::dispose() throw(RuntimeException)
+void ControlContainerBase::dispose() throw(RuntimeException, std::exception)
{
EventObject aEvt;
aEvt.Source = static_cast< ::cppu::OWeakObject* >( this );
@@ -1494,12 +1494,12 @@ void ControlContainerBase::dispose() throw(RuntimeException)
void SAL_CALL ControlContainerBase::disposing(
const EventObject& Source )
-throw(RuntimeException)
+throw(RuntimeException, std::exception)
{
UnoControlContainer::disposing( Source );
}
-sal_Bool ControlContainerBase::setModel( const Reference< XControlModel >& rxModel ) throw(RuntimeException)
+sal_Bool ControlContainerBase::setModel( const Reference< XControlModel >& rxModel ) throw(RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -1572,7 +1572,7 @@ sal_Bool ControlContainerBase::setModel( const Reference< XControlModel >& rxMod
return bRet;
}
-void ControlContainerBase::setDesignMode( sal_Bool bOn ) throw(RuntimeException)
+void ControlContainerBase::setDesignMode( sal_Bool bOn ) throw(RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -1591,7 +1591,7 @@ void ControlContainerBase::setDesignMode( sal_Bool bOn ) throw(RuntimeException)
mxTabController->activateTabOrder();
}
-void ControlContainerBase::elementInserted( const ContainerEvent& Event ) throw(RuntimeException)
+void ControlContainerBase::elementInserted( const ContainerEvent& Event ) throw(RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -1615,7 +1615,7 @@ void ControlContainerBase::elementInserted( const ContainerEvent& Event ) throw(
}
}
-void ControlContainerBase::elementRemoved( const ContainerEvent& Event ) throw(RuntimeException)
+void ControlContainerBase::elementRemoved( const ContainerEvent& Event ) throw(RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -1636,7 +1636,7 @@ void ControlContainerBase::elementRemoved( const ContainerEvent& Event ) throw(R
}
}
-void ControlContainerBase::elementReplaced( const ContainerEvent& Event ) throw(RuntimeException)
+void ControlContainerBase::elementReplaced( const ContainerEvent& Event ) throw(RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -1755,7 +1755,7 @@ void ControlContainerBase::removingControl( const Reference< XControl >& _rxCont
}
-void SAL_CALL ControlContainerBase::changesOccurred( const ChangesEvent& ) throw (RuntimeException)
+void SAL_CALL ControlContainerBase::changesOccurred( const ChangesEvent& ) throw (RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
// a tab controller model may have changed