Apache OpenOffice (AOO) Bugzilla – Issue 85637
Rotation to Bar chart should be also rotate the Axis Title
Last modified: 2013-02-24 21:18:40 UTC
Open testdoc. Select chart and switch Type to Bar. Only the Chart Type are switched, not the Axis Title.
Created attachment 51203 [details] Testdoc
&iha: the property "AutomaticPosition" for chart title is finished. Please let me know your suggestions, it's useful for me to work on the further work(the same property for legend and plot area). Thank you very much!
Created attachment 55038 [details] patch_080710
@weiz, thanks for the patch! I only had a quick look so far but it looks good. :-) The only thing I stumbled over is the case when the property automatic-position is set to false. In the patch this is not implemented. Did you try to use TitleWrapper::getPosition() to set an explicit position in that case? Adding the same property for legend and plot area would be a part of issue 75194.
One thing more. For the file format it is specified that the absence of 'auto-position' is equal to auto-position=false. So the default in the file format is false. We can achieve the correct behavior easily when choosing the same default for the API. Please introduce an additional method WrappedAutomaticPositionProperty::getPropertyDefault. It should return false.
@iha: the improvement of this issue is finished at issue 75194.
With the implementation of issue 75194 this is fixed as follows: When you now create a chart with axes-titles the positions of the titles are not fixed but automatic as long as the user does not move them explicitly. So you can create a column chart with titles, save, reload and swap to bar chart -> the titles will move to the positions they should have for a default bar chart. As the attached file was written with an older version it can not be distinguished whether the user has explicitly positioned the title or whether it was automatically placed by the application. So old files can not be corrected, but this should be a relatively rare scenario and users can use the auto-layout button to bring back good defaults.
Created attachment 55166 [details] new example with automatic positions
@KLA, please verify in CWS chart30.
For new docs its work fine, ok in CWS chart30 -> verified
Seen ok in current master -> closed