To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=64717 Issue #:|64717 Summary:|Layered accelerators Component:|framework Version:|OOo 2.0.2 Platform:|All URL:| OS/Version:|All Status:|NEW Status whiteboard:| Keywords:| Resolution:| Issue type:|PATCH Priority:|P3 Subcomponent:|code Assigned to:|mba Reported by:|kendy
------- Additional comments from [EMAIL PROTECTED] Mon Apr 24 11:43:19 -0700 2006 ------- I'll attach code that does 'layered accelerators': > Luckily of course each accelerator has a unique key / name - so we can > easily overlay these guys; have a true 'default.xml' file [ perhaps in > the accelerator/ directory ? ] that we then overlay much smaller files > for i18n on top of. The principle is easy, as described by Michael. Apart from reading the global/accelerator/<lang>/default.xml, it also reads global/accelerator/default.xml (similarly for modules/<module>/accelerator/), and if it contains not yet assigned accelerators, it assigns them. This adds a lot of freedom in creating the accelerator files. The really global accelerators can be defined global/accelerator/default.xml, and their language mutations can be re-defined in global/accelerator/<lang>/default.xml (usually very small). And similarly for the modules - they do not have to define accelerator for Save, e.g.; it is already defined in the global default.xml. The most important change is the one in framework/source/accelerators/acceleratorconfiguration.cxx (AKA the ~10 lines or so ;-) ), the rest is just supporting it - to have access to the language independent path (global/accelerator/default.xml), etc. Please comment on this approach, and if you are OK with it, I'll create a CWS for it, etc. Thank you in advance! --------------------------------------------------------------------- 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]