summaryrefslogtreecommitdiff
path: root/vcl/unx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-26 12:28:58 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-26 12:54:43 +0000
commite57ca02849c3d87142ff5ff9099a212e72b8139c (patch)
treebcce66b27261553c308779f3e8663a269ed3a671 /vcl/unx
parent8802ebd5172ec4bc412a59d136c82b77ab452281 (diff)
Remove dynamic exception specifications
...(for now, from LIBO_INTERNAL_CODE only). See the mail thread starting at <https://lists.freedesktop.org/archives/libreoffice/2017-January/076665.html> "Dynamic Exception Specifications" for details. Most changes have been done automatically by the rewriting loplugin:dynexcspec (after enabling the rewriting mode, to be committed shortly). The way it only removes exception specs from declarations if it also sees a definition, it identified some dead declarations-w/o-definitions (that have been removed manually) and some cases where a definition appeared in multiple include files (which have also been cleaned up manually). There's also been cases of macro paramters (that were used to abstract over exception specs) that have become unused now (and been removed). Furthermore, some code needed to be cleaned up manually (avmedia/source/quicktime/ and connectivity/source/drivers/kab/), as I had no configurations available that would actually build that code. Missing @throws documentation has not been applied in such manual clean-up. Change-Id: I3408691256c9b0c12bc5332de976743626e13960 Reviewed-on: https://gerrit.libreoffice.org/33574 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/unx')
-rw-r--r--vcl/unx/generic/dtrans/X11_clipboard.cxx9
-rw-r--r--vcl/unx/generic/dtrans/X11_clipboard.hxx27
-rw-r--r--vcl/unx/generic/dtrans/X11_dndcontext.cxx18
-rw-r--r--vcl/unx/generic/dtrans/X11_dndcontext.hxx18
-rw-r--r--vcl/unx/generic/dtrans/X11_droptarget.cxx20
-rw-r--r--vcl/unx/generic/dtrans/X11_selection.cxx26
-rw-r--r--vcl/unx/generic/dtrans/X11_selection.hxx53
-rw-r--r--vcl/unx/generic/dtrans/X11_transferable.cxx3
-rw-r--r--vcl/unx/generic/dtrans/X11_transferable.hxx12
-rw-r--r--vcl/unx/gtk/a11y/atkaction.cxx2
-rw-r--r--vcl/unx/gtk/a11y/atkcomponent.cxx2
-rw-r--r--vcl/unx/gtk/a11y/atkeditabletext.cxx2
-rw-r--r--vcl/unx/gtk/a11y/atkhypertext.cxx2
-rw-r--r--vcl/unx/gtk/a11y/atkimage.cxx2
-rw-r--r--vcl/unx/gtk/a11y/atklistener.cxx4
-rw-r--r--vcl/unx/gtk/a11y/atklistener.hxx6
-rw-r--r--vcl/unx/gtk/a11y/atkselection.cxx2
-rw-r--r--vcl/unx/gtk/a11y/atktable.cxx2
-rw-r--r--vcl/unx/gtk/a11y/atktext.cxx8
-rw-r--r--vcl/unx/gtk/a11y/atktextattributes.cxx2
-rw-r--r--vcl/unx/gtk/a11y/atkutil.cxx34
-rw-r--r--vcl/unx/gtk/a11y/atkvalue.cxx2
-rw-r--r--vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx42
-rw-r--r--vcl/unx/gtk/fpicker/SalGtkFilePicker.hxx85
-rw-r--r--vcl/unx/gtk/fpicker/SalGtkFolderPicker.cxx12
-rw-r--r--vcl/unx/gtk/fpicker/SalGtkFolderPicker.hxx21
-rw-r--r--vcl/unx/gtk/fpicker/SalGtkPicker.cxx8
-rw-r--r--vcl/unx/gtk/fpicker/SalGtkPicker.hxx39
-rw-r--r--vcl/unx/gtk3/gtk3gtkframe.cxx17
-rw-r--r--vcl/unx/gtk3/gtk3gtkinst.cxx77
-rw-r--r--vcl/unx/kde4/KDE4FilePicker.cxx25
-rw-r--r--vcl/unx/kde4/KDE4FilePicker.hxx87
32 files changed, 254 insertions, 415 deletions
diff --git a/vcl/unx/generic/dtrans/X11_clipboard.cxx b/vcl/unx/generic/dtrans/X11_clipboard.cxx
index 6e9f5678a3ba..6f9e4de03856 100644
--- a/vcl/unx/generic/dtrans/X11_clipboard.cxx
+++ b/vcl/unx/generic/dtrans/X11_clipboard.cxx
@@ -133,7 +133,6 @@ void X11Clipboard::clearContents()
}
Reference< XTransferable > SAL_CALL X11Clipboard::getContents()
- throw(RuntimeException, std::exception)
{
MutexGuard aGuard(m_rSelectionManager.getMutex());
@@ -145,7 +144,6 @@ Reference< XTransferable > SAL_CALL X11Clipboard::getContents()
void SAL_CALL X11Clipboard::setContents(
const Reference< XTransferable >& xTrans,
const Reference< XClipboardOwner >& xClipboardOwner )
- throw(RuntimeException, std::exception)
{
// remember old values for callbacks before setting the new ones.
ClearableMutexGuard aGuard(m_rSelectionManager.getMutex());
@@ -176,26 +174,22 @@ void SAL_CALL X11Clipboard::setContents(
}
OUString SAL_CALL X11Clipboard::getName()
- throw(RuntimeException, std::exception)
{
return m_rSelectionManager.getString( m_aSelection );
}
sal_Int8 SAL_CALL X11Clipboard::getRenderingCapabilities()
- throw(RuntimeException, std::exception)
{
return RenderingCapabilities::Delayed;
}
void SAL_CALL X11Clipboard::addClipboardListener( const Reference< XClipboardListener >& listener )
- throw(RuntimeException, std::exception)
{
MutexGuard aGuard( m_rSelectionManager.getMutex() );
m_aListeners.push_back( listener );
}
void SAL_CALL X11Clipboard::removeClipboardListener( const Reference< XClipboardListener >& listener )
- throw(RuntimeException, std::exception)
{
MutexGuard aGuard( m_rSelectionManager.getMutex() );
m_aListeners.remove( listener );
@@ -222,19 +216,16 @@ Reference< XInterface > X11Clipboard::getReference() throw()
}
OUString SAL_CALL X11Clipboard::getImplementationName( )
- throw(RuntimeException, std::exception)
{
return OUString(X11_CLIPBOARD_IMPLEMENTATION_NAME);
}
sal_Bool SAL_CALL X11Clipboard::supportsService( const OUString& ServiceName )
- throw(RuntimeException, std::exception)
{
return cppu::supportsService(this, ServiceName);
}
Sequence< OUString > SAL_CALL X11Clipboard::getSupportedServiceNames( )
- throw(RuntimeException, std::exception)
{
return X11Clipboard_getSupportedServiceNames();
}
diff --git a/vcl/unx/generic/dtrans/X11_clipboard.hxx b/vcl/unx/generic/dtrans/X11_clipboard.hxx
index b3d06f4f6f55..c9a948cefd99 100644
--- a/vcl/unx/generic/dtrans/X11_clipboard.hxx
+++ b/vcl/unx/generic/dtrans/X11_clipboard.hxx
@@ -66,47 +66,38 @@ namespace x11 {
* XServiceInfo
*/
- virtual OUString SAL_CALL getImplementationName( )
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getImplementationName( ) override;
- virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( )
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
/*
* XClipboard
*/
- virtual css::uno::Reference< css::datatransfer::XTransferable > SAL_CALL getContents()
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Reference< css::datatransfer::XTransferable > SAL_CALL getContents() override;
virtual void SAL_CALL setContents(
const css::uno::Reference< css::datatransfer::XTransferable >& xTrans,
- const css::uno::Reference< css::datatransfer::clipboard::XClipboardOwner >& xClipboardOwner )
- throw(css::uno::RuntimeException, std::exception) override;
+ const css::uno::Reference< css::datatransfer::clipboard::XClipboardOwner >& xClipboardOwner ) override;
- virtual OUString SAL_CALL getName()
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getName() override;
/*
* XClipboardEx
*/
- virtual sal_Int8 SAL_CALL getRenderingCapabilities()
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual sal_Int8 SAL_CALL getRenderingCapabilities() override;
/*
* XClipboardNotifier
*/
virtual void SAL_CALL addClipboardListener(
- const css::uno::Reference< css::datatransfer::clipboard::XClipboardListener >& listener )
- throw(css::uno::RuntimeException, std::exception) override;
+ const css::uno::Reference< css::datatransfer::clipboard::XClipboardListener >& listener ) override;
virtual void SAL_CALL removeClipboardListener(
- const css::uno::Reference< css::datatransfer::clipboard::XClipboardListener >& listener )
- throw(css::uno::RuntimeException, std::exception) override;
+ const css::uno::Reference< css::datatransfer::clipboard::XClipboardListener >& listener ) override;
/*
* SelectionAdaptor
diff --git a/vcl/unx/generic/dtrans/X11_dndcontext.cxx b/vcl/unx/generic/dtrans/X11_dndcontext.cxx
index 375bdea01538..3f923d4b0e95 100644
--- a/vcl/unx/generic/dtrans/X11_dndcontext.cxx
+++ b/vcl/unx/generic/dtrans/X11_dndcontext.cxx
@@ -42,17 +42,17 @@ DropTargetDropContext::~DropTargetDropContext()
{
}
-void DropTargetDropContext::acceptDrop( sal_Int8 dragOperation ) throw(std::exception)
+void DropTargetDropContext::acceptDrop( sal_Int8 dragOperation )
{
m_rManager.accept( dragOperation, m_aDropWindow, m_nTimestamp );
}
-void DropTargetDropContext::rejectDrop() throw(std::exception)
+void DropTargetDropContext::rejectDrop()
{
m_rManager.reject( m_aDropWindow, m_nTimestamp );
}
-void DropTargetDropContext::dropComplete( sal_Bool success ) throw(std::exception)
+void DropTargetDropContext::dropComplete( sal_Bool success )
{
m_rManager.dropComplete( success, m_aDropWindow, m_nTimestamp );
}
@@ -76,12 +76,12 @@ DropTargetDragContext::~DropTargetDragContext()
{
}
-void DropTargetDragContext::acceptDrag( sal_Int8 dragOperation ) throw(std::exception)
+void DropTargetDragContext::acceptDrag( sal_Int8 dragOperation )
{
m_rManager.accept( dragOperation, m_aDropWindow, m_nTimestamp );
}
-void DropTargetDragContext::rejectDrag() throw(std::exception)
+void DropTargetDragContext::rejectDrag()
{
m_rManager.reject( m_aDropWindow, m_nTimestamp );
}
@@ -105,21 +105,21 @@ DragSourceContext::~DragSourceContext()
{
}
-sal_Int32 DragSourceContext::getCurrentCursor() throw(std::exception)
+sal_Int32 DragSourceContext::getCurrentCursor()
{
return m_rManager.getCurrentCursor();
}
-void DragSourceContext::setCursor( sal_Int32 cursorId ) throw(std::exception)
+void DragSourceContext::setCursor( sal_Int32 cursorId )
{
m_rManager.setCursor( cursorId, m_aDropWindow, m_nTimestamp );
}
-void DragSourceContext::setImage( sal_Int32 ) throw(std::exception)
+void DragSourceContext::setImage( sal_Int32 )
{
}
-void DragSourceContext::transferablesFlavorsChanged() throw(std::exception)
+void DragSourceContext::transferablesFlavorsChanged()
{
m_rManager.transferablesFlavorsChanged();
}
diff --git a/vcl/unx/generic/dtrans/X11_dndcontext.hxx b/vcl/unx/generic/dtrans/X11_dndcontext.hxx
index d4ff95a500d3..93b493daaf4c 100644
--- a/vcl/unx/generic/dtrans/X11_dndcontext.hxx
+++ b/vcl/unx/generic/dtrans/X11_dndcontext.hxx
@@ -44,9 +44,9 @@ namespace x11 {
virtual ~DropTargetDropContext() override;
// XDropTargetDropContext
- virtual void SAL_CALL acceptDrop( sal_Int8 dragOperation ) throw(std::exception) override;
- virtual void SAL_CALL rejectDrop() throw(std::exception) override;
- virtual void SAL_CALL dropComplete( sal_Bool success ) throw(std::exception) override;
+ virtual void SAL_CALL acceptDrop( sal_Int8 dragOperation ) override;
+ virtual void SAL_CALL rejectDrop() override;
+ virtual void SAL_CALL dropComplete( sal_Bool success ) override;
};
class DropTargetDragContext :
@@ -61,8 +61,8 @@ namespace x11 {
virtual ~DropTargetDragContext() override;
// XDropTargetDragContext
- virtual void SAL_CALL acceptDrag( sal_Int8 dragOperation ) throw(std::exception) override;
- virtual void SAL_CALL rejectDrag() throw(std::exception) override;
+ virtual void SAL_CALL acceptDrag( sal_Int8 dragOperation ) override;
+ virtual void SAL_CALL rejectDrag() override;
};
class DragSourceContext :
@@ -77,10 +77,10 @@ namespace x11 {
virtual ~DragSourceContext() override;
// XDragSourceContext
- virtual sal_Int32 SAL_CALL getCurrentCursor() throw(std::exception) override;
- virtual void SAL_CALL setCursor( sal_Int32 cursorId ) throw(std::exception) override;
- virtual void SAL_CALL setImage( sal_Int32 imageId ) throw(std::exception) override;
- virtual void SAL_CALL transferablesFlavorsChanged() throw(std::exception) override;
+ virtual sal_Int32 SAL_CALL getCurrentCursor() override;
+ virtual void SAL_CALL setCursor( sal_Int32 cursorId ) override;
+ virtual void SAL_CALL setImage( sal_Int32 imageId ) override;
+ virtual void SAL_CALL transferablesFlavorsChanged() override;
};
} // namespace
diff --git a/vcl/unx/generic/dtrans/X11_droptarget.cxx b/vcl/unx/generic/dtrans/X11_droptarget.cxx
index 3915d8e46762..3ed63ec7ef1b 100644
--- a/vcl/unx/generic/dtrans/X11_droptarget.cxx
+++ b/vcl/unx/generic/dtrans/X11_droptarget.cxx
@@ -45,7 +45,7 @@ DropTarget::~DropTarget()
m_xSelectionManager->deregisterDropTarget( m_aTargetWindow );
}
-void DropTarget::initialize( const Sequence< Any >& arguments ) throw( css::uno::Exception, std::exception )
+void DropTarget::initialize( const Sequence< Any >& arguments )
{
if( arguments.getLength() > 1 )
{
@@ -72,38 +72,38 @@ void DropTarget::initialize( const Sequence< Any >& arguments ) throw( css::uno:
}
}
-void DropTarget::addDropTargetListener( const Reference< XDropTargetListener >& xListener ) throw(std::exception)
+void DropTarget::addDropTargetListener( const Reference< XDropTargetListener >& xListener )
{
::osl::Guard< ::osl::Mutex > aGuard( m_aMutex );
m_aListeners.push_back( xListener );
}
-void DropTarget::removeDropTargetListener( const Reference< XDropTargetListener >& xListener ) throw(std::exception)
+void DropTarget::removeDropTargetListener( const Reference< XDropTargetListener >& xListener )
{
::osl::Guard< ::osl::Mutex > aGuard( m_aMutex );
m_aListeners.remove( xListener );
}
-sal_Bool DropTarget::isActive() throw(std::exception)
+sal_Bool DropTarget::isActive()
{
return m_bActive;
}
-void DropTarget::setActive( sal_Bool active ) throw(std::exception)
+void DropTarget::setActive( sal_Bool active )
{
::osl::Guard< ::osl::Mutex > aGuard( m_aMutex );
m_bActive = active;
}
-sal_Int8 DropTarget::getDefaultActions() throw(std::exception)
+sal_Int8 DropTarget::getDefaultActions()
{
return m_nDefaultActions;
}
-void DropTarget::setDefaultActions( sal_Int8 actions ) throw(std::exception)
+void DropTarget::setDefaultActions( sal_Int8 actions )
{
::osl::Guard< ::osl::Mutex > aGuard( m_aMutex );
@@ -159,17 +159,17 @@ void DropTarget::dragOver( const DropTargetDragEvent& dtde ) throw()
}
// XServiceInfo
-OUString DropTarget::getImplementationName() throw(std::exception)
+OUString DropTarget::getImplementationName()
{
return OUString(XDND_DROPTARGET_IMPLEMENTATION_NAME);
}
-sal_Bool DropTarget::supportsService( const OUString& ServiceName ) throw(std::exception)
+sal_Bool DropTarget::supportsService( const OUString& ServiceName )
{
return cppu::supportsService(this, ServiceName);
}
-Sequence< OUString > DropTarget::getSupportedServiceNames() throw(std::exception)
+Sequence< OUString > DropTarget::getSupportedServiceNames()
{
return Xdnd_dropTarget_getSupportedServiceNames();
}
diff --git a/vcl/unx/generic/dtrans/X11_selection.cxx b/vcl/unx/generic/dtrans/X11_selection.cxx
index 2f578f2dd611..af2cd43947ac 100644
--- a/vcl/unx/generic/dtrans/X11_selection.cxx
+++ b/vcl/unx/generic/dtrans/X11_selection.cxx
@@ -315,7 +315,7 @@ Cursor SelectionManager::createCursor( const unsigned char* pPointerData, const
return aCursor;
}
-void SelectionManager::initialize( const Sequence< Any >& arguments ) throw (css::uno::Exception, std::exception)
+void SelectionManager::initialize( const Sequence< Any >& arguments )
{
osl::MutexGuard aGuard(m_aMutex);
@@ -2869,12 +2869,12 @@ void SelectionManager::reject( ::Window aDropWindow, Time )
* XDragSource
*/
-sal_Bool SelectionManager::isDragImageSupported() throw(std::exception)
+sal_Bool SelectionManager::isDragImageSupported()
{
return false;
}
-sal_Int32 SelectionManager::getDefaultCursor( sal_Int8 dragAction ) throw(std::exception)
+sal_Int32 SelectionManager::getDefaultCursor( sal_Int8 dragAction )
{
Cursor aCursor = m_aNoneCursor;
if( dragAction & DNDConstants::ACTION_MOVE )
@@ -3118,7 +3118,7 @@ void SelectionManager::startDrag(
sal_Int32,
const css::uno::Reference< XTransferable >& transferable,
const css::uno::Reference< XDragSourceListener >& listener
- ) throw(std::exception)
+ )
{
#if OSL_DEBUG_LEVEL > 1
fprintf( stderr, "startDrag( sourceActions = %x )\n", (int)sourceActions );
@@ -3767,7 +3767,6 @@ void SelectionManager::shutdown() throw()
}
sal_Bool SelectionManager::handleEvent(const Any& event)
- throw (css::uno::RuntimeException, std::exception)
{
Sequence< sal_Int8 > aSeq;
if( (event >>= aSeq) )
@@ -3803,14 +3802,12 @@ sal_Bool SelectionManager::handleEvent(const Any& event)
}
void SAL_CALL SelectionManager::disposing( const css::lang::EventObject& rEvt )
- throw( css::uno::RuntimeException, std::exception )
{
if (rEvt.Source == m_xDesktop || rEvt.Source == m_xDisplayConnection)
shutdown();
}
void SAL_CALL SelectionManager::queryTermination( const css::lang::EventObject& )
- throw( css::frame::TerminationVetoException, css::uno::RuntimeException, std::exception )
{
}
@@ -3820,7 +3817,6 @@ void SAL_CALL SelectionManager::queryTermination( const css::lang::EventObject&
* has been called before vcl is shutdown
*/
void SAL_CALL SelectionManager::notifyTermination( const css::lang::EventObject& rEvent )
- throw( css::uno::RuntimeException, std::exception )
{
disposing(rEvent);
}
@@ -3987,7 +3983,7 @@ SelectionManagerHolder::~SelectionManagerHolder()
{
}
-void SelectionManagerHolder::initialize( const Sequence< Any >& arguments ) throw( css::uno::Exception, std::exception )
+void SelectionManagerHolder::initialize( const Sequence< Any >& arguments )
{
OUString aDisplayName;
@@ -4011,12 +4007,12 @@ void SelectionManagerHolder::initialize( const Sequence< Any >& arguments ) thro
* XDragSource
*/
-sal_Bool SelectionManagerHolder::isDragImageSupported() throw(std::exception)
+sal_Bool SelectionManagerHolder::isDragImageSupported()
{
return m_xRealDragSource.is() && m_xRealDragSource->isDragImageSupported();
}
-sal_Int32 SelectionManagerHolder::getDefaultCursor( sal_Int8 dragAction ) throw(std::exception)
+sal_Int32 SelectionManagerHolder::getDefaultCursor( sal_Int8 dragAction )
{
return m_xRealDragSource.is() ? m_xRealDragSource->getDefaultCursor( dragAction ) : 0;
}
@@ -4026,7 +4022,7 @@ void SelectionManagerHolder::startDrag(
sal_Int8 sourceActions, sal_Int32 cursor, sal_Int32 image,
const css::uno::Reference< css::datatransfer::XTransferable >& transferable,
const css::uno::Reference< css::datatransfer::dnd::XDragSourceListener >& listener
- ) throw(std::exception)
+ )
{
if( m_xRealDragSource.is() )
m_xRealDragSource->startDrag( trigger, sourceActions, cursor, image, transferable, listener );
@@ -4036,17 +4032,17 @@ void SelectionManagerHolder::startDrag(
* XServiceInfo
*/
-OUString SelectionManagerHolder::getImplementationName() throw(std::exception)
+OUString SelectionManagerHolder::getImplementationName()
{
return OUString(XDND_IMPLEMENTATION_NAME);
}
-sal_Bool SelectionManagerHolder::supportsService( const OUString& ServiceName ) throw(std::exception)
+sal_Bool SelectionManagerHolder::supportsService( const OUString& ServiceName )
{
return cppu::supportsService(this, ServiceName);
}
-Sequence< OUString > SelectionManagerHolder::getSupportedServiceNames() throw(std::exception)
+Sequence< OUString > SelectionManagerHolder::getSupportedServiceNames()
{
return Xdnd_getSupportedServiceNames();
}
diff --git a/vcl/unx/generic/dtrans/X11_selection.hxx b/vcl/unx/generic/dtrans/X11_selection.hxx
index 24de1bc580a6..ef1449e8daf6 100644
--- a/vcl/unx/generic/dtrans/X11_selection.hxx
+++ b/vcl/unx/generic/dtrans/X11_selection.hxx
@@ -90,21 +90,21 @@ namespace x11 {
void drop( const css::datatransfer::dnd::DropTargetDropEvent& dtde ) throw();
// XInitialization
- virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& args ) throw ( css::uno::Exception, std::exception ) override;
+ virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& args ) override;
// XDropTarget
- virtual void SAL_CALL addDropTargetListener( const css::uno::Reference< css::datatransfer::dnd::XDropTargetListener >& ) throw(std::exception) override;
- virtual void SAL_CALL removeDropTargetListener( const css::uno::Reference< css::datatransfer::dnd::XDropTargetListener >& ) throw(std::exception) override;
- virtual sal_Bool SAL_CALL isActive() throw(std::exception) override;
- virtual void SAL_CALL setActive( sal_Bool active ) throw(std::exception) override;
- virtual sal_Int8 SAL_CALL getDefaultActions() throw(std::exception) override;
- virtual void SAL_CALL setDefaultActions( sal_Int8 actions ) throw(std::exception) override;
+ virtual void SAL_CALL addDropTargetListener( const css::uno::Reference< css::datatransfer::dnd::XDropTargetListener >& ) override;
+ virtual void SAL_CALL removeDropTargetListener( const css::uno::Reference< css::datatransfer::dnd::XDropTargetListener >& ) override;
+ virtual sal_Bool SAL_CALL isActive() override;
+ virtual void SAL_CALL setActive( sal_Bool active ) override;
+ virtual sal_Int8 SAL_CALL getDefaultActions() override;
+ virtual void SAL_CALL setDefaultActions( sal_Int8 actions ) override;
// XServiceInfo
- virtual OUString SAL_CALL getImplementationName() throw(std::exception) override;
- virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw(std::exception) override;
+ virtual OUString SAL_CALL getImplementationName() override;
+ virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
virtual css::uno::Sequence< OUString >
- SAL_CALL getSupportedServiceNames() throw(std::exception) override;
+ SAL_CALL getSupportedServiceNames() override;
};
class SelectionManagerHolder :
@@ -122,23 +122,23 @@ namespace x11 {
virtual ~SelectionManagerHolder() override;
// XServiceInfo
- virtual OUString SAL_CALL getImplementationName() throw(std::exception) override;
- virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw(std::exception) override;
+ virtual OUString SAL_CALL getImplementationName() override;
+ virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
virtual css::uno::Sequence< OUString >
- SAL_CALL getSupportedServiceNames() throw(std::exception) override;
+ SAL_CALL getSupportedServiceNames() override;
// XInitialization
- virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& arguments ) throw( css::uno::Exception, std::exception ) override;
+ virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& arguments ) override;
// XDragSource
- virtual sal_Bool SAL_CALL isDragImageSupported() throw(std::exception) override;
- virtual sal_Int32 SAL_CALL getDefaultCursor( sal_Int8 dragAction ) throw(std::exception) override;
+ virtual sal_Bool SAL_CALL isDragImageSupported() override;
+ virtual sal_Int32 SAL_CALL getDefaultCursor( sal_Int8 dragAction ) override;
virtual void SAL_CALL startDrag(
const css::datatransfer::dnd::DragGestureEvent& trigger,
sal_Int8 sourceActions, sal_Int32 cursor, sal_Int32 image,
const css::uno::Reference< css::datatransfer::XTransferable >& transferable,
const css::uno::Reference< css::datatransfer::dnd::XDragSourceListener >& listener
- ) throw(std::exception) override;
+ ) override;
};
@@ -464,21 +464,20 @@ namespace x11 {
void shutdown() throw();
// XInitialization
- virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& arguments ) throw( css::uno::Exception, std::exception ) override;
+ virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& arguments ) override;
// XEventHandler
- virtual sal_Bool SAL_CALL handleEvent(const css::uno::Any& event)
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual sal_Bool SAL_CALL handleEvent(const css::uno::Any& event) override;
// XDragSource
- virtual sal_Bool SAL_CALL isDragImageSupported() throw(std::exception) override;
- virtual sal_Int32 SAL_CALL getDefaultCursor( sal_Int8 dragAction ) throw(std::exception) override;
+ virtual sal_Bool SAL_CALL isDragImageSupported() override;
+ virtual sal_Int32 SAL_CALL getDefaultCursor( sal_Int8 dragAction ) override;
virtual void SAL_CALL startDrag(
const css::datatransfer::dnd::DragGestureEvent& trigger,
sal_Int8 sourceActions, sal_Int32 cursor, sal_Int32 image,
const css::uno::Reference< css::datatransfer::XTransferable >& transferable,
const css::uno::Reference< css::datatransfer::dnd::XDragSourceListener >& listener
- ) throw(std::exception) override;
+ ) override;
// SelectionAdaptor for XdndSelection Drag (we are drag source)
virtual css::uno::Reference< css::datatransfer::XTransferable > getTransferable() throw() override;
@@ -487,13 +486,11 @@ namespace x11 {
virtual css::uno::Reference< css::uno::XInterface > getReference() throw() override;
// XEventListener
- virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) throw( css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) override;
// XTerminateListener
- virtual void SAL_CALL queryTermination( const css::lang::EventObject& aEvent )
- throw( css::frame::TerminationVetoException, css::uno::RuntimeException, std::exception ) override;
- virtual void SAL_CALL notifyTermination( const css::lang::EventObject& aEvent )
- throw( css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL queryTermination( const css::lang::EventObject& aEvent ) override;
+ virtual void SAL_CALL notifyTermination( const css::lang::EventObject& aEvent ) override;
};
css::uno::Sequence< OUString > SAL_CALL Xdnd_getSupportedServiceNames();
diff --git a/vcl/unx/generic/dtrans/X11_transferable.cxx b/vcl/unx/generic/dtrans/X11_transferable.cxx
index 9e6714c2aa45..b042152c244d 100644
--- a/vcl/unx/generic/dtrans/X11_transferable.cxx
+++ b/vcl/unx/generic/dtrans/X11_transferable.cxx
@@ -44,7 +44,6 @@ X11Transferable::~X11Transferable()
}
Any SAL_CALL X11Transferable::getTransferData( const DataFlavor& rFlavor )
- throw(UnsupportedFlavorException, IOException, RuntimeException, std::exception)
{
Any aRet;
Sequence< sal_Int8 > aData;
@@ -71,7 +70,6 @@ Any SAL_CALL X11Transferable::getTransferData( const DataFlavor& rFlavor )
}
Sequence< DataFlavor > SAL_CALL X11Transferable::getTransferDataFlavors()
- throw(RuntimeException, std::exception)
{
Sequence< DataFlavor > aFlavorList;
bool bSuccess = m_rManager.getPasteDataTypes( m_aSelection ? m_aSelection : XA_PRIMARY, aFlavorList );
@@ -82,7 +80,6 @@ Sequence< DataFlavor > SAL_CALL X11Transferable::getTransferDataFlavors()
}
sal_Bool SAL_CALL X11Transferable::isDataFlavorSupported( const DataFlavor& aFlavor )
- throw(RuntimeException, std::exception)
{
if( aFlavor.DataType != cppu::UnoType<Sequence< sal_Int8 >>::get() )
{
diff --git a/vcl/unx/generic/dtrans/X11_transferable.hxx b/vcl/unx/generic/dtrans/X11_transferable.hxx
index 7fa9b5509208..2ce30541a8d3 100644
--- a/vcl/unx/generic/dtrans/X11_transferable.hxx
+++ b/vcl/unx/generic/dtrans/X11_transferable.hxx
@@ -40,17 +40,11 @@ namespace x11 {
* XTransferable
*/
- virtual css::uno::Any SAL_CALL getTransferData( const css::datatransfer::DataFlavor& aFlavor )
- throw(css::datatransfer::UnsupportedFlavorException,
- css::io::IOException,
- css::uno::RuntimeException, std::exception
- ) override;
+ virtual css::uno::Any SAL_CALL getTransferData( const css::datatransfer::DataFlavor& aFlavor ) override;
- virtual css::uno::Sequence< css::datatransfer::DataFlavor > SAL_CALL getTransferDataFlavors( )
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Sequence< css::datatransfer::DataFlavor > SAL_CALL getTransferDataFlavors( ) override;
- virtual sal_Bool SAL_CALL isDataFlavorSupported( const css::datatransfer::DataFlavor& aFlavor )
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual sal_Bool SAL_CALL isDataFlavorSupported( const css::datatransfer::DataFlavor& aFlavor ) override;
};
} // namespace
diff --git a/vcl/unx/gtk/a11y/atkaction.cxx b/vcl/unx/gtk/a11y/atkaction.cxx
index 3dc2fea35c72..faadc4091ba4 100644
--- a/vcl/unx/gtk/a11y/atkaction.cxx
+++ b/vcl/unx/gtk/a11y/atkaction.cxx
@@ -45,7 +45,7 @@ getAsConst( const OString& rString )
/// @throws uno::RuntimeException
static css::uno::Reference<css::accessibility::XAccessibleAction>
- getAction( AtkAction *action ) throw (uno::RuntimeException)
+ getAction( AtkAction *action )
{
AtkObjectWrapper *pWrap = ATK_OBJECT_WRAPPER( action );
diff --git a/vcl/unx/gtk/a11y/atkcomponent.cxx b/vcl/unx/gtk/a11y/atkcomponent.cxx
index 84ab86b0c87a..54e664b5ae39 100644
--- a/vcl/unx/gtk/a11y/atkcomponent.cxx
+++ b/vcl/unx/gtk/a11y/atkcomponent.cxx
@@ -25,7 +25,7 @@ using namespace ::com::sun::star;
/// @throws uno::RuntimeException
static css::uno::Reference<css::accessibility::XAccessibleComponent>
- getComponent( AtkComponent *pComponent ) throw (uno::RuntimeException)
+ getComponent( AtkComponent *pComponent )
{
AtkObjectWrapper *pWrap = ATK_OBJECT_WRAPPER( pComponent );
if (pWrap)
diff --git a/vcl/unx/gtk/a11y/atkeditabletext.cxx b/vcl/unx/gtk/a11y/atkeditabletext.cxx
index d7dda03a5321..070ee28ffa74 100644
--- a/vcl/unx/gtk/a11y/atkeditabletext.cxx
+++ b/vcl/unx/gtk/a11y/atkeditabletext.cxx
@@ -29,7 +29,7 @@ using namespace ::com::sun::star;
/// @throws uno::RuntimeException
static css::uno::Reference<css::accessibility::XAccessibleEditableText>
- getEditableText( AtkEditableText *pEditableText ) throw (uno::RuntimeException)
+ getEditableText( AtkEditableText *pEditableText )
{
AtkObjectWrapper *pWrap = ATK_OBJECT_WRAPPER( pEditableText );
if (pWrap)
diff --git a/vcl/unx/gtk/a11y/atkhypertext.cxx b/vcl/unx/gtk/a11y/atkhypertext.cxx
index 4a10b3c82733..356262feb4cb 100644
--- a/vcl/unx/gtk/a11y/atkhypertext.cxx
+++ b/vcl/unx/gtk/a11y/atkhypertext.cxx
@@ -191,7 +191,7 @@ hyper_link_get_type()
/// @throws uno::RuntimeException
static css::uno::Reference<css::accessibility::XAccessibleHypertext>
- getHypertext( AtkHypertext *pHypertext ) throw (uno::RuntimeException)
+ getHypertext( AtkHypertext *pHypertext )
{
AtkObjectWrapper *pWrap = ATK_OBJECT_WRAPPER( pHypertext );
if (pWrap)
diff --git a/vcl/unx/gtk/a11y/atkimage.cxx b/vcl/unx/gtk/a11y/atkimage.cxx
index 88897210fb2a..404871f1d3a9 100644
--- a/vcl/unx/gtk/a11y/atkimage.cxx
+++ b/vcl/unx/gtk/a11y/atkimage.cxx
@@ -37,7 +37,7 @@ getAsConst( const OUString& rString )
/// @throws uno::RuntimeException
static css::uno::Reference<css::accessibility::XAccessibleImage>
- getImage( AtkImage *pImage ) throw (uno::RuntimeException)
+ getImage( AtkImage *pImage )
{
AtkObjectWrapper *pWrap = ATK_OBJECT_WRAPPER( pImage );
if (pWrap)
diff --git a/vcl/unx/gtk/a11y/atklistener.cxx b/vcl/unx/gtk/a11y/atklistener.cxx
index 2901bcb73ecf..48dc6e83a895 100644
--- a/vcl/unx/gtk/a11y/atklistener.cxx
+++ b/vcl/unx/gtk/a11y/atklistener.cxx
@@ -93,7 +93,7 @@ extern "C" {
}
// XEventListener implementation
-void AtkListener::disposing( const lang::EventObject& ) throw (uno::RuntimeException, std::exception)
+void AtkListener::disposing( const lang::EventObject& )
{
if( mpWrapper )
{
@@ -420,7 +420,7 @@ void printNotifyEvent( const accessibility::AccessibleEventObject& rEvent )
#endif
-void AtkListener::notifyEvent( const accessibility::AccessibleEventObject& aEvent ) throw( uno::RuntimeException, std::exception )
+void AtkListener::notifyEvent( const accessibility::AccessibleEventObject& aEvent )
{
if( !mpWrapper )
return;
diff --git a/vcl/unx/gtk/a11y/atklistener.hxx b/vcl/unx/gtk/a11y/atklistener.hxx
index fccf03181c37..39d5075c8822 100644
--- a/vcl/unx/gtk/a11y/atklistener.hxx
+++ b/vcl/unx/gtk/a11y/atklistener.hxx
@@ -33,12 +33,10 @@ public:
explicit AtkListener(AtkObjectWrapper * pWrapper);
// XEventListener
- virtual void disposing( const css::lang::EventObject& Source )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual void disposing( const css::lang::EventObject& Source ) override;
// XAccessibleEventListener
- virtual void notifyEvent( const css::accessibility::AccessibleEventObject& aEvent )
- throw( css::uno::RuntimeException, std::exception ) override;
+ virtual void notifyEvent( const css::accessibility::AccessibleEventObject& aEvent ) override;
private:
diff --git a/vcl/unx/gtk/a11y/atkselection.cxx b/vcl/unx/gtk/a11y/atkselection.cxx
index 39bf065cbb37..b6d2a711fa66 100644
--- a/vcl/unx/gtk/a11y/atkselection.cxx
+++ b/vcl/unx/gtk/a11y/atkselection.cxx
@@ -25,7 +25,7 @@ using namespace ::com::sun::star;
/// @throws uno::RuntimeException
static css::uno::Reference<css::accessibility::XAccessibleSelection>
- getSelection( AtkSelection *pSelection ) throw (uno::RuntimeException)
+ getSelection( AtkSelection *pSelection )
{
AtkObjectWrapper *pWrap = ATK_OBJECT_WRAPPER( pSelection );
if (pWrap)
diff --git a/vcl/unx/gtk/a11y/atktable.cxx b/vcl/unx/gtk/a11y/atktable.cxx
index 26fdef1659b2..a39110a61b16 100644
--- a/vcl/unx/gtk/a11y/atktable.cxx
+++ b/vcl/unx/gtk/a11y/atktable.cxx
@@ -50,7 +50,7 @@ getAsConst( const OUString& rString )
/// @throws uno::RuntimeException
static css::uno::Reference<css::accessibility::XAccessibleTable>
- getTable( AtkTable *pTable ) throw (uno::RuntimeException)
+ getTable( AtkTable *pTable )
{
AtkObjectWrapper *pWrap = ATK_OBJECT_WRAPPER( pTable );
if (pWrap)
diff --git a/vcl/unx/gtk/a11y/atktext.cxx b/vcl/unx/gtk/a11y/atktext.cxx
index b08edd1fa18f..6dc3ca3692d8 100644
--- a/vcl/unx/gtk/a11y/atktext.cxx
+++ b/vcl/unx/gtk/a11y/atktext.cxx
@@ -135,7 +135,7 @@ adjust_boundaries( css::uno::Reference<css::accessibility::XAccessibleText> cons
/// @throws uno::RuntimeException
static css::uno::Reference<css::accessibility::XAccessibleText>
- getText( AtkText *pText ) throw (uno::RuntimeException)
+ getText( AtkText *pText )
{
AtkObjectWrapper *pWrap = ATK_OBJECT_WRAPPER( pText );
if (pWrap)
@@ -152,7 +152,7 @@ static css::uno::Reference<css::accessibility::XAccessibleText>
/// @throws uno::RuntimeException
static css::uno::Reference<css::accessibility::XAccessibleTextMarkup>
- getTextMarkup( AtkText *pText ) throw (uno::RuntimeException)
+ getTextMarkup( AtkText *pText )
{
AtkObjectWrapper *pWrap = ATK_OBJECT_WRAPPER( pText );
if (pWrap)
@@ -169,7 +169,7 @@ static css::uno::Reference<css::accessibility::XAccessibleTextMarkup>
/// @throws uno::RuntimeException
static css::uno::Reference<css::accessibility::XAccessibleTextAttributes>
- getTextAttributes( AtkText *pText ) throw (uno::RuntimeException)
+ getTextAttributes( AtkText *pText )
{
AtkObjectWrapper *pWrap = ATK_OBJECT_WRAPPER( pText );
if (pWrap)
@@ -186,7 +186,7 @@ static css::uno::Reference<css::accessibility::XAccessibleTextAttributes>
/// @throws uno::RuntimeException
static css::uno::Reference<css::accessibility::XAccessibleMultiLineText>
- getMultiLineText( AtkText *pText ) throw (uno::RuntimeException)
+ getMultiLineText( AtkText *pText )
{
AtkObjectWrapper *pWrap = ATK_OBJECT_WRAPPER( pText );
if (pWrap)
diff --git a/vcl/unx/gtk/a11y/atktextattributes.cxx b/vcl/unx/gtk/a11y/atktextattributes.cxx
index 4fa1afb42266..75971173f978 100644
--- a/vcl/unx/gtk/a11y/atktextattributes.cxx
+++ b/vcl/unx/gtk/a11y/atktextattributes.cxx
@@ -209,7 +209,7 @@ String2Float( uno::Any& rAny, const gchar * value )
/// @throws uno::RuntimeException
static css::uno::Reference<css::accessibility::XAccessibleComponent>
- getComponent( AtkText *pText ) throw (uno::RuntimeException)
+ getComponent( AtkText *pText )
{
AtkObjectWrapper *pWrap = ATK_OBJECT_WRAPPER( pText );
if (pWrap)
diff --git a/vcl/unx/gtk/a11y/atkutil.cxx b/vcl/unx/gtk/a11y/atkutil.cxx
index da165245be0b..c386e8b89899 100644
--- a/vcl/unx/gtk/a11y/atkutil.cxx
+++ b/vcl/unx/gtk/a11y/atkutil.cxx
@@ -143,14 +143,14 @@ public:
/// @throws uno::RuntimeException
void attachRecursive(
const uno::Reference< accessibility::XAccessible >& xAccessible
- ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException);
+ );
/// @trhows lang::IndexOutOfBoundsException
/// @throws uno::RuntimeException
void attachRecursive(
const uno::Reference< accessibility::XAccessible >& xAccessible,
const uno::Reference< accessibility::XAccessibleContext >& xContext
- ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException);
+ );
/// @trhows lang::IndexOutOfBoundsException
/// @throws uno::RuntimeException
@@ -158,20 +158,20 @@ public:
const uno::Reference< accessibility::XAccessible >& xAccessible,
const uno::Reference< accessibility::XAccessibleContext >& xContext,
const uno::Reference< accessibility::XAccessibleStateSet >& xStateSet
- ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException);
+ );
/// @trhows lang::IndexOutOfBoundsException
/// @throws uno::RuntimeException
void detachRecursive(
const uno::Reference< accessibility::XAccessible >& xAccessible
- ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException);
+ );
/// @trhows lang::IndexOutOfBoundsException
/// @throws uno::RuntimeException
void detachRecursive(
const uno::Reference< accessibility::XAccessible >& xAccessible,
const uno::Reference< accessibility::XAccessibleContext >& xContext
- ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException);
+ );
/// @trhows lang::IndexOutOfBoundsException
/// @throws uno::RuntimeException
@@ -179,24 +179,22 @@ public:
const uno::Reference< accessibility::XAccessible >& xAccessible,
const uno::Reference< accessibility::XAccessibleContext >& xContext,
const uno::Reference< accessibility::XAccessibleStateSet >& xStateSet
- ) throw (lang::IndexOutOfBoundsException, uno::RuntimeException);
+ );
/// @trhows lang::IndexOutOfBoundsException
/// @throws uno::RuntimeException
- static uno::Reference< accessibility::XAccessible > getAccessible(const lang::EventObject& aEvent )
- throw (lang::IndexOutOfBoundsException, uno::RuntimeException);
+ static uno::Reference< accessibility::XAccessible > getAccessible(const lang::EventObject& aEvent );
// XEventListener
- virtual void disposing( const lang::EventObject& Source ) throw (uno::RuntimeException, std::exception) override;
+ virtual void disposing( const lang::EventObject& Source ) override;
// XAccessibleEventListener
- virtual void notifyEvent( const accessibility::AccessibleEventObject& aEvent ) throw( uno::RuntimeException, std::exception ) override;
+ virtual void notifyEvent( const accessibility::AccessibleEventObject& aEvent ) override;
};
/*****************************************************************************/
void DocumentFocusListener::disposing( const lang::EventObject& aEvent )
- throw (uno::RuntimeException, std::exception)
{
// Unref the object here, but do not remove as listener since the object
@@ -209,7 +207,6 @@ void DocumentFocusListener::disposing( const lang::EventObject& aEvent )
/*****************************************************************************/
void DocumentFocusListener::notifyEvent( const accessibility::AccessibleEventObject& aEvent )
- throw( uno::RuntimeException, std::exception )
{
try {
switch( aEvent.EventId )
@@ -254,7 +251,6 @@ void DocumentFocusListener::notifyEvent( const accessibility::AccessibleEventObj
/*****************************************************************************/
uno::Reference< accessibility::XAccessible > DocumentFocusListener::getAccessible(const lang::EventObject& aEvent )
- throw (lang::IndexOutOfBoundsException, uno::RuntimeException)
{
uno::Reference< accessibility::XAccessible > xAccessible(aEvent.Source, uno::UNO_QUERY);
@@ -283,7 +279,7 @@ uno::Reference< accessibility::XAccessible > DocumentFocusListener::getAccessibl
void DocumentFocusListener::attachRecursive(
const uno::Reference< accessibility::XAccessible >& xAccessible
-) throw (lang::IndexOutOfBoundsException, uno::RuntimeException)
+)
{
uno::Reference< accessibility::XAccessibleContext > xContext =
xAccessible->getAccessibleContext();
@@ -297,7 +293,7 @@ void DocumentFocusListener::attachRecursive(
void DocumentFocusListener::attachRecursive(
const uno::Reference< accessibility::XAccessible >& xAccessible,
const uno::Reference< accessibility::XAccessibleContext >& xContext
-) throw (lang::IndexOutOfBoundsException, uno::RuntimeException)
+)
{
uno::Reference< accessibility::XAccessibleStateSet > xStateSet =
xContext->getAccessibleStateSet();
@@ -312,7 +308,7 @@ void DocumentFocusListener::attachRecursive(
const uno::Reference< accessibility::XAccessible >& xAccessible,
const uno::Reference< accessibility::XAccessibleContext >& xContext,
const uno::Reference< accessibility::XAccessibleStateSet >& xStateSet
-) throw (lang::IndexOutOfBoundsException, uno::RuntimeException)
+)
{
if( xStateSet->contains(accessibility::AccessibleStateType::FOCUSED ) )
atk_wrapper_focus_tracker_notify_when_idle( xAccessible );
@@ -347,7 +343,7 @@ void DocumentFocusListener::attachRecursive(
void DocumentFocusListener::detachRecursive(
const uno::Reference< accessibility::XAccessible >& xAccessible
-) throw (lang::IndexOutOfBoundsException, uno::RuntimeException)
+)
{
uno::Reference< accessibility::XAccessibleContext > xContext =
xAccessible->getAccessibleContext();
@@ -361,7 +357,7 @@ void DocumentFocusListener::detachRecursive(
void DocumentFocusListener::detachRecursive(
const uno::Reference< accessibility::XAccessible >& xAccessible,
const uno::Reference< accessibility::XAccessibleContext >& xContext
-) throw (lang::IndexOutOfBoundsException, uno::RuntimeException)
+)
{
uno::Reference< accessibility::XAccessibleStateSet > xStateSet =
xContext->getAccessibleStateSet();
@@ -376,7 +372,7 @@ void DocumentFocusListener::detachRecursive(
const uno::Reference< accessibility::XAccessible >&,
const uno::Reference< accessibility::XAccessibleContext >& xContext,
const uno::Reference< accessibility::XAccessibleStateSet >& xStateSet
-) throw (lang::IndexOutOfBoundsException, uno::RuntimeException)
+)
{
uno::Reference< accessibility::XAccessibleEventBroadcaster > xBroadcaster =
uno::Reference< accessibility::XAccessibleEventBroadcaster >(xContext, uno::UNO_QUERY);
diff --git a/vcl/unx/gtk/a11y/atkvalue.cxx b/vcl/unx/gtk/a11y/atkvalue.cxx
index 067333af5916..6c80e37b2969 100644
--- a/vcl/unx/gtk/a11y/atkvalue.cxx
+++ b/vcl/unx/gtk/a11y/atkvalue.cxx
@@ -27,7 +27,7 @@ using namespace ::com::sun::star;
/// @throws uno::RuntimeException
static css::uno::Reference<css::accessibility::XAccessibleValue>
- getValue( AtkValue *pValue ) throw (uno::RuntimeException)
+ getValue( AtkValue *pValue )
{
AtkObjectWrapper *pWrap = ATK_OBJECT_WRAPPER( pValue );
if (pWrap)
diff --git a/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx b/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx
index b31cc783c8d5..541f640484d2 100644
--- a/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx
+++ b/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx
@@ -281,7 +281,6 @@ SalGtkFilePicker::SalGtkFilePicker( const uno::Reference< uno::XComponentContext
// XFilePickerNotifier
void SAL_CALL SalGtkFilePicker::addFilePickerListener( const uno::Reference<XFilePickerListener>& xListener )
- throw( uno::RuntimeException, std::exception )
{
SolarMutexGuard g;
@@ -291,7 +290,6 @@ void SAL_CALL SalGtkFilePicker::addFilePickerListener( const uno::Reference<XFil
}
void SAL_CALL SalGtkFilePicker::removeFilePickerListener( const uno::Reference<XFilePickerListener>& )
- throw( uno::RuntimeException, std::exception )
{
SolarMutexGuard g;
@@ -525,7 +523,6 @@ void SalGtkFilePicker::ensureFilterList( const OUString& _rInitialCurrentFilter
}
void SAL_CALL SalGtkFilePicker::appendFilter( const OUString& aTitle, const OUString& aFilter )
- throw( lang::IllegalArgumentException, uno::RuntimeException, std::exception )
{
SolarMutexGuard g;
@@ -542,7 +539,6 @@ void SAL_CALL SalGtkFilePicker::appendFilter( const OUString& aTitle, const OUSt
}
void SAL_CALL SalGtkFilePicker::setCurrentFilter( const OUString& aTitle )
- throw( lang::IllegalArgumentException, uno::RuntimeException, std::exception )
{
SolarMutexGuard g;
@@ -601,7 +597,7 @@ void SalGtkFilePicker::UpdateFilterfromUI()
}
}
-OUString SAL_CALL SalGtkFilePicker::getCurrentFilter() throw( uno::RuntimeException, std::exception )
+OUString SAL_CALL SalGtkFilePicker::getCurrentFilter()
{
SolarMutexGuard g;
@@ -615,7 +611,6 @@ OUString SAL_CALL SalGtkFilePicker::getCurrentFilter() throw( uno::RuntimeExcept
// XFilterGroupManager functions
void SAL_CALL SalGtkFilePicker::appendFilterGroup( const OUString& /*sGroupTitle*/, const uno::Sequence<beans::StringPair>& aFilters )
- throw( lang::IllegalArgumentException, uno::RuntimeException, std::exception )
{
SolarMutexGuard g;
@@ -644,7 +639,7 @@ void SAL_CALL SalGtkFilePicker::appendFilterGroup( const OUString& /*sGroupTitle
// XFilePicker functions
-void SAL_CALL SalGtkFilePicker::setMultiSelectionMode( sal_Bool bMode ) throw( uno::RuntimeException, std::exception )
+void SAL_CALL SalGtkFilePicker::setMultiSelectionMode( sal_Bool bMode )
{
SolarMutexGuard g;
@@ -654,7 +649,6 @@ void SAL_CALL SalGtkFilePicker::setMultiSelectionMode( sal_Bool bMode ) throw( u
}
void SAL_CALL SalGtkFilePicker::setDefaultName( const OUString& aName )
- throw( uno::RuntimeException, std::exception )
{
SolarMutexGuard g;
@@ -669,21 +663,20 @@ void SAL_CALL SalGtkFilePicker::setDefaultName( const OUString& aName )
}
void SAL_CALL SalGtkFilePicker::setDisplayDirectory( const OUString& rDirectory )
- throw( lang::IllegalArgumentException, uno::RuntimeException, std::exception )
{
SolarMutexGuard g;
implsetDisplayDirectory(rDirectory);
}
-OUString SAL_CALL SalGtkFilePicker::getDisplayDirectory() throw( uno::RuntimeException, std::exception )
+OUString SAL_CALL SalGtkFilePicker::getDisplayDirectory()
{
SolarMutexGuard g;
return implgetDisplayDirectory();
}
-uno::Sequence<OUString> SAL_CALL SalGtkFilePicker::getFiles() throw( uno::RuntimeException, std::exception )
+uno::Sequence<OUString> SAL_CALL SalGtkFilePicker::getFiles()
{
// no member access => no mutex needed
@@ -716,7 +709,7 @@ bool lcl_matchFilter( const rtl::OUString& rFilter, const rtl::OUString& rExt )
}
-uno::Sequence<OUString> SAL_CALL SalGtkFilePicker::getSelectedFiles() throw( uno::RuntimeException, std::exception )
+uno::Sequence<OUString> SAL_CALL SalGtkFilePicker::getSelectedFiles()
{
SolarMutexGuard g;
@@ -863,14 +856,14 @@ uno::Sequence<OUString> SAL_CALL SalGtkFilePicker::getSelectedFiles() throw( uno
// XExecutableDialog functions
-void SAL_CALL SalGtkFilePicker::setTitle( const OUString& rTitle ) throw( uno::RuntimeException, std::exception )
+void SAL_CALL SalGtkFilePicker::setTitle( const OUString& rTitle )
{
SolarMutexGuard g;
implsetTitle(rTitle);
}
-sal_Int16 SAL_CALL SalGtkFilePicker::execute() throw( uno::RuntimeException, std::exception )
+sal_Int16 SAL_CALL SalGtkFilePicker::execute()
{
SolarMutexGuard g;
@@ -1235,7 +1228,6 @@ uno::Any SalGtkFilePicker::HandleGetListValue(GtkComboBox *pWidget, sal_Int16 nC
}
void SAL_CALL SalGtkFilePicker::setValue( sal_Int16 nControlId, sal_Int16 nControlAction, const uno::Any& rValue )
- throw( uno::RuntimeException, std::exception )
{
SolarMutexGuard g;
@@ -1261,7 +1253,6 @@ void SAL_CALL SalGtkFilePicker::setValue( sal_Int16 nControlId, sal_Int16 nContr
}
uno::Any SAL_CALL SalGtkFilePicker::getValue( sal_Int16 nControlId, sal_Int16 nControlAction )
- throw( uno::RuntimeException, std::exception )
{
SolarMutexGuard g;
@@ -1285,7 +1276,6 @@ uno::Any SAL_CALL SalGtkFilePicker::getValue( sal_Int16 nControlId, sal_Int16 nC
}
void SAL_CALL SalGtkFilePicker::enableControl( sal_Int16 nControlId, sal_Bool bEnable )
-throw( uno::RuntimeException, std::exception )
{
SolarMutexGuard g;
@@ -1309,7 +1299,6 @@ throw( uno::RuntimeException, std::exception )
}
void SAL_CALL SalGtkFilePicker::setLabel( sal_Int16 nControlId, const OUString& rLabel )
- throw( uno::RuntimeException, std::exception )
{
SolarMutexGuard g;
@@ -1346,7 +1335,6 @@ void SAL_CALL SalGtkFilePicker::setLabel( sal_Int16 nControlId, const OUString&
}
OUString SAL_CALL SalGtkFilePicker::getLabel( sal_Int16 nControlId )
- throw( uno::RuntimeException, std::exception )
{
SolarMutexGuard g;
@@ -1368,7 +1356,7 @@ OUString SAL_CALL SalGtkFilePicker::getLabel( sal_Int16 nControlId )
// XFilePreview functions
-uno::Sequence<sal_Int16> SAL_CALL SalGtkFilePicker::getSupportedImageFormats() throw( uno::RuntimeException, std::exception )
+uno::Sequence<sal_Int16> SAL_CALL SalGtkFilePicker::getSupportedImageFormats()
{
SolarMutexGuard g;
@@ -1378,7 +1366,7 @@ uno::Sequence<sal_Int16> SAL_CALL SalGtkFilePicker::getSupportedImageFormats() t
return uno::Sequence<sal_Int16>();
}
-sal_Int32 SAL_CALL SalGtkFilePicker::getTargetColorDepth() throw( uno::RuntimeException, std::exception )
+sal_Int32 SAL_CALL SalGtkFilePicker::getTargetColorDepth()
{
SolarMutexGuard g;
@@ -1388,7 +1376,7 @@ sal_Int32 SAL_CALL SalGtkFilePicker::getTargetColorDepth() throw( uno::RuntimeEx
return 0;
}
-sal_Int32 SAL_CALL SalGtkFilePicker::getAvailableWidth() throw( uno::RuntimeException, std::exception )
+sal_Int32 SAL_CALL SalGtkFilePicker::getAvailableWidth()
{
SolarMutexGuard g;
@@ -1397,7 +1385,7 @@ sal_Int32 SAL_CALL SalGtkFilePicker::getAvailableWidth() throw( uno::RuntimeExce
return m_PreviewImageWidth;
}
-sal_Int32 SAL_CALL SalGtkFilePicker::getAvailableHeight() throw( uno::RuntimeException, std::exception )
+sal_Int32 SAL_CALL SalGtkFilePicker::getAvailableHeight()
{
SolarMutexGuard g;
@@ -1407,7 +1395,6 @@ sal_Int32 SAL_CALL SalGtkFilePicker::getAvailableHeight() throw( uno::RuntimeExc
}
void SAL_CALL SalGtkFilePicker::setImage( sal_Int16 /*aImageFormat*/, const uno::Any& /*aImage*/ )
- throw( lang::IllegalArgumentException, uno::RuntimeException, std::exception )
{
SolarMutexGuard g;
@@ -1507,7 +1494,7 @@ void SalGtkFilePicker::update_preview_cb( GtkFileChooser *file_chooser, SalGtkFi
g_free( filename );
}
-sal_Bool SAL_CALL SalGtkFilePicker::setShowState( sal_Bool bShowState ) throw( uno::RuntimeException, std::exception )
+sal_Bool SAL_CALL SalGtkFilePicker::setShowState( sal_Bool bShowState )
{
SolarMutexGuard g;
@@ -1541,7 +1528,7 @@ sal_Bool SAL_CALL SalGtkFilePicker::setShowState( sal_Bool bShowState ) throw( u
return true;
}
-sal_Bool SAL_CALL SalGtkFilePicker::getShowState() throw( uno::RuntimeException, std::exception )
+sal_Bool SAL_CALL SalGtkFilePicker::getShowState()
{
SolarMutexGuard g;
@@ -1553,7 +1540,6 @@ sal_Bool SAL_CALL SalGtkFilePicker::getShowState() throw( uno::RuntimeException,
// XInitialization
void SAL_CALL SalGtkFilePicker::initialize( const uno::Sequence<uno::Any>& aArguments )
- throw( uno::Exception, uno::RuntimeException, std::exception )
{
// parameter checking
uno::Any aAny;
@@ -1721,7 +1707,7 @@ void SalGtkFilePicker::preview_toggled_cb( GObject *cb, SalGtkFilePicker* pobjFP
// XCancellable
-void SAL_CALL SalGtkFilePicker::cancel() throw( uno::RuntimeException, std::exception )
+void SAL_CALL SalGtkFilePicker::cancel()
{
SolarMutexGuard g;
diff --git a/vcl/unx/gtk/fpicker/SalGtkFilePicker.hxx b/vcl/unx/gtk/fpicker/SalGtkFilePicker.hxx
index 948ff38b6094..03ee6f5e7346 100644
--- a/vcl/unx/gtk/fpicker/SalGtkFilePicker.hxx
+++ b/vcl/unx/gtk/fpicker/SalGtkFilePicker.hxx
@@ -59,107 +59,78 @@ class SalGtkFilePicker : public SalGtkPicker, public SalGtkFilePicker_Base
// XFilePickerNotifier
- virtual void SAL_CALL addFilePickerListener( const css::uno::Reference< css::ui::dialogs::XFilePickerListener >& xListener )
- throw( css::uno::RuntimeException, std::exception ) override;
- virtual void SAL_CALL removeFilePickerListener( const css::uno::Reference< css::ui::dialogs::XFilePickerListener >& xListener )
- throw( css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL addFilePickerListener( const css::uno::Reference< css::ui::dialogs::XFilePickerListener >& xListener ) override;
+ virtual void SAL_CALL removeFilePickerListener( const css::uno::Reference< css::ui::dialogs::XFilePickerListener >& xListener ) override;
// XExecutableDialog functions
- virtual void SAL_CALL setTitle( const OUString& aTitle )
- throw( css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL setTitle( const OUString& aTitle ) override;
- virtual sal_Int16 SAL_CALL execute()
- throw( css::uno::RuntimeException, std::exception ) override;
+ virtual sal_Int16 SAL_CALL execute() override;
// XFilePicker functions
- virtual void SAL_CALL setMultiSelectionMode( sal_Bool bMode )
- throw( css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL setMultiSelectionMode( sal_Bool bMode ) override;
- virtual void SAL_CALL setDefaultName( const OUString& aName )
- throw( css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL setDefaultName( const OUString& aName ) override;
- virtual void SAL_CALL setDisplayDirectory( const OUString& aDirectory )
- throw( css::lang::IllegalArgumentException,
- css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL setDisplayDirectory( const OUString& aDirectory ) override;
- virtual OUString SAL_CALL getDisplayDirectory( )
- throw( css::uno::RuntimeException, std::exception ) override;
+ virtual OUString SAL_CALL getDisplayDirectory( ) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getFiles( )
- throw( css::uno::RuntimeException, std::exception ) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getFiles( ) override;
// XFilePicker2 functions
- virtual css::uno::Sequence< OUString > SAL_CALL getSelectedFiles()
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getSelectedFiles() override;
// XFilterManager functions
- virtual void SAL_CALL appendFilter( const OUString& aTitle, const OUString& aFilter )
- throw( css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL appendFilter( const OUString& aTitle, const OUString& aFilter ) override;
- virtual void SAL_CALL setCurrentFilter( const OUString& aTitle )
- throw( css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL setCurrentFilter( const OUString& aTitle ) override;
- virtual OUString SAL_CALL getCurrentFilter( )
- throw( css::uno::RuntimeException, std::exception ) override;
+ virtual OUString SAL_CALL getCurrentFilter( ) override;
// XFilterGroupManager functions
- virtual void SAL_CALL appendFilterGroup( const OUString& sGroupTitle, const css::uno::Sequence< css::beans::StringPair >& aFilters )
- throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL appendFilterGroup( const OUString& sGroupTitle, const css::uno::Sequence< css::beans::StringPair >& aFilters ) override;
// XFilePickerControlAccess functions
- virtual void SAL_CALL setValue( sal_Int16 nControlId, sal_Int16 nControlAction, const css::uno::Any& aValue )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL setValue( sal_Int16 nControlId, sal_Int16 nControlAction, const css::uno::Any& aValue ) override;
- virtual css::uno::Any SAL_CALL getValue( sal_Int16 aControlId, sal_Int16 aControlAction )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Any SAL_CALL getValue( sal_Int16 aControlId, sal_Int16 aControlAction ) override;
- virtual void SAL_CALL enableControl( sal_Int16 nControlId, sal_Bool bEnable )
- throw(css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL enableControl( sal_Int16 nControlId, sal_Bool bEnable ) override;
- virtual void SAL_CALL setLabel( sal_Int16 nControlId, const OUString& aLabel )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL setLabel( sal_Int16 nControlId, const OUString& aLabel ) override;
- virtual OUString SAL_CALL getLabel( sal_Int16 nControlId )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getLabel( sal_Int16 nControlId ) override;
// XFilePreview
- virtual css::uno::Sequence< sal_Int16 > SAL_CALL getSupportedImageFormats( )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Sequence< sal_Int16 > SAL_CALL getSupportedImageFormats( ) override;
- virtual sal_Int32 SAL_CALL getTargetColorDepth( )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual sal_Int32 SAL_CALL getTargetColorDepth( ) override;
- virtual sal_Int32 SAL_CALL getAvailableWidth( )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual sal_Int32 SAL_CALL getAvailableWidth( ) override;
- virtual sal_Int32 SAL_CALL getAvailableHeight( )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual sal_Int32 SAL_CALL getAvailableHeight( ) override;
- virtual void SAL_CALL setImage( sal_Int16 aImageFormat, const css::uno::Any& aImage )
- throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL setImage( sal_Int16 aImageFormat, const css::uno::Any& aImage ) override;
- virtual sal_Bool SAL_CALL setShowState( sal_Bool bShowState )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual sal_Bool SAL_CALL setShowState( sal_Bool bShowState ) override;
- virtual sal_Bool SAL_CALL getShowState( )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual sal_Bool SAL_CALL getShowState( ) override;
// XInitialization
- virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments )
- throw(css::uno::Exception, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) override;
// XCancellable
- virtual void SAL_CALL cancel( )
- throw( css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL cancel( ) override;
// FilePicker Event functions
diff --git a/vcl/unx/gtk/fpicker/SalGtkFolderPicker.cxx b/vcl/unx/gtk/fpicker/SalGtkFolderPicker.cxx
index cedbd5a20f1d..0b7549a0ee55 100644
--- a/vcl/unx/gtk/fpicker/SalGtkFolderPicker.cxx
+++ b/vcl/unx/gtk/fpicker/SalGtkFolderPicker.cxx
@@ -63,7 +63,6 @@ SalGtkFolderPicker::SalGtkFolderPicker( const uno::Reference< uno::XComponentCon
}
void SAL_CALL SalGtkFolderPicker::setDisplayDirectory( const OUString& aDirectory )
- throw( lang::IllegalArgumentException, uno::RuntimeException, std::exception )
{
SolarMutexGuard g;
@@ -83,7 +82,7 @@ void SAL_CALL SalGtkFolderPicker::setDisplayDirectory( const OUString& aDirector
aTxt.getStr() );
}
-OUString SAL_CALL SalGtkFolderPicker::getDisplayDirectory() throw( uno::RuntimeException, std::exception )
+OUString SAL_CALL SalGtkFolderPicker::getDisplayDirectory()
{
SolarMutexGuard g;
@@ -97,7 +96,7 @@ OUString SAL_CALL SalGtkFolderPicker::getDisplayDirectory() throw( uno::RuntimeE
return aCurrentFolderName;
}
-OUString SAL_CALL SalGtkFolderPicker::getDirectory() throw( uno::RuntimeException, std::exception )
+OUString SAL_CALL SalGtkFolderPicker::getDirectory()
{
SolarMutexGuard g;
@@ -112,13 +111,12 @@ OUString SAL_CALL SalGtkFolderPicker::getDirectory() throw( uno::RuntimeExceptio
}
void SAL_CALL SalGtkFolderPicker::setDescription( const OUString& /*rDescription*/ )
- throw( uno::RuntimeException, std::exception )
{
}
// XExecutableDialog functions
-void SAL_CALL SalGtkFolderPicker::setTitle( const OUString& aTitle ) throw( uno::RuntimeException, std::exception )
+void SAL_CALL SalGtkFolderPicker::setTitle( const OUString& aTitle )
{
SolarMutexGuard g;
@@ -129,7 +127,7 @@ void SAL_CALL SalGtkFolderPicker::setTitle( const OUString& aTitle ) throw( uno:
gtk_window_set_title( GTK_WINDOW( m_pDialog ), aWindowTitle.getStr() );
}
-sal_Int16 SAL_CALL SalGtkFolderPicker::execute() throw( uno::RuntimeException, std::exception )
+sal_Int16 SAL_CALL SalGtkFolderPicker::execute()
{
SolarMutexGuard g;
@@ -168,7 +166,7 @@ sal_Int16 SAL_CALL SalGtkFolderPicker::execute() throw( uno::RuntimeException, s
// XCancellable
-void SAL_CALL SalGtkFolderPicker::cancel() throw( uno::RuntimeException, std::exception )
+void SAL_CALL SalGtkFolderPicker::cancel()
{
SolarMutexGuard g;
diff --git a/vcl/unx/gtk/fpicker/SalGtkFolderPicker.hxx b/vcl/unx/gtk/fpicker/SalGtkFolderPicker.hxx
index 9e2955796c8e..e7e27b17c0cc 100644
--- a/vcl/unx/gtk/fpicker/SalGtkFolderPicker.hxx
+++ b/vcl/unx/gtk/fpicker/SalGtkFolderPicker.hxx
@@ -38,30 +38,23 @@ class SalGtkFolderPicker :
// XExecutableDialog functions
- virtual void SAL_CALL setTitle( const OUString& aTitle )
- throw( css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL setTitle( const OUString& aTitle ) override;
- virtual sal_Int16 SAL_CALL execute( )
- throw( css::uno::RuntimeException, std::exception ) override;
+ virtual sal_Int16 SAL_CALL execute( ) override;
// XFolderPicker functions
- virtual void SAL_CALL setDisplayDirectory( const OUString& rDirectory )
- throw( css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL setDisplayDirectory( const OUString& rDirectory ) override;
- virtual OUString SAL_CALL getDisplayDirectory( )
- throw( css::uno::RuntimeException, std::exception ) override;
+ virtual OUString SAL_CALL getDisplayDirectory( ) override;
- virtual OUString SAL_CALL getDirectory( )
- throw( css::uno::RuntimeException, std::exception ) override;
+ virtual OUString SAL_CALL getDirectory( ) override;
- virtual void SAL_CALL setDescription( const OUString& rDescription )
- throw( css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL setDescription( const OUString& rDescription ) override;
// XCancellable
- virtual void SAL_CALL cancel( )
- throw( css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL cancel( ) override;
private:
SalGtkFolderPicker( const SalGtkFolderPicker& ) = delete;
diff --git a/vcl/unx/gtk/fpicker/SalGtkPicker.cxx b/vcl/unx/gtk/fpicker/SalGtkPicker.cxx
index c710bb0ea9d6..060cf23abab1 100644
--- a/vcl/unx/gtk/fpicker/SalGtkPicker.cxx
+++ b/vcl/unx/gtk/fpicker/SalGtkPicker.cxx
@@ -134,7 +134,6 @@ RunDialog::~RunDialog()
}
void SAL_CALL RunDialog::windowOpened(const css::lang::EventObject& e)
- throw (css::uno::RuntimeException, std::exception)
{
SolarMutexGuard g;
@@ -154,12 +153,10 @@ void SAL_CALL RunDialog::windowOpened(const css::lang::EventObject& e)
}
void SAL_CALL RunDialog::queryTermination( const css::lang::EventObject& )
- throw(css::frame::TerminationVetoException, css::uno::RuntimeException, std::exception)
{
}
void SAL_CALL RunDialog::notifyTermination( const css::lang::EventObject& )
- throw(css::uno::RuntimeException, std::exception)
{
SolarMutexGuard g;
@@ -201,7 +198,6 @@ SalGtkPicker::~SalGtkPicker()
}
void SAL_CALL SalGtkPicker::implsetDisplayDirectory( const OUString& aDirectory )
- throw( lang::IllegalArgumentException, uno::RuntimeException )
{
OSL_ASSERT( m_pDialog != nullptr );
@@ -219,7 +215,7 @@ void SAL_CALL SalGtkPicker::implsetDisplayDirectory( const OUString& aDirectory
aTxt.getStr() );
}
-OUString SAL_CALL SalGtkPicker::implgetDisplayDirectory() throw( uno::RuntimeException )
+OUString SAL_CALL SalGtkPicker::implgetDisplayDirectory()
{
OSL_ASSERT( m_pDialog != nullptr );
@@ -231,7 +227,7 @@ OUString SAL_CALL SalGtkPicker::implgetDisplayDirectory() throw( uno::RuntimeExc
return aCurrentFolderName;
}
-void SAL_CALL SalGtkPicker::implsetTitle( const OUString& aTitle ) throw( uno::RuntimeException )
+void SAL_CALL SalGtkPicker::implsetTitle( const OUString& aTitle )
{
OSL_ASSERT( m_pDialog != nullptr );
diff --git a/vcl/unx/gtk/fpicker/SalGtkPicker.hxx b/vcl/unx/gtk/fpicker/SalGtkPicker.hxx
index 74c46af9c995..b5bca9f75da2 100644
--- a/vcl/unx/gtk/fpicker/SalGtkPicker.hxx
+++ b/vcl/unx/gtk/fpicker/SalGtkPicker.hxx
@@ -50,17 +50,14 @@ class SalGtkPicker
GtkWidget *m_pDialog;
protected:
/// @throws css::uno::RuntimeException
- void SAL_CALL implsetTitle( const OUString& aTitle )
- throw( css::uno::RuntimeException );
+ void SAL_CALL implsetTitle( const OUString& aTitle );
/// @throws css::lang::IllegalArgumentException
/// @throws css::uno::RuntimeException
- void SAL_CALL implsetDisplayDirectory( const OUString& rDirectory )
- throw( css::lang::IllegalArgumentException, css::uno::RuntimeException );
+ void SAL_CALL implsetDisplayDirectory( const OUString& rDirectory );
/// @throws css::uno::RuntimeException
- OUString SAL_CALL implgetDisplayDirectory( )
- throw( css::uno::RuntimeException );
+ OUString SAL_CALL implgetDisplayDirectory( );
OUString uritounicode(const gchar *pIn);
OString unicodetouri(const OUString &rURL);
@@ -88,28 +85,18 @@ public:
// XTopWindowListener
using cppu::WeakComponentImplHelperBase::disposing;
- virtual void SAL_CALL disposing( const css::lang::EventObject& )
- throw(css::uno::RuntimeException, std::exception) override {}
- virtual void SAL_CALL windowOpened( const css::lang::EventObject& e )
- throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL windowClosing( const css::lang::EventObject& )
- throw (css::uno::RuntimeException, std::exception) override {}
- virtual void SAL_CALL windowClosed( const css::lang::EventObject& )
- throw (css::uno::RuntimeException, std::exception) override {}
- virtual void SAL_CALL windowMinimized( const css::lang::EventObject& )
- throw (css::uno::RuntimeException, std::exception) override {}
- virtual void SAL_CALL windowNormalized( const css::lang::EventObject& )
- throw (css::uno::RuntimeException, std::exception) override {}
- virtual void SAL_CALL windowActivated( const css::lang::EventObject& )
- throw (css::uno::RuntimeException, std::exception) override {}
- virtual void SAL_CALL windowDeactivated( const css::lang::EventObject& )
- throw (css::uno::RuntimeException, std::exception) override {}
+ virtual void SAL_CALL disposing( const css::lang::EventObject& ) override {}
+ virtual void SAL_CALL windowOpened( const css::lang::EventObject& e ) override;
+ virtual void SAL_CALL windowClosing( const css::lang::EventObject& ) override {}
+ virtual void SAL_CALL windowClosed( const css::lang::EventObject& ) override {}
+ virtual void SAL_CALL windowMinimized( const css::lang::EventObject& ) override {}
+ virtual void SAL_CALL windowNormalized( const css::lang::EventObject& ) override {}
+ virtual void SAL_CALL windowActivated( const css::lang::EventObject& ) override {}
+ virtual void SAL_CALL windowDeactivated( const css::lang::EventObject& ) override {}
// XTerminateListener
- virtual void SAL_CALL queryTermination( const css::lang::EventObject& aEvent )
- throw(css::frame::TerminationVetoException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL notifyTermination( const css::lang::EventObject& aEvent )
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL queryTermination( const css::lang::EventObject& aEvent ) override;
+ virtual void SAL_CALL notifyTermination( const css::lang::EventObject& aEvent ) override;
public:
RunDialog(GtkWidget *pDialog,
css::uno::Reference< css::awt::XExtendedToolkit > &rToolkit
diff --git a/vcl/unx/gtk3/gtk3gtkframe.cxx b/vcl/unx/gtk3/gtk3gtkframe.cxx
index d3a0310245f7..cbd746c213e6 100644
--- a/vcl/unx/gtk3/gtk3gtkframe.cxx
+++ b/vcl/unx/gtk3/gtk3gtkframe.cxx
@@ -3268,17 +3268,17 @@ public:
}
// XDropTargetDropContext
- virtual void SAL_CALL acceptDrop(sal_Int8 dragOperation) throw(std::exception) override
+ virtual void SAL_CALL acceptDrop(sal_Int8 dragOperation) override
{
gdk_drag_status(m_pContext, getPreferredDragAction(dragOperation), m_nTime);
}
- virtual void SAL_CALL rejectDrop() throw(std::exception) override
+ virtual void SAL_CALL rejectDrop() override
{
gdk_drag_status(m_pContext, static_cast<GdkDragAction>(0), m_nTime);
}
- virtual void SAL_CALL dropComplete(sal_Bool bSuccess) throw(std::exception) override
+ virtual void SAL_CALL dropComplete(sal_Bool bSuccess) override
{
gtk_drag_finish(m_pContext, bSuccess, false, m_nTime);
}
@@ -3303,10 +3303,7 @@ public:
{
}
- virtual css::uno::Any SAL_CALL getTransferData(const css::datatransfer::DataFlavor& rFlavor)
- throw(css::datatransfer::UnsupportedFlavorException,
- css::io::IOException,
- css::uno::RuntimeException, std::exception) override
+ virtual css::uno::Any SAL_CALL getTransferData(const css::datatransfer::DataFlavor& rFlavor) override
{
css::datatransfer::DataFlavor aFlavor(rFlavor);
if (aFlavor.MimeType == "text/plain;charset=utf-16")
@@ -3421,12 +3418,12 @@ public:
{
}
- virtual void SAL_CALL acceptDrag(sal_Int8 dragOperation) throw(std::exception) override
+ virtual void SAL_CALL acceptDrag(sal_Int8 dragOperation) override
{
gdk_drag_status(m_pContext, getPreferredDragAction(dragOperation), m_nTime);
}
- virtual void SAL_CALL rejectDrag() throw(std::exception) override
+ virtual void SAL_CALL rejectDrag() override
{
gdk_drag_status(m_pContext, static_cast<GdkDragAction>(0), m_nTime);
}
@@ -4118,7 +4115,7 @@ sal_uIntPtr GtkSalFrame::GetNativeWindowHandle()
void GtkDragSource::startDrag(const datatransfer::dnd::DragGestureEvent& rEvent,
sal_Int8 sourceActions, sal_Int32 /*cursor*/, sal_Int32 /*image*/,
const css::uno::Reference<css::datatransfer::XTransferable>& rTrans,
- const css::uno::Reference<css::datatransfer::dnd::XDragSourceListener>& rListener) throw(std::exception)
+ const css::uno::Reference<css::datatransfer::dnd::XDragSourceListener>& rListener)
{
m_xListener = rListener;
m_xTrans = rTrans;
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx
index 8ebca1c08713..9e5c9c9224dc 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -159,13 +159,11 @@ std::vector<css::datatransfer::DataFlavor> GtkTransferable::getTransferDataFlavo
css::uno::Sequence<css::datatransfer::DataFlavor> SAL_CALL GtkTransferable::getTransferDataFlavors()
- throw(css::uno::RuntimeException, std::exception)
{
return comphelper::containerToSequence(getTransferDataFlavorsAsVector());
}
sal_Bool SAL_CALL GtkTransferable::isDataFlavorSupported(const css::datatransfer::DataFlavor& rFlavor)
- throw(css::uno::RuntimeException, std::exception)
{
const std::vector<css::datatransfer::DataFlavor> aAll =
getTransferDataFlavorsAsVector();
@@ -188,11 +186,7 @@ public:
* XTransferable
*/
- virtual css::uno::Any SAL_CALL getTransferData(const css::datatransfer::DataFlavor& rFlavor)
- throw(css::datatransfer::UnsupportedFlavorException,
- css::io::IOException,
- css::uno::RuntimeException, std::exception
- ) override
+ virtual css::uno::Any SAL_CALL getTransferData(const css::datatransfer::DataFlavor& rFlavor) override
{
GtkClipboard* clipboard = gtk_clipboard_get(m_nSelection);
if (rFlavor.MimeType == "text/plain;charset=utf-16")
@@ -270,71 +264,64 @@ public:
* XServiceInfo
*/
- virtual OUString SAL_CALL getImplementationName() throw( RuntimeException, std::exception ) override;
- virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw( RuntimeException, std::exception ) override;
- virtual Sequence< OUString > SAL_CALL getSupportedServiceNames() throw( RuntimeException, std::exception ) override;
+ virtual OUString SAL_CALL getImplementationName() override;
+ virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
+ virtual Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
/*
* XClipboard
*/
- virtual Reference< css::datatransfer::XTransferable > SAL_CALL getContents()
- throw(RuntimeException, std::exception) override;
+ virtual Reference< css::datatransfer::XTransferable > SAL_CALL getContents() override;
virtual void SAL_CALL setContents(
const Reference< css::datatransfer::XTransferable >& xTrans,
- const Reference< css::datatransfer::clipboard::XClipboardOwner >& xClipboardOwner )
- throw(RuntimeException, std::exception) override;
+ const Reference< css::datatransfer::clipboard::XClipboardOwner >& xClipboardOwner ) override;
- virtual OUString SAL_CALL getName()
- throw(RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getName() override;
/*
* XClipboardEx
*/
- virtual sal_Int8 SAL_CALL getRenderingCapabilities()
- throw(RuntimeException, std::exception) override;
+ virtual sal_Int8 SAL_CALL getRenderingCapabilities() override;
/*
* XFlushableClipboard
*/
- virtual void SAL_CALL flushClipboard()
- throw(RuntimeException, std::exception) override;
+ virtual void SAL_CALL flushClipboard() override;
/*
* XClipboardNotifier
*/
virtual void SAL_CALL addClipboardListener(
- const Reference< css::datatransfer::clipboard::XClipboardListener >& listener )
- throw(RuntimeException, std::exception) override;
+ const Reference< css::datatransfer::clipboard::XClipboardListener >& listener ) override;
virtual void SAL_CALL removeClipboardListener(
- const Reference< css::datatransfer::clipboard::XClipboardListener >& listener )
- throw(RuntimeException, std::exception) override;
+ const Reference< css::datatransfer::clipboard::XClipboardListener >& listener ) override;
void ClipboardGet(GtkClipboard *clipboard, GtkSelectionData *selection_data, guint info);
void ClipboardClear(GtkClipboard *clipboard);
void OwnerPossiblyChanged(GtkClipboard *clipboard, GdkEvent *event);
};
-OUString VclGtkClipboard::getImplementationName() throw( RuntimeException, std::exception )
+OUString VclGtkClipboard::getImplementationName()
{
return OUString("com.sun.star.datatransfer.VclGtkClipboard");
}
-Sequence< OUString > VclGtkClipboard::getSupportedServiceNames() throw( RuntimeException, std::exception )
+Sequence< OUString > VclGtkClipboard::getSupportedServiceNames()
{
Sequence<OUString> aRet { "com.sun.star.datatransfer.clipboard.SystemClipboard" };
return aRet;
}
-sal_Bool VclGtkClipboard::supportsService( const OUString& ServiceName ) throw( RuntimeException, std::exception )
+sal_Bool VclGtkClipboard::supportsService( const OUString& ServiceName )
{
return cppu::supportsService(this, ServiceName);
}
-Reference< css::datatransfer::XTransferable > VclGtkClipboard::getContents() throw( RuntimeException, std::exception )
+Reference< css::datatransfer::XTransferable > VclGtkClipboard::getContents()
{
if (!m_aContents.is())
{
@@ -536,7 +523,6 @@ VclGtkClipboard::VclGtkClipboard(GdkAtom nSelection)
}
void VclGtkClipboard::flushClipboard()
- throw (RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -603,7 +589,6 @@ std::vector<GtkTargetEntry> VclToGtkHelper::FormatsToGtk(const css::uno::Sequenc
void VclGtkClipboard::setContents(
const Reference< css::datatransfer::XTransferable >& xTrans,
const Reference< css::datatransfer::clipboard::XClipboardOwner >& xClipboardOwner )
- throw(RuntimeException, std::exception)
{
osl::ClearableMutexGuard aGuard( m_aMutex );
Reference< datatransfer::clipboard::XClipboardOwner > xOldOwner( m_aOwner );
@@ -655,18 +640,17 @@ void VclGtkClipboard::setContents(
}
}
-OUString VclGtkClipboard::getName() throw( RuntimeException, std::exception )
+OUString VclGtkClipboard::getName()
{
return (m_nSelection == GDK_SELECTION_CLIPBOARD) ? OUString("CLIPBOARD") : OUString("PRIMARY");
}
-sal_Int8 VclGtkClipboard::getRenderingCapabilities() throw( RuntimeException, std::exception )
+sal_Int8 VclGtkClipboard::getRenderingCapabilities()
{
return 0;
}
void VclGtkClipboard::addClipboardListener( const Reference< datatransfer::clipboard::XClipboardListener >& listener )
- throw( RuntimeException, std::exception )
{
osl::ClearableMutexGuard aGuard( m_aMutex );
@@ -674,7 +658,6 @@ void VclGtkClipboard::addClipboardListener( const Reference< datatransfer::clipb
}
void VclGtkClipboard::removeClipboardListener( const Reference< datatransfer::clipboard::XClipboardListener >& listener )
- throw( RuntimeException, std::exception )
{
osl::ClearableMutexGuard aGuard( m_aMutex );
@@ -713,19 +696,16 @@ GtkDropTarget::GtkDropTarget()
}
OUString SAL_CALL GtkDropTarget::getImplementationName()
- throw (css::uno::RuntimeException, std::exception)
{
return OUString("com.sun.star.datatransfer.dnd.VclGtkDropTarget");
}
sal_Bool SAL_CALL GtkDropTarget::supportsService(OUString const & ServiceName)
- throw (css::uno::RuntimeException, std::exception)
{
return cppu::supportsService(this, ServiceName);
}
css::uno::Sequence<OUString> SAL_CALL GtkDropTarget::getSupportedServiceNames()
- throw (css::uno::RuntimeException, std::exception)
{
Sequence<OUString> aRet { "com.sun.star.datatransfer.dnd.GtkDropTarget" };
return aRet;
@@ -743,7 +723,7 @@ void GtkDropTarget::deinitialize()
m_bActive = false;
}
-void GtkDropTarget::initialize(const Sequence<Any>& rArguments) throw( Exception, std::exception )
+void GtkDropTarget::initialize(const Sequence<Any>& rArguments)
{
if (rArguments.getLength() < 2)
{
@@ -765,14 +745,14 @@ void GtkDropTarget::initialize(const Sequence<Any>& rArguments) throw( Exception
m_bActive = true;
}
-void GtkDropTarget::addDropTargetListener( const Reference< css::datatransfer::dnd::XDropTargetListener >& xListener) throw(std::exception)
+void GtkDropTarget::addDropTargetListener( const Reference< css::datatransfer::dnd::XDropTargetListener >& xListener)
{
::osl::Guard< ::osl::Mutex > aGuard( m_aMutex );
m_aListeners.push_back( xListener );
}
-void GtkDropTarget::removeDropTargetListener( const Reference< css::datatransfer::dnd::XDropTargetListener >& xListener) throw(std::exception)
+void GtkDropTarget::removeDropTargetListener( const Reference< css::datatransfer::dnd::XDropTargetListener >& xListener)
{
::osl::Guard< ::osl::Mutex > aGuard( m_aMutex );
@@ -827,22 +807,22 @@ void GtkDropTarget::fire_dragExit(const css::datatransfer::dnd::DropTargetEvent&
}
}
-sal_Bool GtkDropTarget::isActive() throw(std::exception)
+sal_Bool GtkDropTarget::isActive()
{
return m_bActive;
}
-void GtkDropTarget::setActive(sal_Bool bActive) throw(std::exception)
+void GtkDropTarget::setActive(sal_Bool bActive)
{
m_bActive = bActive;
}
-sal_Int8 GtkDropTarget::getDefaultActions() throw(std::exception)
+sal_Int8 GtkDropTarget::getDefaultActions()
{
return m_nDefaultActions;
}
-void GtkDropTarget::setDefaultActions(sal_Int8 nDefaultActions) throw(std::exception)
+void GtkDropTarget::setDefaultActions(sal_Int8 nDefaultActions)
{
m_nDefaultActions = nDefaultActions;
}
@@ -869,17 +849,17 @@ void GtkDragSource::deinitialize()
m_pFrame = nullptr;
}
-sal_Bool GtkDragSource::isDragImageSupported() throw(std::exception)
+sal_Bool GtkDragSource::isDragImageSupported()
{
return true;
}
-sal_Int32 GtkDragSource::getDefaultCursor( sal_Int8 ) throw(std::exception)
+sal_Int32 GtkDragSource::getDefaultCursor( sal_Int8 )
{
return 0;
}
-void GtkDragSource::initialize(const css::uno::Sequence<css::uno::Any >& rArguments) throw(Exception, std::exception)
+void GtkDragSource::initialize(const css::uno::Sequence<css::uno::Any >& rArguments)
{
if (rArguments.getLength() < 2)
{
@@ -901,19 +881,16 @@ void GtkDragSource::initialize(const css::uno::Sequence<css::uno::Any >& rArgume
}
OUString SAL_CALL GtkDragSource::getImplementationName()
- throw (css::uno::RuntimeException, std::exception)
{
return OUString("com.sun.star.datatransfer.dnd.VclGtkDragSource");
}
sal_Bool SAL_CALL GtkDragSource::supportsService(OUString const & ServiceName)
- throw (css::uno::RuntimeException, std::exception)
{
return cppu::supportsService(this, ServiceName);
}
css::uno::Sequence<OUString> SAL_CALL GtkDragSource::getSupportedServiceNames()
- throw (css::uno::RuntimeException, std::exception)
{
Sequence<OUString> aRet { "com.sun.star.datatransfer.dnd.GtkDragSource" };
return aRet;
diff --git a/vcl/unx/kde4/KDE4FilePicker.cxx b/vcl/unx/kde4/KDE4FilePicker.cxx
index 567648a90833..4576076dcaf8 100644
--- a/vcl/unx/kde4/KDE4FilePicker.cxx
+++ b/vcl/unx/kde4/KDE4FilePicker.cxx
@@ -208,21 +208,18 @@ void KDE4FilePicker::cleanupProxy()
}
void SAL_CALL KDE4FilePicker::addFilePickerListener( const uno::Reference<XFilePickerListener>& xListener )
- throw( uno::RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
m_xListener = xListener;
}
void SAL_CALL KDE4FilePicker::removeFilePickerListener( const uno::Reference<XFilePickerListener>& )
- throw( uno::RuntimeException, std::exception )
{
SolarMutexGuard aGuard;
m_xListener.clear();
}
void SAL_CALL KDE4FilePicker::setTitle( const OUString &title )
- throw( uno::RuntimeException, std::exception )
{
if( qApp->thread() != QThread::currentThread() ) {
SalYieldMutexReleaser aReleaser;
@@ -233,7 +230,6 @@ void SAL_CALL KDE4FilePicker::setTitle( const OUString &title )
}
sal_Int16 SAL_CALL KDE4FilePicker::execute()
- throw( uno::RuntimeException, std::exception )
{
if( qApp->thread() != QThread::currentThread() ) {
SalYieldMutexReleaser aReleaser;
@@ -270,7 +266,6 @@ sal_Int16 SAL_CALL KDE4FilePicker::execute()
}
void SAL_CALL KDE4FilePicker::setMultiSelectionMode( sal_Bool multiSelect )
- throw( uno::RuntimeException, std::exception )
{
if( qApp->thread() != QThread::currentThread() ) {
SalYieldMutexReleaser rel;
@@ -294,7 +289,6 @@ void SAL_CALL KDE4FilePicker::setMultiSelectionMode( sal_Bool multiSelect )
}
void SAL_CALL KDE4FilePicker::setDefaultName( const OUString &name )
- throw( uno::RuntimeException, std::exception )
{
if( qApp->thread() != QThread::currentThread() ) {
SalYieldMutexReleaser rel;
@@ -306,7 +300,6 @@ void SAL_CALL KDE4FilePicker::setDefaultName( const OUString &name )
}
void SAL_CALL KDE4FilePicker::setDisplayDirectory( const OUString &dir )
- throw( uno::RuntimeException, std::exception )
{
if( qApp->thread() != QThread::currentThread() ) {
SalYieldMutexReleaser rel;
@@ -318,7 +311,6 @@ void SAL_CALL KDE4FilePicker::setDisplayDirectory( const OUString &dir )
}
OUString SAL_CALL KDE4FilePicker::getDisplayDirectory()
- throw( uno::RuntimeException, std::exception )
{
if( qApp->thread() != QThread::currentThread() ) {
SalYieldMutexReleaser rel;
@@ -330,7 +322,6 @@ OUString SAL_CALL KDE4FilePicker::getDisplayDirectory()
}
uno::Sequence< OUString > SAL_CALL KDE4FilePicker::getFiles()
- throw( uno::RuntimeException, std::exception )
{
if( qApp->thread() != QThread::currentThread() ) {
SalYieldMutexReleaser rel;
@@ -343,7 +334,6 @@ uno::Sequence< OUString > SAL_CALL KDE4FilePicker::getFiles()
}
uno::Sequence< OUString > SAL_CALL KDE4FilePicker::getSelectedFiles()
- throw( uno::RuntimeException, std::exception )
{
if( qApp->thread() != QThread::currentThread() ) {
SalYieldMutexReleaser rel;
@@ -358,7 +348,6 @@ uno::Sequence< OUString > SAL_CALL KDE4FilePicker::getSelectedFiles()
}
void SAL_CALL KDE4FilePicker::appendFilter( const OUString &title, const OUString &filter )
- throw( lang::IllegalArgumentException, uno::RuntimeException, std::exception )
{
if( qApp->thread() != QThread::currentThread() ) {
SalYieldMutexReleaser rel;
@@ -385,7 +374,6 @@ void SAL_CALL KDE4FilePicker::appendFilter( const OUString &title, const OUStrin
}
void SAL_CALL KDE4FilePicker::setCurrentFilter( const OUString &title )
- throw( lang::IllegalArgumentException, uno::RuntimeException, std::exception )
{
if( qApp->thread() != QThread::currentThread() ) {
SalYieldMutexReleaser rel;
@@ -396,7 +384,6 @@ void SAL_CALL KDE4FilePicker::setCurrentFilter( const OUString &title )
}
OUString SAL_CALL KDE4FilePicker::getCurrentFilter()
- throw( uno::RuntimeException, std::exception )
{
if( qApp->thread() != QThread::currentThread() ) {
SalYieldMutexReleaser rel;
@@ -417,7 +404,6 @@ OUString SAL_CALL KDE4FilePicker::getCurrentFilter()
}
void SAL_CALL KDE4FilePicker::appendFilterGroup( const OUString& rGroupTitle, const uno::Sequence<beans::StringPair>& filters)
- throw( lang::IllegalArgumentException, uno::RuntimeException, std::exception )
{
if( qApp->thread() != QThread::currentThread() ) {
SalYieldMutexReleaser rel;
@@ -433,7 +419,6 @@ void SAL_CALL KDE4FilePicker::appendFilterGroup( const OUString& rGroupTitle, co
}
void SAL_CALL KDE4FilePicker::setValue( sal_Int16 controlId, sal_Int16 nControlAction, const uno::Any &value )
- throw( uno::RuntimeException, std::exception )
{
if( qApp->thread() != QThread::currentThread() ) {
SalYieldMutexReleaser rel;
@@ -450,7 +435,6 @@ void SAL_CALL KDE4FilePicker::setValue( sal_Int16 controlId, sal_Int16 nControlA
}
uno::Any SAL_CALL KDE4FilePicker::getValue( sal_Int16 controlId, sal_Int16 nControlAction )
- throw( uno::RuntimeException, std::exception )
{
if (CHECKBOX_AUTOEXTENSION == controlId)
// We ignore this one and rely on KFileDialog to provide the function.
@@ -478,7 +462,6 @@ uno::Any SAL_CALL KDE4FilePicker::getValue( sal_Int16 controlId, sal_Int16 nCont
}
void SAL_CALL KDE4FilePicker::enableControl( sal_Int16 controlId, sal_Bool enable )
- throw( uno::RuntimeException, std::exception )
{
if( qApp->thread() != QThread::currentThread() ) {
SalYieldMutexReleaser rel;
@@ -492,7 +475,6 @@ void SAL_CALL KDE4FilePicker::enableControl( sal_Int16 controlId, sal_Bool enabl
}
void SAL_CALL KDE4FilePicker::setLabel( sal_Int16 controlId, const OUString &label )
- throw( uno::RuntimeException, std::exception )
{
if( qApp->thread() != QThread::currentThread() ) {
SalYieldMutexReleaser rel;
@@ -509,7 +491,6 @@ void SAL_CALL KDE4FilePicker::setLabel( sal_Int16 controlId, const OUString &lab
}
OUString SAL_CALL KDE4FilePicker::getLabel(sal_Int16 controlId)
- throw ( uno::RuntimeException, std::exception )
{
if( qApp->thread() != QThread::currentThread() ) {
SalYieldMutexReleaser rel;
@@ -631,7 +612,6 @@ void KDE4FilePicker::addCustomControl(sal_Int16 controlId)
}
void SAL_CALL KDE4FilePicker::initialize( const uno::Sequence<uno::Any> &args )
- throw( uno::Exception, uno::RuntimeException, std::exception )
{
if( qApp->thread() != QThread::currentThread() ) {
SalYieldMutexReleaser rel;
@@ -762,13 +742,11 @@ void SAL_CALL KDE4FilePicker::initialize( const uno::Sequence<uno::Any> &args )
}
void SAL_CALL KDE4FilePicker::cancel()
- throw ( uno::RuntimeException, std::exception )
{
}
void SAL_CALL KDE4FilePicker::disposing( const lang::EventObject &rEvent )
- throw( uno::RuntimeException )
{
uno::Reference<XFilePickerListener> xFilePickerListener( rEvent.Source, uno::UNO_QUERY );
@@ -779,19 +757,16 @@ void SAL_CALL KDE4FilePicker::disposing( const lang::EventObject &rEvent )
}
OUString SAL_CALL KDE4FilePicker::getImplementationName()
- throw( uno::RuntimeException, std::exception )
{
return OUString( FILE_PICKER_IMPL_NAME );
}
sal_Bool SAL_CALL KDE4FilePicker::supportsService( const OUString& ServiceName )
- throw( uno::RuntimeException, std::exception )
{
return cppu::supportsService(this, ServiceName);
}
uno::Sequence< OUString > SAL_CALL KDE4FilePicker::getSupportedServiceNames()
- throw( uno::RuntimeException, std::exception )
{
return FilePicker_getSupportedServiceNames();
}
diff --git a/vcl/unx/kde4/KDE4FilePicker.hxx b/vcl/unx/kde4/KDE4FilePicker.hxx
index 9720e766a404..96d94a9868e2 100644
--- a/vcl/unx/kde4/KDE4FilePicker.hxx
+++ b/vcl/unx/kde4/KDE4FilePicker.hxx
@@ -83,34 +83,34 @@ public:
virtual ~KDE4FilePicker() override;
// XFilePickerNotifier
- virtual void SAL_CALL addFilePickerListener( const css::uno::Reference< css::ui::dialogs::XFilePickerListener >& xListener ) throw( css::uno::RuntimeException, std::exception ) override;
- virtual void SAL_CALL removeFilePickerListener( const css::uno::Reference< css::ui::dialogs::XFilePickerListener >& xListener ) throw( css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL addFilePickerListener( const css::uno::Reference< css::ui::dialogs::XFilePickerListener >& xListener ) override;
+ virtual void SAL_CALL removeFilePickerListener( const css::uno::Reference< css::ui::dialogs::XFilePickerListener >& xListener ) override;
// XExecutableDialog functions
- virtual void SAL_CALL setTitle( const OUString &rTitle ) throw( css::uno::RuntimeException, std::exception ) override;
- virtual sal_Int16 SAL_CALL execute() throw( css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL setTitle( const OUString &rTitle ) override;
+ virtual sal_Int16 SAL_CALL execute() override;
// XFilePicker functions
- virtual void SAL_CALL setMultiSelectionMode( sal_Bool bMode ) throw( css::uno::RuntimeException, std::exception ) override;
- virtual void SAL_CALL setDefaultName( const OUString &rName ) throw( css::uno::RuntimeException, std::exception ) override;
- virtual void SAL_CALL setDisplayDirectory( const OUString &rDirectory ) throw( css::uno::RuntimeException, std::exception ) override;
- virtual OUString SAL_CALL getDisplayDirectory() throw( css::uno::RuntimeException, std::exception ) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getFiles() throw( css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL setMultiSelectionMode( sal_Bool bMode ) override;
+ virtual void SAL_CALL setDefaultName( const OUString &rName ) override;
+ virtual void SAL_CALL setDisplayDirectory( const OUString &rDirectory ) override;
+ virtual OUString SAL_CALL getDisplayDirectory() override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getFiles() override;
// XFilterManager functions
- virtual void SAL_CALL appendFilter( const OUString &rTitle, const OUString &rFilter ) throw( css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception ) override;
- virtual void SAL_CALL setCurrentFilter( const OUString &rTitle ) throw( css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception ) override;
- virtual OUString SAL_CALL getCurrentFilter() throw( css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL appendFilter( const OUString &rTitle, const OUString &rFilter ) override;
+ virtual void SAL_CALL setCurrentFilter( const OUString &rTitle ) override;
+ virtual OUString SAL_CALL getCurrentFilter() override;
// XFilterGroupManager functions
- virtual void SAL_CALL appendFilterGroup( const OUString &rGroupTitle, const css::uno::Sequence< css::beans::StringPair > &rFilters ) throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL appendFilterGroup( const OUString &rGroupTitle, const css::uno::Sequence< css::beans::StringPair > &rFilters ) override;
// XFilePickerControlAccess functions
- virtual void SAL_CALL setValue( sal_Int16 nControlId, sal_Int16 nControlAction, const css::uno::Any &rValue ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Any SAL_CALL getValue( sal_Int16 nControlId, sal_Int16 nControlAction ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL enableControl( sal_Int16 nControlId, sal_Bool bEnable ) throw( css::uno::RuntimeException, std::exception ) override;
- virtual void SAL_CALL setLabel( sal_Int16 nControlId, const OUString &rLabel ) throw (css::uno::RuntimeException, std::exception) override;
- virtual OUString SAL_CALL getLabel( sal_Int16 nControlId ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL setValue( sal_Int16 nControlId, sal_Int16 nControlAction, const css::uno::Any &rValue ) override;
+ virtual css::uno::Any SAL_CALL getValue( sal_Int16 nControlId, sal_Int16 nControlAction ) override;
+ virtual void SAL_CALL enableControl( sal_Int16 nControlId, sal_Bool bEnable ) override;
+ virtual void SAL_CALL setLabel( sal_Int16 nControlId, const OUString &rLabel ) override;
+ virtual OUString SAL_CALL getLabel( sal_Int16 nControlId ) override;
/* TODO XFilePreview
@@ -124,79 +124,78 @@ public:
*/
// XFilePicker2 functions
- virtual css::uno::Sequence< OUString > SAL_CALL getSelectedFiles()
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getSelectedFiles() override;
// XInitialization
- virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any > &rArguments ) throw( css::uno::Exception, css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any > &rArguments ) override;
// XCancellable
- virtual void SAL_CALL cancel( ) throw( css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL cancel( ) override;
// XEventListener
/// @throws css::uno::RuntimeException
- virtual void SAL_CALL disposing( const css::lang::EventObject &rEvent ) throw( css::uno::RuntimeException );
+ virtual void SAL_CALL disposing( const css::lang::EventObject &rEvent );
using cppu::WeakComponentImplHelperBase::disposing;
// XServiceInfo
- virtual OUString SAL_CALL getImplementationName() throw( css::uno::RuntimeException, std::exception ) override;
- virtual sal_Bool SAL_CALL supportsService( const OUString &rServiceName ) throw( css::uno::RuntimeException, std::exception ) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw( css::uno::RuntimeException, std::exception ) override;
+ virtual OUString SAL_CALL getImplementationName() override;
+ virtual sal_Bool SAL_CALL supportsService( const OUString &rServiceName ) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
private Q_SLOTS:
// XExecutableDialog functions
/// @throws css::uno::RuntimeException
- void setTitleSlot( const OUString &rTitle ) throw( css::uno::RuntimeException ) { return setTitle( rTitle ); }
+ void setTitleSlot( const OUString &rTitle ) { return setTitle( rTitle ); }
/// @throws css::uno::RuntimeException
- sal_Int16 executeSlot() throw( css::uno::RuntimeException ) { return execute(); }
+ sal_Int16 executeSlot() { return execute(); }
// XFilePicker functions
/// @throws css::uno::RuntimeException
- void setMultiSelectionModeSlot( bool bMode ) throw( css::uno::RuntimeException ) { return setMultiSelectionMode( bMode ); }
+ void setMultiSelectionModeSlot( bool bMode ) { return setMultiSelectionMode( bMode ); }
/// @throws css::uno::RuntimeException
- void setDefaultNameSlot( const OUString &rName ) throw( css::uno::RuntimeException ) { return setDefaultName( rName ); }
+ void setDefaultNameSlot( const OUString &rName ) { return setDefaultName( rName ); }
/// @throws css::uno::RuntimeException
- void setDisplayDirectorySlot( const OUString &rDirectory ) throw( css::uno::RuntimeException ) { return setDisplayDirectory( rDirectory ); }
+ void setDisplayDirectorySlot( const OUString &rDirectory ) { return setDisplayDirectory( rDirectory ); }
/// @throws css::uno::RuntimeException
- OUString getDisplayDirectorySlot() throw( css::uno::RuntimeException ) { return getDisplayDirectory(); }
+ OUString getDisplayDirectorySlot() { return getDisplayDirectory(); }
/// @throws css::uno::RuntimeException
- css::uno::Sequence< OUString > getFilesSlot() throw( css::uno::RuntimeException ) { return getFiles(); }
+ css::uno::Sequence< OUString > getFilesSlot() { return getFiles(); }
// XFilterManager functions
/// @throws css::lang::IllegalArgumentException
/// @throws css::uno::RuntimeException
- void appendFilterSlot( const OUString &rTitle, const OUString &rFilter ) throw( css::lang::IllegalArgumentException, css::uno::RuntimeException ) { return appendFilter( rTitle, rFilter ); }
+ void appendFilterSlot( const OUString &rTitle, const OUString &rFilter ) { return appendFilter( rTitle, rFilter ); }
/// @throws css::lang::IllegalArgumentException
/// @throws css::uno::RuntimeException
- void setCurrentFilterSlot( const OUString &rTitle ) throw( css::lang::IllegalArgumentException, css::uno::RuntimeException ) { return setCurrentFilter( rTitle ); }
+ void setCurrentFilterSlot( const OUString &rTitle ) { return setCurrentFilter( rTitle ); }
/// @throws css::uno::RuntimeException
- OUString getCurrentFilterSlot() throw( css::uno::RuntimeException ) { return getCurrentFilter(); }
+ OUString getCurrentFilterSlot() { return getCurrentFilter(); }
// XFilterGroupManager functions
/// @throws css::lang::IllegalArgumentException
/// @throws css::uno::RuntimeException
- void appendFilterGroupSlot( const OUString &rGroupTitle, const css::uno::Sequence< css::beans::StringPair > &rFilters ) throw (css::lang::IllegalArgumentException, css::uno::RuntimeException) { return appendFilterGroup( rGroupTitle, rFilters ); }
+ void appendFilterGroupSlot( const OUString &rGroupTitle, const css::uno::Sequence< css::beans::StringPair > &rFilters ) { return appendFilterGroup( rGroupTitle, rFilters ); }
// XFilePickerControlAccess functions
/// @throws css::uno::RuntimeException
- void setValueSlot( sal_Int16 nControlId, sal_Int16 nControlAction, const css::uno::Any &rValue ) throw (css::uno::RuntimeException) { return setValue( nControlId, nControlAction, rValue ); }
+ void setValueSlot( sal_Int16 nControlId, sal_Int16 nControlAction, const css::uno::Any &rValue ) { return setValue( nControlId, nControlAction, rValue ); }
/// @throws css::uno::RuntimeException
- css::uno::Any getValueSlot( sal_Int16 nControlId, sal_Int16 nControlAction ) throw (css::uno::RuntimeException) { return getValue( nControlId, nControlAction ); }
+ css::uno::Any getValueSlot( sal_Int16 nControlId, sal_Int16 nControlAction ) { return getValue( nControlId, nControlAction ); }
/// @throws css::uno::RuntimeException
- void enableControlSlot( sal_Int16 nControlId, bool bEnable ) throw( css::uno::RuntimeException ) { return enableControl( nControlId, bEnable ); }
+ void enableControlSlot( sal_Int16 nControlId, bool bEnable ) { return enableControl( nControlId, bEnable ); }
/// @throws css::uno::RuntimeException
- void setLabelSlot( sal_Int16 nControlId, const OUString &rLabel ) throw (css::uno::RuntimeException) { return setLabel( nControlId, rLabel ); }
+ void setLabelSlot( sal_Int16 nControlId, const OUString &rLabel ) { return setLabel( nControlId, rLabel ); }
/// @throws css::uno::RuntimeException
- OUString getLabelSlot( sal_Int16 nControlId ) throw (css::uno::RuntimeException) { return getLabel( nControlId ); }
+ OUString getLabelSlot( sal_Int16 nControlId ) { return getLabel( nControlId ); }
// XFilePicker2 functions
/// @throws css::uno::RuntimeException
- css::uno::Sequence< OUString > getSelectedFilesSlot() throw (css::uno::RuntimeException) { return getSelectedFiles(); }
+ css::uno::Sequence< OUString > getSelectedFilesSlot() { return getSelectedFiles(); }
// XInitialization
/// @throws css::uno::Exception
/// @throws css::uno::RuntimeException
- void initializeSlot( const css::uno::Sequence< css::uno::Any > &rArguments ) throw( css::uno::Exception, css::uno::RuntimeException ) { return initialize( rArguments ); }
+ void initializeSlot( const css::uno::Sequence< css::uno::Any > &rArguments ) { return initialize( rArguments ); }
Q_SIGNALS:
// XExecutableDialog functions