Apache OpenOffice (AOO) Bugzilla – Issue 5114
unable to change the picklist (AKA MRU) size via macro
Last modified: 2010-02-22 14:59:26 UTC
A frequently asked question is how to change to pick list size in the file menu. The usual answer is to manually modify the underlying XML files. As this is heavily dependent on the configuration implementation (and in no way portable nor future proof), a (theoretical) better way would be to change the respective configuration item using a macro. Unfortunately, the SvtHistoryOptions do not respect changes done by other instances (means by other means than using the options class itself). Instead it overwrites all settings on terminating the apllication with the own ones. This means that effectively, changes on the settings guarded by the SvtHistoryOptions are impossible, except "from inside", means using the class directly. This surely is not the way the configuration is intended to work :).
Created attachment 1718 [details] sample macro for setting the pick list size
Sorry - but no svtools config item recognize changes of the underlining xml files! They all was designed as the only way for the office application code to have access on the configuration data. Nobody inside the office should use the configuration api directly. Ok some designs are not future proof too .... I will use this bug to force changes on that. But I think to use a macro for changing the picklist size seams exeggerated. From my point of view a new entry in our "tools->options" dialog should regulate that. On the other side - before we can reach all our functionality by using macros we have to migrate to UNO completly. Means: no native c++ frameworks any longer - pure using of UNO components instead of that.
*** Issue 14594 has been marked as a duplicate of this issue. ***
How about an option in the preferences?
Why is Issue 14594 a dupplicate? Here the OP wanted it for macros, I would like it as a preference in the General preferences. Should I open a new issue or will this one take care of it?
And *please* make "0" a valid pickentry size!
Where has development got to on this issue ? I see a request for modifying the picklist size at least once a week on the French list, so it is obviously important for many users. Would it be possible to have an update on the issue ? Will it be fixed for version 2 ?
There is a macro (in a file) that accomplishes this. I will attach it.
Created attachment 12303 [details] Zipped working pick list changer in a file
Thanks, will try it out. But please include it in OOo itself as well :)
.
AS: new target OOLater
The attached macro (also available via http://sourceforge.net/project/showfiles.php?group_id=87718&package_id=100070 ) does not work with OOo 2.0.2 Linux i86 (680m5 Build 9011) for changing the number of entries in the pick list. It still allows you to clear the pick list, though. My vote for finally having an option in the config menu for setting the number of entries in the pick list to a value from 0 (= disabled) to whatever. Note that in MSO it is possible to set the corresponding value to 1 ~ 10 via the UI.
In issue 50722, cd mentions an extension to configure/clear the MRU list. I guess we can close this issue as soon as that extension works...
is this issue fixed -> please verify -> close
Seems to work with the History Manager extension now
No, the problem is not entirely solved by extension HistManager2.1.oxt. It changes the picklist, but not the history list, on the false assumption that the history list does not exist any more. The history list is visible in the "Load URL" drop-down list. Even if you don't use it, it remembers up to 100 accessed file names, which may be a confidentiality problem. And even if it is possible to make a macro to change the size of these lists, the facility should be integrated in OOo, like numerous other applications in various fields (not only MS-Office).
as->mechtilde: The bug itself is fixed. History options was completely redesigned (new configuration, new code) so they are extensible by extensions. BUT ... these issue is part of a CWS named configitems02_svn ... and those was not approved by our QA already. So phase of verify, approve and close is still in progress. BTW: These fix isnt related to any currently existing extension. Furthermore the old configuration structures (XCS/XCU) will be deprecated from now and replaced with something completely new.
as->cn: Please verify that task on cws configitems02_svn. You can use the complex test in svtools/qa/complex/configitems ... or you can use basic to test if the special use case "resizing picklist" works now as expected. Ask for further details :-)
verified in cws
is it fixed now -< so the issue can be closed?
lla: please take over
This issue is closed automatically. It should be fixed in a version with is available for longer than half a year (OOo 3.1). If you think this issue isn't fixed in the current version (OOo 3.2) please reopen it. But then please pay attention about the field 'target milestone'. The closure was approved by the Release Status Meeting at 22nd of February 2010 and it is based on the issue handling guideline for fixed/verified issues : http://wiki.services.openoffice.org/wiki/Handle_fixed_verified_issues