cid#707029 Uncaught exception

Change-Id: I139ae90a8bee40914d4c4f67084952dd0017ebd1
This commit is contained in:
Noel Grandin
2014-05-27 10:14:54 +02:00
parent bce8ded6ca
commit 5dbafd168d
2 changed files with 2 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ lcl_getStyleProps( const OUString& sStyleName, const uno::Reference< frame::XMod
}
void ScVbaStyle::initialise() throw ( uno::RuntimeException )
void ScVbaStyle::initialise() throw ( uno::RuntimeException, script::BasicErrorException )
{
if (!mxModel.is() )
DebugHelper::exception(SbERR_METHOD_FAILED, OUString( "XModel Interface could not be retrieved") );

View File

@@ -35,7 +35,7 @@ protected:
css::uno::Reference< css::style::XStyle > mxStyle;
css::uno::Reference< css::frame::XModel > mxModel;
css::uno::Reference< css::container::XNameContainer > mxStyleFamilyNameContainer;
void initialise() throw ( css::uno::RuntimeException );
void initialise() throw ( css::uno::RuntimeException, css::script::BasicErrorException );
public:
ScVbaStyle( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext > & xContext, const OUString& sStyleName, const css::uno::Reference< css::frame::XModel >& _xModel ) throw ( css::script::BasicErrorException, css::uno::RuntimeException );
ScVbaStyle( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext > & xContext, const css::uno::Reference< css::beans::XPropertySet >& _xPropertySet, const css::uno::Reference< css::frame::XModel >& _xModel ) throw ( css::script::BasicErrorException, css::uno::RuntimeException );