Apache OpenOffice (AOO) Bugzilla – Issue 121542
[AWT] Unify the Menu API
Last modified: 2022-10-28 12:54:34 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.
"arielch" committed SVN revision 1425458 into trunk: i121542 - Unify the Menu API
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
"arielch" committed SVN revision 1486375 into trunk: i121542 - css::awt::XPopupMenu::execute() needs a css::awt::Rectangle