eventhandler.cxx (2a97ec55) eventhandler.cxx (07a3d7f1)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 900 unchanged lines hidden (view full) ---

909 ++event
910 )
911 {
912 // the script which is assigned to the current event (if any)
913 ScriptEventDescriptor aAssignedScript = lcl_getAssignedScriptEvent( event->second, aAllAssignedEvents );
914 pEventHolder->addEvent( event->second.nId, event->second.sListenerMethodName, aAssignedScript );
915 }
916
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 900 unchanged lines hidden (view full) ---

909 ++event
910 )
911 {
912 // the script which is assigned to the current event (if any)
913 ScriptEventDescriptor aAssignedScript = lcl_getAssignedScriptEvent( event->second, aAllAssignedEvents );
914 pEventHolder->addEvent( event->second.nId, event->second.sListenerMethodName, aAssignedScript );
915 }
916
917 // the inital selection in the dialog
917 // the initial selection in the dialog
918 Sequence< ::rtl::OUString > aNames( pEventHolder->getElementNames() );
919 const ::rtl::OUString* pChosenEvent = ::std::find( aNames.getConstArray(), aNames.getConstArray() + aNames.getLength(), rForEvent.sListenerMethodName );
920 sal_uInt16 nInitialSelection = (sal_uInt16)( pChosenEvent - aNames.getConstArray() );
921
922 // the dialog
923 SvxAbstractDialogFactory* pFactory = SvxAbstractDialogFactory::Create();
924 if ( !pFactory )
925 return InteractiveSelectionResult_Cancelled;

--- 357 unchanged lines hidden ---
918 Sequence< ::rtl::OUString > aNames( pEventHolder->getElementNames() );
919 const ::rtl::OUString* pChosenEvent = ::std::find( aNames.getConstArray(), aNames.getConstArray() + aNames.getLength(), rForEvent.sListenerMethodName );
920 sal_uInt16 nInitialSelection = (sal_uInt16)( pChosenEvent - aNames.getConstArray() );
921
922 // the dialog
923 SvxAbstractDialogFactory* pFactory = SvxAbstractDialogFactory::Create();
924 if ( !pFactory )
925 return InteractiveSelectionResult_Cancelled;

--- 357 unchanged lines hidden ---