Apache OpenOffice (AOO) Bugzilla – Issue 30052
new chart: Implement public Chart2 API for Writer
Last modified: 2013-02-24 21:22:22 UTC
Implement the css::chart2::XDataProvider interface and all sub-interfaces.
.
Files changed: sw: - inc/unochart.hxx 1.1.2.1 - source/core/unocore/unochart.cxx 1.1.2.1 - inc/unocoll.hxx 1.13.428.1 - inc/unocrsr.hxx 1.3.714.1 - inc/unomap.hxx 1.45.82.1 - inc/unoprnms.hxx 1.93.12.1 - inc/unotbl.hxx 1.14.542.1 - source/core/crsr/unocrsr.cxx 1.6.418.1 - source/core/frmedt/tblsel.cxx 1.23.14.1 - source/core/unocore/makefile.mk 1.16.232.1 - source/core/unocore/unocoll.cxx 1.23.428.1 - source/core/unocore/unomap.cxx 1.161.10.1 - source/core/unocore/unoprnms.cxx 1.97.12.1 - source/core/unocore/unotbl.cxx 1.85.12.1 - source/ui/table/chartins.cxx 1.8.248.2 - source/ui/uno/unotxdoc.cxx 1.89.14.1 - xml/writer.xml 1.12.220.1
TL: changed type to FEATURE.
Because of a shortage of resources we have to retarget this issue to OOo later.
according to http://www.openoffice.org/servlets/ReadMsg?list=releases&msgNo=7690 this issue will be set to OOoLater
set keyword and set target for new chart issues
Please fix XDataProvider::detectArguments soon, because this is the thing that currently breaks Load/Save of charts in writer in many situations. I checked in a version that returns fixed values for the three needed parameters.
Even more important than detectArguments (and probably much easier to implement) is the implementation of the XRangeXMLConversion. The two methods there transform ranges from Writer format to XML format (this should already be implemented somewhere in Writer) and vice versa. Please implement this. I added the interface and the two methods empty.
XRangeXMLConversion implemented in CWS chart2mst3. Files changed: - sw/source/core/unocore/XMLRangeHelper.hxx new file - sw/source/core/unocore/XMLRangeHelper.cxx new file - sw/source/core/unocore/makefile.mk - sw/source/core/unocore/unotbl.cxx - sw/source/core/unocore/unochart.cxx
Further changes: - sw/inc/unotbl.hxx - sw/inc/unochart.hxx - sw/source/core/unocore/unotbl.cxx - sw/source/core/unocore/unochart.cxx
TL: Task is fixed now. But I still should write some description about what createDataSource and detectArguments can do now since it is much more than what would be allowed via the Writer's UI but still has some restrictions to be known.
If charts are created from rows the data is not composed correctly. Creating charts from columns this seems to work now. Furthermore the method XDataSequence::generateLabel( eLabelOrigin ) does not what it should do. Please return one localized string indicating the position of the range depending on the paramter eLabelOrigin.
Created attachment 31785 [details] Chart with data from writer separated in columns
Created attachment 31788 [details] Chart with data from writer separated in rows
added me to cc
Fixed in CWS chart2mst3. Files changed: sw: - unochart.cxx
New string resources created according to spec. Files changed: - sw/inc/rcid.hrc - sw/inc/unocore.hrc new file - sw/inc/unochart.hxx - sw/source/core/unocore/unocore.src new file - sw/source/core/unocore/unochart.cxx - sw/source/core/unocore/makefile.mk - sw/util/makefile.mk
changed summary to start with 'new chart: ' to avoid confusion with regular chart issues
changed issue type from feature to task
Changed target to 2.x
TL->BM: Please check. Thanks!
Is done. If there are issues concerning the API, we need specific issues for that.
Closing (just a development reminder issue)