Kaydet (Commit) e14a251c authored tarafından Noel Power's avatar Noel Power

squash NoSuchElementExceptions when modifying keybindings

Change-Id: I37882845660929e0001a834b6685a4087dfb465f
üst 3ffd8618
......@@ -1295,6 +1295,21 @@ ScVbaApplication::MenuBars( const uno::Any& aIndex ) throw (uno::RuntimeExceptio
return uno::Any( xMenuBars );
}
void SAL_CALL ScVbaApplication::OnKey( const ::rtl::OUString& Key, const uno::Any& Procedure ) throw (uno::RuntimeException)
{
try
{
// Perhaps we can catch some excel specific
// related behaviour here
VbaApplicationBase::OnKey( Key, Procedure );
}
catch( container::NoSuchElementException& )
{
// #TODO special handling for unhandled
// bindings
}
}
rtl::OUString
ScVbaApplication::getServiceImplName()
{
......
......@@ -96,7 +96,7 @@ public:
virtual void SAL_CALL setStatusBar( const css::uno::Any& _statusbar ) throw (css::uno::RuntimeException);
virtual ::sal_Int32 SAL_CALL getCursor() throw (css::uno::RuntimeException);
virtual void SAL_CALL setCursor( ::sal_Int32 _cursor ) throw (css::uno::RuntimeException);
virtual void SAL_CALL OnKey( const ::rtl::OUString& Key, const css::uno::Any& Procedure ) throw (css::uno::RuntimeException);
virtual sal_Bool SAL_CALL getEnableEvents() throw (css::uno::RuntimeException);
virtual void SAL_CALL setEnableEvents( sal_Bool bEnable ) throw (css::uno::RuntimeException);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment