Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | Disabling any menu command via API disables menu item Tools > Macros > Organize Macros | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | General | Reporter: | Giuseppe Castagno (aka beppec56) <giuseppe.castagno> | ||||||||||
Component: | ui | Assignee: | AOO issues mailing list <issues> | ||||||||||
Status: | CONFIRMED --- | QA Contact: | |||||||||||
Severity: | Trivial | ||||||||||||
Priority: | P3 | CC: | carsten.driesner, elish, issues, rainerbielefeld_ooo_qa | ||||||||||
Version: | OOo 3.0 | ||||||||||||
Target Milestone: | --- | ||||||||||||
Hardware: | PC | ||||||||||||
OS: | All | ||||||||||||
URL: | https://wiki.openoffice.org/wiki/Documentation/DevGuide/WritingUNO/Disable_Commands | ||||||||||||
Issue Type: | DEFECT | Latest Confirmation in: | 4.1.0-dev | ||||||||||
Developer Difficulty: | --- | ||||||||||||
Attachments: |
|
Description
Giuseppe Castagno (aka beppec56)
2008-11-17 18:20:29 UTC
Created attachment 58061 [details]
Extension to be used for testing
cd: Added myself to CC. This issue is correctly assigned to the framework project. The "Disable Commands" feature is part of the framework project. I will try to confirm your issue. @cd: thanks, First a more precise information: in #desc1 I didn't explain correctly the menu item at 2.1: it's Tools > Macros > Digital Signatures...; not the one reported there. Sorry for that. In the meantime I modified slightly the extension to check with another command (InsertAVMedia, menu item: Insert > Movie and Sound). This command has no problem, so it seems confined to the the Macro submenu. I'll try to investigate the matter further into the code, in case I have trouble in understanding the program flow, I'll ask in the dev@framework.openoffice.org list. After some more testing I found that the issue is general, it applies when any command is disabled, so changed summary to a more correct one. Issue can be checked with the attached minimal extension, that will disable the Tools > Customize... menu item. The extension implements what it's explained in the Developer's Guide (http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/WritingUNO/Disable_Commands) Using a running OOo 3.0 with no opened documents, check if Tools > Customize... is enabled, the Tools > Macros > Organize Macros should be there as well. Install the attached extension, check again Tools > Customize... it should be gone. Check Tools > Macros > Organize Macros it's still there (correct so far). Now open an empty text document, close it and check again Tools > Macros > Organize Macros : it disappeared whereas it shouldn't have. To restore things back, remove the installed “CommandDisableToolsCustomize†extension, check again Tools > Customize...: it should be there, whereas Tools > Macros > Organize Macros still wasn't enabled whereas it should be enabled. Open an empty document, close it and check again Tools > Macros > Organize Macros : it returned. The issue seems confined to dynamic menus bound to menu bar, it shows up when menus are recreated due to change of frame. I'll try to investigate further and to build a patch for discussion. Created attachment 58385 [details]
Extension for testing, see comment above
Created attachment 58394 [details] patch for discussion. See dev@framework.openoffice.org. Confirmed with AOO410m1(Build:9750) - Rev. 1562493 Rev.1562493 Win 7 Created attachment 82513 [details]
menu comparison before-after
|