generictoolbarcontroller.cxx (6d739b60) | generictoolbarcontroller.cxx (d21a9fb0) |
---|---|
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 --- 367 unchanged lines hidden (view full) --- 376 m_xMenuManager.set( new MenuBarManager( m_xServiceManager, m_xFrame, xURLTransformer, xDispatch, m_aModuleIdentifier, pMenu, sal_True, sal_True ) ); 377 if ( m_xMenuManager.is() ) 378 { 379 MenuBarManager* pMgr = dynamic_cast< MenuBarManager* >( m_xMenuManager.get() ); 380 pMgr->SetItemContainer( m_xMenuDesc ); 381 } 382 } 383 | 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 --- 367 unchanged lines hidden (view full) --- 376 m_xMenuManager.set( new MenuBarManager( m_xServiceManager, m_xFrame, xURLTransformer, xDispatch, m_aModuleIdentifier, pMenu, sal_True, sal_True ) ); 377 if ( m_xMenuManager.is() ) 378 { 379 MenuBarManager* pMgr = dynamic_cast< MenuBarManager* >( m_xMenuManager.get() ); 380 pMgr->SetItemContainer( m_xMenuDesc ); 381 } 382 } 383 |
384 if ( !pMenu || !m_pToolbar ) 385 return NULL; 386 387 OSL_ENSURE ( pMenu->GetItemCount(), "Empty PopupMenu!" ); 388 |
|
384 ::Rectangle aRect( m_pToolbar->GetItemRect( m_nID ) ); 385 pMenu->Execute( m_pToolbar, aRect, POPUPMENU_EXECUTE_DOWN ); | 389 ::Rectangle aRect( m_pToolbar->GetItemRect( m_nID ) ); 390 pMenu->Execute( m_pToolbar, aRect, POPUPMENU_EXECUTE_DOWN ); |
386 return NULL; | 391 392 return NULL; |
387} 388} // namespace 389 | 393} 394} // namespace 395 |