prefer more css::awt::XPopupMenu api
Change-Id: Ib008281d63071ea79935af83cbe434be66155455 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126692 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
@@ -24,7 +24,6 @@
|
||||
|
||||
namespace com::sun::star::awt { class XPopupMenu; }
|
||||
namespace com::sun::star::container { class XIndexContainer; }
|
||||
class Menu;
|
||||
|
||||
namespace framework
|
||||
{
|
||||
@@ -45,20 +44,20 @@ namespace framework
|
||||
// to optimize the time of creation of a menu from an actiontrigger structure.
|
||||
// IMPORTANT: The caller must ensure that the menu pointer is valid through the
|
||||
// life time of the XIndexContainer object!!!
|
||||
// @param pNewMenu = Must be a valid menu. Please be aware that this implementation is based on
|
||||
// the above mentioned restriction!!!
|
||||
// @param rMenu = Must be a valid menu. Please be aware that this implementation is based on
|
||||
// the above mentioned restriction!!!
|
||||
|
||||
static css::uno::Reference< css::container::XIndexContainer > CreateActionTriggerContainerFromMenu(
|
||||
const Menu* pMenu, const OUString* pMenuIdentifier );
|
||||
const css::uno::Reference<css::awt::XPopupMenu>& rMenu, const OUString* pMenuIdentifier );
|
||||
|
||||
// Fills the submitted rActionTriggerContainer with the structure of the menu
|
||||
// provided as the second parameter
|
||||
// @param rActionTriggerContainer = must be an instance of service "com.sun.star.ui.ActionTriggerContainer"
|
||||
// @param pNewMenu = must be a valid menu
|
||||
// @param rMenu = must be a valid menu
|
||||
static void
|
||||
FillActionTriggerContainerFromMenu(
|
||||
css::uno::Reference< css::container::XIndexContainer > const & rActionTriggerContainer,
|
||||
const Menu* pMenu );
|
||||
const css::uno::Reference<css::awt::XPopupMenu>& rMenu);
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user