Issue 121542

Summary: [AWT] Unify the Menu API
Product: General Reporter: Ariel Constenla-Haile <arielch>
Component: codeAssignee: Ariel Constenla-Haile <arielch>
Status: CLOSED FIXED QA Contact:
Severity: Normal    
Priority: P3 CC: issues
Version: 3.4.1   
Target Milestone: 4.0.0   
Hardware: All   
OS: All   
Issue Type: TASK Latest Confirmation in: ---
Developer Difficulty: ---
Issue Depends on:    
Issue Blocks: 121582, 94057    

Description Ariel Constenla-Haile 2012-12-23 12:19:07 UTC
Currently, the API for Menu Bar (com.sun.star.awt.MenuBar)  and Popup Menu (com.sun.star.awt.PopupMenu) is disseminated in several interfaces due to the published nature of the services and its interfaces, basically css.awt.XMenu and css.awt.XPopupMenu.

With the new major version of Apache OpenOffice 4 it is a good opportunity to unify the Menu related API, making it more clear and API-user-friendly.
Comment 1 SVN Robot 2012-12-23 12:29:22 UTC
"arielch" committed SVN revision 1425458 into trunk:
i121542 - Unify the Menu API
Comment 2 Ariel Constenla-Haile 2012-12-23 12:45:04 UTC
The following interfaces have been removed, and included in css.awt.XMenu and css.awt.XPopupMenu (with some minor incompatible changes):

css.awt.XMenuExtended
css.awt.XMenuExtended2
css.awt.XMenuBarExtended
css.awt.XPopupMenuExtended

Incompatible changes
====================

a) The css.awt.MenuLogo struct has been removed. The respective method for setting a logo on a menu has been removed:

XPopupMenuExtended.setLogo
XPopupMenuExtended.getLogo

b) The following css.awt.XPopupMenuExtended methods have been removed and not integrated into css.awt.XPopupMenu:

XPopupMenuExtended.setItemImageAngle
XPopupMenuExtended.getItemImageAngle
XPopupMenuExtended.setItemImageMirrorMode
XPopupMenuExtended.isItemImageInMirrorMode

c) The css.awt.XMenuListener methods have been renamed, according to bug 94057 expectations:

itemHighlighted
itemSelected
itemActivated
itemDeactivated

d) css.awt.XPopupMenu.execute signature has changed to take a css.awt.Point instead of a css.awt.Rectangle
Comment 3 SVN Robot 2013-05-25 22:10:53 UTC
"arielch" committed SVN revision 1486375 into trunk:
i121542 - css::awt::XPopupMenu::execute() needs a css::awt::Rectangle