Kaydet (Commit) 98397a48 authored tarafından Julien Nabet's avatar Julien Nabet

Typo: listerner->listener

Change-Id: Ib2cb62477630641f0302769eacdd0dd00f4e760c
Reviewed-on: https://gerrit.libreoffice.org/33192Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarJulien Nabet <serval2412@yahoo.fr>
üst bc2dee99
......@@ -83,7 +83,7 @@ public class ComponentBase_Test
assertEquals(obj2.nDisposingCalled, 1);
assertEquals(obj3.nDisposingCalled, 1);
logger.log(Level.FINE, "Adding a listener after dispose, causes a immediate call to the listerner.");
logger.log(Level.FINE, "Adding a listener after dispose, causes a immediate call to the listener.");
obj1.nDisposingCalled= 0;
comp.addEventListener(obj1);
assertEquals(obj1.nDisposingCalled, 1);
......
......@@ -156,12 +156,12 @@ namespace dlgprov
// key listeners by protocol when ScriptType = 'Script'
// otherwise key is the ScriptType e.g. StarBasic
if ( rxRTLListener.is() ) // set up handler for RTL_BASIC
listernersForTypes[ OUString("StarBasic") ] = rxRTLListener;
listenersForTypes[ OUString("StarBasic") ] = rxRTLListener;
else
listernersForTypes[ OUString("StarBasic") ] = new DialogLegacyScriptListenerImpl( rxContext, rxModel );
listenersForTypes[ OUString("StarBasic") ] = new DialogLegacyScriptListenerImpl( rxContext, rxModel );
// handler for Script & OUString("vnd.sun.star.UNO:")
listernersForTypes[ OUString("vnd.sun.star.UNO") ] = new DialogUnoScriptListenerImpl( rxContext, rxModel, rxControl, rxHandler, rxIntrospect, bProviderMode );
listernersForTypes[ OUString("vnd.sun.star.script") ] = new DialogSFScriptListenerImpl( rxContext, rxModel );
listenersForTypes[ OUString("vnd.sun.star.UNO") ] = new DialogUnoScriptListenerImpl( rxContext, rxModel, rxControl, rxHandler, rxIntrospect, bProviderMode );
listenersForTypes[ OUString("vnd.sun.star.script") ] = new DialogSFScriptListenerImpl( rxContext, rxModel );
// determine the VBA compatibility mode from the Basic library container
try
......@@ -175,7 +175,7 @@ namespace dlgprov
{
}
if ( mbUseFakeVBAEvents )
listernersForTypes[ OUString("VBAInterop") ] = new DialogVBAScriptListenerImpl( rxContext, rxControl, rxModel, sDialogLibName );
listenersForTypes[ OUString("VBAInterop") ] = new DialogVBAScriptListenerImpl( rxContext, rxControl, rxModel, sDialogLibName );
}
......@@ -187,8 +187,8 @@ namespace dlgprov
Reference< script::XScriptListener >
DialogEventsAttacherImpl::getScriptListenerForKey( const OUString& sKey ) throw ( RuntimeException )
{
ListenerHash::iterator it = listernersForTypes.find( sKey );
if ( it == listernersForTypes.end() )
ListenerHash::iterator it = listenersForTypes.find( sKey );
if ( it == listenersForTypes.end() )
throw RuntimeException(); // more text info here please
return it->second;
}
......
......@@ -49,7 +49,7 @@ namespace dlgprov
{
private:
bool mbUseFakeVBAEvents;
ListenerHash listernersForTypes;
ListenerHash listenersForTypes;
css::uno::Reference< css::uno::XComponentContext > m_xContext;
css::uno::Reference< css::script::XEventAttacher > m_xEventAttacher;
css::uno::Reference< css::script::XScriptListener > getScriptListenerForKey( const OUString& sScriptName ) 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