1*6d739b60SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*6d739b60SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*6d739b60SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*6d739b60SAndrew Rist * distributed with this work for additional information 6*6d739b60SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*6d739b60SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*6d739b60SAndrew Rist * "License"); you may not use this file except in compliance 9*6d739b60SAndrew Rist * with the License. You may obtain a copy of the License at 10*6d739b60SAndrew Rist * 11*6d739b60SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*6d739b60SAndrew Rist * 13*6d739b60SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*6d739b60SAndrew Rist * software distributed under the License is distributed on an 15*6d739b60SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*6d739b60SAndrew Rist * KIND, either express or implied. See the License for the 17*6d739b60SAndrew Rist * specific language governing permissions and limitations 18*6d739b60SAndrew Rist * under the License. 19*6d739b60SAndrew Rist * 20*6d739b60SAndrew Rist *************************************************************/ 21*6d739b60SAndrew Rist 22*6d739b60SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove 25cdf0e10cSrcweir #include "precompiled_framework.hxx" 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include <classes/rootactiontriggercontainer.hxx> 28cdf0e10cSrcweir #include <classes/actiontriggercontainer.hxx> 29cdf0e10cSrcweir #include <classes/actiontriggerpropertyset.hxx> 30cdf0e10cSrcweir #include <classes/actiontriggerseparatorpropertyset.hxx> 31cdf0e10cSrcweir #include <framework/actiontriggerhelper.hxx> 32cdf0e10cSrcweir #include <threadhelp/resetableguard.hxx> 33cdf0e10cSrcweir #include <osl/mutex.hxx> 34cdf0e10cSrcweir #include <vcl/svapp.hxx> 35cdf0e10cSrcweir #include <cppuhelper/typeprovider.hxx> 36cdf0e10cSrcweir 37cdf0e10cSrcweir 38cdf0e10cSrcweir using namespace cppu; 39cdf0e10cSrcweir using namespace com::sun::star::uno; 40cdf0e10cSrcweir using namespace com::sun::star::lang; 41cdf0e10cSrcweir using namespace com::sun::star::container; 42cdf0e10cSrcweir using namespace com::sun::star::beans; 43cdf0e10cSrcweir 44cdf0e10cSrcweir 45cdf0e10cSrcweir namespace framework 46cdf0e10cSrcweir { 47cdf0e10cSrcweir 48cdf0e10cSrcweir static Sequence< sal_Int8 > impl_getStaticIdentifier() 49cdf0e10cSrcweir { 50cdf0e10cSrcweir static sal_uInt8 pGUID[16] = { 0x17, 0x0F, 0xA2, 0xC9, 0xCA, 0x50, 0x4A, 0xD3, 0xA6, 0x3B, 0x39, 0x99, 0xC5, 0x96, 0x43, 0x27 }; 51cdf0e10cSrcweir static ::com::sun::star::uno::Sequence< sal_Int8 > seqID((sal_Int8*)pGUID,16) ; 52cdf0e10cSrcweir return seqID ; 53cdf0e10cSrcweir } 54cdf0e10cSrcweir 55cdf0e10cSrcweir 56cdf0e10cSrcweir RootActionTriggerContainer::RootActionTriggerContainer( const Menu* pMenu, const ::rtl::OUString* pMenuIdentifier, const Reference< XMultiServiceFactory >& rServiceManager ) : 57cdf0e10cSrcweir PropertySetContainer( rServiceManager ) 58cdf0e10cSrcweir , m_bContainerCreated( sal_False ) 59cdf0e10cSrcweir , m_bContainerChanged( sal_False ) 60cdf0e10cSrcweir , m_bInContainerCreation( sal_False ) 61cdf0e10cSrcweir , m_pMenu( pMenu ) 62cdf0e10cSrcweir , m_pMenuIdentifier( pMenuIdentifier ) 63cdf0e10cSrcweir { 64cdf0e10cSrcweir } 65cdf0e10cSrcweir 66cdf0e10cSrcweir RootActionTriggerContainer::~RootActionTriggerContainer() 67cdf0e10cSrcweir { 68cdf0e10cSrcweir } 69cdf0e10cSrcweir 70cdf0e10cSrcweir Sequence< sal_Int8 > RootActionTriggerContainer::GetUnoTunnelId() const 71cdf0e10cSrcweir { 72cdf0e10cSrcweir return impl_getStaticIdentifier(); 73cdf0e10cSrcweir } 74cdf0e10cSrcweir 75cdf0e10cSrcweir const Menu* RootActionTriggerContainer::GetMenu() 76cdf0e10cSrcweir { 77cdf0e10cSrcweir if ( !m_bContainerChanged ) 78cdf0e10cSrcweir return m_pMenu; 79cdf0e10cSrcweir else 80cdf0e10cSrcweir { 81cdf0e10cSrcweir ResetableGuard aGuard( m_aLock ); 82cdf0e10cSrcweir 83cdf0e10cSrcweir Menu* pNewMenu = new PopupMenu; 84cdf0e10cSrcweir 85cdf0e10cSrcweir ActionTriggerHelper::CreateMenuFromActionTriggerContainer( pNewMenu, this ); 86cdf0e10cSrcweir m_pMenu = pNewMenu; 87cdf0e10cSrcweir m_bContainerChanged = sal_False; 88cdf0e10cSrcweir 89cdf0e10cSrcweir return m_pMenu; 90cdf0e10cSrcweir } 91cdf0e10cSrcweir } 92cdf0e10cSrcweir 93cdf0e10cSrcweir 94cdf0e10cSrcweir // XInterface 95cdf0e10cSrcweir Any SAL_CALL RootActionTriggerContainer::queryInterface( const Type& aType ) 96cdf0e10cSrcweir throw ( RuntimeException ) 97cdf0e10cSrcweir { 98cdf0e10cSrcweir Any a = ::cppu::queryInterface( 99cdf0e10cSrcweir aType , 100cdf0e10cSrcweir SAL_STATIC_CAST( XMultiServiceFactory* , this ), 101cdf0e10cSrcweir SAL_STATIC_CAST( XServiceInfo* , this ), 102cdf0e10cSrcweir SAL_STATIC_CAST( XUnoTunnel* , this ), 103cdf0e10cSrcweir SAL_STATIC_CAST( XTypeProvider* , this ), 104cdf0e10cSrcweir SAL_STATIC_CAST( XNamed* , this )); 105cdf0e10cSrcweir 106cdf0e10cSrcweir if( a.hasValue() ) 107cdf0e10cSrcweir { 108cdf0e10cSrcweir return a; 109cdf0e10cSrcweir } 110cdf0e10cSrcweir 111cdf0e10cSrcweir return PropertySetContainer::queryInterface( aType ); 112cdf0e10cSrcweir } 113cdf0e10cSrcweir 114cdf0e10cSrcweir void SAL_CALL RootActionTriggerContainer::acquire() throw () 115cdf0e10cSrcweir { 116cdf0e10cSrcweir PropertySetContainer::acquire(); 117cdf0e10cSrcweir } 118cdf0e10cSrcweir 119cdf0e10cSrcweir void SAL_CALL RootActionTriggerContainer::release() throw () 120cdf0e10cSrcweir { 121cdf0e10cSrcweir PropertySetContainer::release(); 122cdf0e10cSrcweir } 123cdf0e10cSrcweir 124cdf0e10cSrcweir // XMultiServiceFactory 125cdf0e10cSrcweir Reference< XInterface > SAL_CALL RootActionTriggerContainer::createInstance( const ::rtl::OUString& aServiceSpecifier ) 126cdf0e10cSrcweir throw ( Exception, RuntimeException ) 127cdf0e10cSrcweir { 128cdf0e10cSrcweir if ( aServiceSpecifier.equalsAscii( SERVICENAME_ACTIONTRIGGER )) 129cdf0e10cSrcweir return (OWeakObject *)( new ActionTriggerPropertySet( m_xServiceManager )); 130cdf0e10cSrcweir else if ( aServiceSpecifier.equalsAscii( SERVICENAME_ACTIONTRIGGERCONTAINER )) 131cdf0e10cSrcweir return (OWeakObject *)( new ActionTriggerContainer( m_xServiceManager )); 132cdf0e10cSrcweir else if ( aServiceSpecifier.equalsAscii( SERVICENAME_ACTIONTRIGGERSEPARATOR )) 133cdf0e10cSrcweir return (OWeakObject *)( new ActionTriggerSeparatorPropertySet( m_xServiceManager )); 134cdf0e10cSrcweir else 135cdf0e10cSrcweir throw com::sun::star::uno::RuntimeException( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Unknown service specifier!" )), (OWeakObject *)this ); 136cdf0e10cSrcweir } 137cdf0e10cSrcweir 138cdf0e10cSrcweir Reference< XInterface > SAL_CALL RootActionTriggerContainer::createInstanceWithArguments( const ::rtl::OUString& ServiceSpecifier, const Sequence< Any >& /*Arguments*/ ) 139cdf0e10cSrcweir throw ( Exception, RuntimeException ) 140cdf0e10cSrcweir { 141cdf0e10cSrcweir return createInstance( ServiceSpecifier ); 142cdf0e10cSrcweir } 143cdf0e10cSrcweir 144cdf0e10cSrcweir Sequence< ::rtl::OUString > SAL_CALL RootActionTriggerContainer::getAvailableServiceNames() 145cdf0e10cSrcweir throw ( RuntimeException ) 146cdf0e10cSrcweir { 147cdf0e10cSrcweir Sequence< ::rtl::OUString > aSeq( 3 ); 148cdf0e10cSrcweir 149cdf0e10cSrcweir aSeq[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( SERVICENAME_ACTIONTRIGGER )); 150cdf0e10cSrcweir aSeq[1] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( SERVICENAME_ACTIONTRIGGERCONTAINER )); 151cdf0e10cSrcweir aSeq[2] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( SERVICENAME_ACTIONTRIGGERSEPARATOR )); 152cdf0e10cSrcweir 153cdf0e10cSrcweir return aSeq; 154cdf0e10cSrcweir } 155cdf0e10cSrcweir 156cdf0e10cSrcweir 157cdf0e10cSrcweir // XIndexContainer 158cdf0e10cSrcweir void SAL_CALL RootActionTriggerContainer::insertByIndex( sal_Int32 Index, const Any& Element ) 159cdf0e10cSrcweir throw ( IllegalArgumentException, IndexOutOfBoundsException, WrappedTargetException, RuntimeException ) 160cdf0e10cSrcweir { 161cdf0e10cSrcweir ResetableGuard aGuard( m_aLock ); 162cdf0e10cSrcweir 163cdf0e10cSrcweir if ( !m_bContainerCreated ) 164cdf0e10cSrcweir FillContainer(); 165cdf0e10cSrcweir 166cdf0e10cSrcweir if ( !m_bInContainerCreation ) 167cdf0e10cSrcweir m_bContainerChanged = sal_True; 168cdf0e10cSrcweir PropertySetContainer::insertByIndex( Index, Element ); 169cdf0e10cSrcweir } 170cdf0e10cSrcweir 171cdf0e10cSrcweir void SAL_CALL RootActionTriggerContainer::removeByIndex( sal_Int32 Index ) 172cdf0e10cSrcweir throw ( IndexOutOfBoundsException, WrappedTargetException, RuntimeException ) 173cdf0e10cSrcweir { 174cdf0e10cSrcweir ResetableGuard aGuard( m_aLock ); 175cdf0e10cSrcweir 176cdf0e10cSrcweir if ( !m_bContainerCreated ) 177cdf0e10cSrcweir FillContainer(); 178cdf0e10cSrcweir 179cdf0e10cSrcweir if ( !m_bInContainerCreation ) 180cdf0e10cSrcweir m_bContainerChanged = sal_True; 181cdf0e10cSrcweir PropertySetContainer::removeByIndex( Index ); 182cdf0e10cSrcweir } 183cdf0e10cSrcweir 184cdf0e10cSrcweir 185cdf0e10cSrcweir // XIndexReplace 186cdf0e10cSrcweir void SAL_CALL RootActionTriggerContainer::replaceByIndex( sal_Int32 Index, const Any& Element ) 187cdf0e10cSrcweir throw ( IllegalArgumentException, IndexOutOfBoundsException, WrappedTargetException, RuntimeException ) 188cdf0e10cSrcweir { 189cdf0e10cSrcweir ResetableGuard aGuard( m_aLock ); 190cdf0e10cSrcweir 191cdf0e10cSrcweir if ( !m_bContainerCreated ) 192cdf0e10cSrcweir FillContainer(); 193cdf0e10cSrcweir 194cdf0e10cSrcweir if ( !m_bInContainerCreation ) 195cdf0e10cSrcweir m_bContainerChanged = sal_True; 196cdf0e10cSrcweir PropertySetContainer::replaceByIndex( Index, Element ); 197cdf0e10cSrcweir } 198cdf0e10cSrcweir 199cdf0e10cSrcweir 200cdf0e10cSrcweir // XIndexAccess 201cdf0e10cSrcweir sal_Int32 SAL_CALL RootActionTriggerContainer::getCount() 202cdf0e10cSrcweir throw ( RuntimeException ) 203cdf0e10cSrcweir { 204cdf0e10cSrcweir ResetableGuard aGuard( m_aLock ); 205cdf0e10cSrcweir 206cdf0e10cSrcweir if ( !m_bContainerCreated ) 207cdf0e10cSrcweir { 208cdf0e10cSrcweir if ( m_pMenu ) 209cdf0e10cSrcweir { 210cdf0e10cSrcweir vos::OGuard aSolarMutexGuard( Application::GetSolarMutex() ); 211cdf0e10cSrcweir return m_pMenu->GetItemCount(); 212cdf0e10cSrcweir } 213cdf0e10cSrcweir else 214cdf0e10cSrcweir return 0; 215cdf0e10cSrcweir } 216cdf0e10cSrcweir else 217cdf0e10cSrcweir { 218cdf0e10cSrcweir return PropertySetContainer::getCount(); 219cdf0e10cSrcweir } 220cdf0e10cSrcweir } 221cdf0e10cSrcweir 222cdf0e10cSrcweir Any SAL_CALL RootActionTriggerContainer::getByIndex( sal_Int32 Index ) 223cdf0e10cSrcweir throw ( IndexOutOfBoundsException, WrappedTargetException, RuntimeException ) 224cdf0e10cSrcweir { 225cdf0e10cSrcweir ResetableGuard aGuard( m_aLock ); 226cdf0e10cSrcweir 227cdf0e10cSrcweir if ( !m_bContainerCreated ) 228cdf0e10cSrcweir FillContainer(); 229cdf0e10cSrcweir 230cdf0e10cSrcweir return PropertySetContainer::getByIndex( Index ); 231cdf0e10cSrcweir } 232cdf0e10cSrcweir 233cdf0e10cSrcweir 234cdf0e10cSrcweir // XElementAccess 235cdf0e10cSrcweir Type SAL_CALL RootActionTriggerContainer::getElementType() 236cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException) 237cdf0e10cSrcweir { 238cdf0e10cSrcweir return ::getCppuType(( Reference< XPropertySet >*)0); 239cdf0e10cSrcweir } 240cdf0e10cSrcweir 241cdf0e10cSrcweir sal_Bool SAL_CALL RootActionTriggerContainer::hasElements() 242cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException) 243cdf0e10cSrcweir { 244cdf0e10cSrcweir if ( m_pMenu ) 245cdf0e10cSrcweir { 246cdf0e10cSrcweir vos::OGuard aSolarMutexGuard( Application::GetSolarMutex() ); 247cdf0e10cSrcweir return ( m_pMenu->GetItemCount() > 0 ); 248cdf0e10cSrcweir } 249cdf0e10cSrcweir 250cdf0e10cSrcweir return sal_False; 251cdf0e10cSrcweir } 252cdf0e10cSrcweir 253cdf0e10cSrcweir 254cdf0e10cSrcweir // XServiceInfo 255cdf0e10cSrcweir ::rtl::OUString SAL_CALL RootActionTriggerContainer::getImplementationName() 256cdf0e10cSrcweir throw ( RuntimeException ) 257cdf0e10cSrcweir { 258cdf0e10cSrcweir return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( IMPLEMENTATIONNAME_ROOTACTIONTRIGGERCONTAINER )); 259cdf0e10cSrcweir } 260cdf0e10cSrcweir 261cdf0e10cSrcweir sal_Bool SAL_CALL RootActionTriggerContainer::supportsService( const ::rtl::OUString& ServiceName ) 262cdf0e10cSrcweir throw ( RuntimeException ) 263cdf0e10cSrcweir { 264cdf0e10cSrcweir if ( ServiceName.equalsAscii( SERVICENAME_ACTIONTRIGGERCONTAINER )) 265cdf0e10cSrcweir return sal_True; 266cdf0e10cSrcweir 267cdf0e10cSrcweir return sal_False; 268cdf0e10cSrcweir } 269cdf0e10cSrcweir 270cdf0e10cSrcweir Sequence< ::rtl::OUString > SAL_CALL RootActionTriggerContainer::getSupportedServiceNames() 271cdf0e10cSrcweir throw ( RuntimeException ) 272cdf0e10cSrcweir { 273cdf0e10cSrcweir Sequence< ::rtl::OUString > seqServiceNames( 1 ); 274cdf0e10cSrcweir 275cdf0e10cSrcweir seqServiceNames[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( SERVICENAME_ACTIONTRIGGERCONTAINER )); 276cdf0e10cSrcweir return seqServiceNames; 277cdf0e10cSrcweir } 278cdf0e10cSrcweir 279cdf0e10cSrcweir // XUnoTunnel 280cdf0e10cSrcweir sal_Int64 SAL_CALL RootActionTriggerContainer::getSomething( const Sequence< sal_Int8 >& aIdentifier ) throw ( RuntimeException ) 281cdf0e10cSrcweir { 282cdf0e10cSrcweir if ( aIdentifier == impl_getStaticIdentifier() ) 283cdf0e10cSrcweir return reinterpret_cast< sal_Int64 >( this ); 284cdf0e10cSrcweir else 285cdf0e10cSrcweir return 0; 286cdf0e10cSrcweir } 287cdf0e10cSrcweir 288cdf0e10cSrcweir // XTypeProvider 289cdf0e10cSrcweir Sequence< Type > SAL_CALL RootActionTriggerContainer::getTypes() throw ( RuntimeException ) 290cdf0e10cSrcweir { 291cdf0e10cSrcweir // Optimize this method ! 292cdf0e10cSrcweir // We initialize a static variable only one time. And we don't must use a mutex at every call! 293cdf0e10cSrcweir // For the first call; pTypeCollection is NULL - for the second call pTypeCollection is different from NULL! 294cdf0e10cSrcweir static ::cppu::OTypeCollection* pTypeCollection = NULL ; 295cdf0e10cSrcweir 296cdf0e10cSrcweir if ( pTypeCollection == NULL ) 297cdf0e10cSrcweir { 298cdf0e10cSrcweir // Ready for multithreading; get global mutex for first call of this method only! see before 299cdf0e10cSrcweir osl::MutexGuard aGuard( osl::Mutex::getGlobalMutex() ) ; 300cdf0e10cSrcweir 301cdf0e10cSrcweir // Control these pointer again ... it can be, that another instance will be faster then these! 302cdf0e10cSrcweir if ( pTypeCollection == NULL ) 303cdf0e10cSrcweir { 304cdf0e10cSrcweir // Create a static typecollection ... 305cdf0e10cSrcweir static ::cppu::OTypeCollection aTypeCollection( 306cdf0e10cSrcweir ::getCppuType(( const Reference< XMultiServiceFactory >*)NULL ) , 307cdf0e10cSrcweir ::getCppuType(( const Reference< XIndexContainer >*)NULL ) , 308cdf0e10cSrcweir ::getCppuType(( const Reference< XIndexAccess >*)NULL ) , 309cdf0e10cSrcweir ::getCppuType(( const Reference< XIndexReplace >*)NULL ) , 310cdf0e10cSrcweir ::getCppuType(( const Reference< XServiceInfo >*)NULL ) , 311cdf0e10cSrcweir ::getCppuType(( const Reference< XTypeProvider >*)NULL ) , 312cdf0e10cSrcweir ::getCppuType(( const Reference< XUnoTunnel >*)NULL ) , 313cdf0e10cSrcweir ::getCppuType(( const Reference< XNamed >*)NULL )) ; 314cdf0e10cSrcweir 315cdf0e10cSrcweir // ... and set his address to static pointer! 316cdf0e10cSrcweir pTypeCollection = &aTypeCollection ; 317cdf0e10cSrcweir } 318cdf0e10cSrcweir } 319cdf0e10cSrcweir 320cdf0e10cSrcweir return pTypeCollection->getTypes() ; 321cdf0e10cSrcweir } 322cdf0e10cSrcweir 323cdf0e10cSrcweir Sequence< sal_Int8 > SAL_CALL RootActionTriggerContainer::getImplementationId() throw ( RuntimeException ) 324cdf0e10cSrcweir { 325cdf0e10cSrcweir // Create one Id for all instances of this class. 326cdf0e10cSrcweir // Use ethernet address to do this! (sal_True) 327cdf0e10cSrcweir 328cdf0e10cSrcweir // Optimize this method 329cdf0e10cSrcweir // We initialize a static variable only one time. And we don't must use a mutex at every call! 330cdf0e10cSrcweir // For the first call; pID is NULL - for the second call pID is different from NULL! 331cdf0e10cSrcweir static ::cppu::OImplementationId* pID = NULL ; 332cdf0e10cSrcweir 333cdf0e10cSrcweir if ( pID == NULL ) 334cdf0e10cSrcweir { 335cdf0e10cSrcweir // Ready for multithreading; get global mutex for first call of this method only! see before 336cdf0e10cSrcweir osl::MutexGuard aGuard( osl::Mutex::getGlobalMutex() ) ; 337cdf0e10cSrcweir 338cdf0e10cSrcweir // Control these pointer again ... it can be, that another instance will be faster then these! 339cdf0e10cSrcweir if ( pID == NULL ) 340cdf0e10cSrcweir { 341cdf0e10cSrcweir // Create a new static ID ... 342cdf0e10cSrcweir static ::cppu::OImplementationId aID( sal_False ) ; 343cdf0e10cSrcweir // ... and set his address to static pointer! 344cdf0e10cSrcweir pID = &aID ; 345cdf0e10cSrcweir } 346cdf0e10cSrcweir } 347cdf0e10cSrcweir 348cdf0e10cSrcweir return pID->getImplementationId() ; 349cdf0e10cSrcweir } 350cdf0e10cSrcweir 351cdf0e10cSrcweir // private implementation helper 352cdf0e10cSrcweir void RootActionTriggerContainer::FillContainer() 353cdf0e10cSrcweir { 354cdf0e10cSrcweir m_bContainerCreated = sal_True; 355cdf0e10cSrcweir m_bInContainerCreation = sal_True; 356cdf0e10cSrcweir Reference<XIndexContainer> xXIndexContainer( (OWeakObject *)this, UNO_QUERY ); 357cdf0e10cSrcweir ActionTriggerHelper::FillActionTriggerContainerFromMenu( 358cdf0e10cSrcweir xXIndexContainer, 359cdf0e10cSrcweir m_pMenu ); 360cdf0e10cSrcweir m_bInContainerCreation = sal_False; 361cdf0e10cSrcweir } 362cdf0e10cSrcweir ::rtl::OUString RootActionTriggerContainer::getName() throw ( RuntimeException ) 363cdf0e10cSrcweir { 364cdf0e10cSrcweir ::rtl::OUString sRet; 365cdf0e10cSrcweir if( m_pMenuIdentifier ) 366cdf0e10cSrcweir sRet = *m_pMenuIdentifier; 367cdf0e10cSrcweir return sRet; 368cdf0e10cSrcweir } 369cdf0e10cSrcweir 370cdf0e10cSrcweir void RootActionTriggerContainer::setName( const ::rtl::OUString& ) throw ( RuntimeException) 371cdf0e10cSrcweir { 372cdf0e10cSrcweir throw RuntimeException(); 373cdf0e10cSrcweir } 374cdf0e10cSrcweir } 375cdf0e10cSrcweir 376