Bug 131862 - ODF: Remove deprecated attribute table:cell-range-address from element <chart:plot-area>
Summary: ODF: Remove deprecated attribute table:cell-range-address from element <chart...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Chart (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: odf
Keywords:
Depends on:
Blocks: Chart ODF-export-invalid
  Show dependency treegraph
 
Reported: 2020-04-03 21:45 UTC by Regina Henschel
Modified: 2022-06-02 10:00 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2020-04-03 21:45:38 UTC
ODF 1.2 has deprecated the table:call-range-address as attribute of element <chart:plot-area>. Instead the attribute chart:values-cell-range-address of <chart:series> is used.
http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#attribute-table_cell-range-address_element-chart_plot-area

The use of this attribute with element <chart:plot-area> will be removed in ODF 1.4. Therefore it is time to change LibreOffice accordingly.


I have made some tests with charts in Writer, Calc, Impress and Draw. I have generated a chart, then removed the attribute in file, and then reopened the file. In all my tests, the chart was the same as created. So it should be no problem to remove writing that attribute for ODF 1.4.

I could not test charts in reports (REPORTBUILDER) because of crashes. The REPORTBUILDER seem to have severe problems with charts, see bug 117162, bug 117159, bug 87012 for example.

I have looked at Pivot-Charts too. They have principle ODF related errors in cell addresses and need rework anyway, see bug 112785 and bug 112783.

Old OOo versions use this attribute to distinguish between the cases, that the data source is the internal table of the chart, or the chart has an external data source. I have seen comments on this. So it might be, that import/export filter for these old versions still need to treat this attribute.
Comment 1 Michael Stahl (allotropia) 2020-04-06 11:13:45 UTC
i can't find any recent changes to xmloff that would be relevant, it looks much like it did in 2008.

reportdesign has this fun code:

reportdesign/source/filter/xml/xmlExportDocumentHandler.cxx
    else if ( _sName == "chart:plot-area" )
    {
        SvXMLAttributeList* pList = comphelper::getUnoTunnelImplementation<SvXMLAttributeList>(xAttribs);
        pList->RemoveAttribute("table:cell-range-address");
    }
Comment 2 QA Administrators 2022-06-02 03:33:52 UTC Comment hidden (obsolete)
Comment 3 Regina Henschel 2022-06-02 10:00:48 UTC
The task is still not solved in Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 172e208e6b0674f42c301c5ee5e280e9138ba1b4
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL