https://bugs.documentfoundation.org/show_bug.cgi?id=152476

            Bug ID: 152476
           Summary: Scatter chart XChartDocument has bad implementation
                    (python)
           Product: LibreOffice
           Version: 7.3.6.2 release
          Hardware: All
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Chart
          Assignee: [email protected]
          Reporter: [email protected]

Scatter chart XChartDocument bad implementation

Scatter poor implementation. Missing methods and perhaps more.

Missing method I tested are getFirstDiagram() and getChartTypeManager()

Tested using my ODEV library:
https://github.com/Amourspirit/python_ooo_dev_tools

and my LibreOffice Examples repo:
https://github.com/Amourspirit/python-ooouno-ex

How to reproduce:
See:
https://github.com/Amourspirit/python-ooouno-ex/tree/b476a7366d3386b91ec972103397c90520446e80/ex/auto/chart2/Chart_2_Views

When repo is installed:
>>> python .\ex\auto\chart2\Chart_2_Views\start.py -k scatter

>>> Chart2.print_chart_types(chart_doc)
raise error When scatter chart

>>> AttributeError: type object 'com.sun.star.chart2.XChartDocument' has no 
>>> attribute 'getFirstDiagram'

see:
https://github.com/Amourspirit/python_ooo_dev_tools/blob/757379603f95d21fbb99d2969970b905b4c5efe1/ooodev/office/chart2.py#L1588

>>> template_names = Chart2.get_chart_templates(chart_doc)
raises error when scatter chart

>>> AttributeError: type object 'com.sun.star.chart2.XChartDocument' has no 
>>> attribute 'getChartTypeManager'

See:
https://github.com/Amourspirit/python_ooo_dev_tools/blob/757379603f95d21fbb99d2969970b905b4c5efe1/ooodev/office/chart2.py#L353

I tested on LibreOffice 7.3 and Daily build of 7.4.4,
LibreOfficeDev_7.4.4.0.0_Win_x64.msi
Found at:
https://dev-builds.libreoffice.org/daily/libreoffice-7-4/Win-x86_64@tb77-TDF/2022-12-10_07.33.53/

I tested many other charts and so far only scatter is an issue.

Only Tested on Windows 10 thusfar.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to