Issue 121542 - [AWT] Unify the Menu API
Summary: [AWT] Unify the Menu API
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: 3.4.1
Hardware: All All
: P3 Normal with 2 votes (vote)
Target Milestone: 4.0.0
Assignee: Ariel Constenla-Haile
QA Contact:
URL:
Keywords:
Depends on:
Blocks: 121582 94057
  Show dependency tree
 
Reported: 2012-12-23 12:19 UTC by Ariel Constenla-Haile
Modified: 2022-10-28 12:54 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
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