Apache OpenOffice (AOO) Bugzilla – Issue 75194
Automatic Position and Size get lost after save and reload
Last modified: 2013-02-24 21:22:12 UTC
Autmatic Position and Size get lost after save and reload.
setting keyword, accepting
*** Issue 75192 has been marked as a duplicate of this issue. ***
*** Issue 75193 has been marked as a duplicate of this issue. ***
This fix requires an ODF file format change that will hopefully be available in ODF 1.2.
Changed subject, as this also happens in the old chart, so this is no regression in the new implementation. In the old chart, however, there is some magic that sometimes is successful in determining automatic positions and sizes, so sometimes it may work, but most of the times it doesn't. (And at least theoretically, it might also happen that a manual size/position may be interpreted as automatic on error).
move to target 3.x according http://wiki.services.openoffice.org/wiki/Target_3x
change owner
@weiz: We need a new boolean property 'AutomaticPosition' at the TitleWrapper, LegendWrapper and DiagramWrapper. This should be mapped to a new boolean token 'auto-position' in xmloff. Furthermore we need a property 'AutomaticSize' at the DiagramWrapper. It should be mapped to a new token 'auto-size' in xmloff.
@iha: the patch is finished. I think it's too complicated if we add the new property for the TitleWrapper, LegendWrapper and DiagramWrapper separately, so I created two new files "WrappedAutomaticPositionProperties.hxx" and "WrappedAutomaticPositionProperties.cxx" to do this work. Please let me know your suggestions about the patch. Thank a lot!
Created attachment 55097 [details] patch_080714
@weiz, thanks for the patch! Some changes: I added a missing entry in the makefile and added the new properties to the according idl files to document them. There was an additional change necessary in xmloff, to avoid that an explicit size and position are set at the diagram after AutomaticPosition and AutomaticSize were set to true (look at SchXMLPlotAreaContext.cxx, v1.47.38.1).
Fixed in CWS chart30. For testing: -Create a chart with sub title and legend on top -save, reload and insert a main title -> subtitle, legend and diagram should move automatically to make room for the new title. -No move the sub title the legend and the diagram a bit -save, reload and remove the main title -> subtitle, legend and diagram should not move as they are not positioned automatically anymore.
@KLA, please verify in CWS chart30.
Seen ok in CWS chart30 -> verified
seen ok in current master -> closed