To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=98123 Issue #|98123 Summary|embedding shortcut key configuration in document has e |rrors Component|framework Version|DEV300m37 Platform|PC URL| OS/Version|Windows XP Status|UNCONFIRMED Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|scripting Assigned to|ab Reported by|regina
------- Additional comments from [email protected] Thu Jan 15 19:16:40 +0000 2009 ------- I'll give a detailed description, because the feature itself is widely unknown. Therefore the text is a little big longer :) The attached document contains a custom character style "red" and a macro "makered", that assigns the style to a marked text. Enable macros. Work on a copy of the original file each time. 1. Open the attached document and confirm enabling macros. 2. Goto Tools > Customize > Keyboard. 3. Choose "Writer" to display the shortcut keys for Writer. 4. Click on "Ctrl+6" in the "Shortcut keys"-list. 5. In "Function Category"-list open tree "OOo macros > [Filename of the open document] > Standard > Formatting". You get two items in the "Functions Function"-list. 6. Select "makered" in "Functions Function"-list. 7. Click on "Modify". You get the entry "Ctrl+6 makered" in the "Shortcut keys"-list and the entry "Ctrl+6" in the "Functions Keys"-list. 8. Click on "Save". 9. Goto the actual opened document in the file dialog and choose it. Save. Click on "Yes" in the replace warning. 10. Click on OK to close the customize dialog. 11. Close the document immediately with the X-closer. You should not get a modify warning. With the next steps you remove the shortcut key from the user settings for to get a fresh situation for the following tests. R1. Open a new Writer document. R2. Goto Tools > Customize > Keyboard. R3. Click on "Ctrl+6" in the "Shortcut keys"-list. R4. Click on "Delete" and then on "OK". R5. Close the document. You should go to the file with the file explorer of your OS. Notice that the file size has increased. If you unpack the file you can find the configuration in the folder "Configurations2 > accelerator". Problems: Use a fresh situation (see steps R1 to R5). P1. Do steps 1.-10., document is still open. P2. Mark a word and press Ctrl+6 to assure that the macro works. P3. Close the document with the X-closer. Click "Save" in the modify warning. Notice that the file size is the same as the original file. If you unpack the file, you can see that the folder "accelerator" is empty. Expected behavior: The stored configuration after step 10 is not disturbed when working on the file and saving it later on. Use a fresh situation. P4. Do steps 1.-11. P5. Goto Tools > Customize > Keyboard and scroll in the "Shortcut keys"-list till "Ctrl+6". Notice that the associated command now is "vnd.sun.star.script:Standard.Formatting.makered?language=Basic&location=document". Expected behavior: The full command is already shown in step 7. Use a fresh situation. P6. Open the document, which contains the shortcut key as generated in steps 1.-11. P7. Mark a word and press Ctrl+6 to assure that the macro works. P8. Goto Tools > Customize > Keyboard and scroll in the "Shortcut keys"-list till "Ctrl+6". Notice, that there is no associated command. P9. In "Function Category"-list open tree "OOo macros > [Filename of open document] > Standard > Formatting". Mark the item "makered" in the "Functions Function"-list. Notice that there is no shortcut key in the "Functions Keys"-list. Expected behavior: The "Shortcut keys"-list shows _all_ associated commands, including those which come from a configuration which is embedded in the document. Perhaps a new option "Document" is needed in addition to "Writer" and "OOo"? I have discussed the problems with Carsten Driesner on [email protected]. --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
