cid#1244949 Uncaught exception

Change-Id: Ic33d60a435ee875e8e342420046aae436739c123
This commit is contained in:
Noel Grandin
2014-10-10 09:45:44 +02:00
parent d7ea649b56
commit 71540e1e47
2 changed files with 2 additions and 2 deletions

View File

@@ -50,7 +50,7 @@ public:
virtual css::uno::Any createCollectionObject( const css::uno::Any& aSource ) SAL_OVERRIDE = 0;
protected:
css::uno::Any createDocument() throw (css::uno::RuntimeException);
css::uno::Any createDocument() throw (css::uno::RuntimeException, std::exception);
void closeDocuments() throw (css::uno::RuntimeException);
css::uno::Any openDocument( const OUString& Filename, const css::uno::Any& ReadOnly, const css::uno::Sequence< css::beans::PropertyValue >& rProps ) throw (css::uno::RuntimeException);
};

View File

@@ -234,7 +234,7 @@ void lclSetupComponent( const uno::Reference< lang::XComponent >& rxComponent, b
} // namespace
uno::Any VbaDocumentsBase::createDocument() throw (uno::RuntimeException)
uno::Any VbaDocumentsBase::createDocument() throw (uno::RuntimeException, std::exception)
{
// #163808# determine state of Application.ScreenUpdating and Application.Interactive symbols (before new document is opened)
uno::Reference< XApplicationBase > xApplication( Application(), uno::UNO_QUERY );