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

            Bug ID: 151847
           Summary: Invalid XPropertySet for several properties and
                    queryInterface() returns
           Product: LibreOffice
           Version: 7.3.6.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: [email protected]
          Reporter: [email protected]

Tested in LibreOffice 7.3. Unable to test in 7.4 due to bug 151846

These are just the ones I found.

----------------------------------------------------------
Several methods in the chart2 namespace are missing methods on the XPropertySet
interface.

I am pointing to my OOO Development Tools project so show examples of these
bugs.
see: https://github.com/Amourspirit/python_ooo_dev_tools

----------------------------------------------------------
XChartDocument.getPageBackground() is a XProperySet however is missing
setPropertyValue() and getPropertySetInfo() methods and raises an attribute
error when trying to access.

See: Chart2 code
https://github.com/Amourspirit/python_ooo_dev_tools/blob/f47c63aa2f179abee2f3e9b81548933f95091be1/ooodev/office/chart2.py#L1294

----------------------------------------------------------
XChartDocument.getFirstDiagram().getWall() is a XProperySet however is missing
setPropertyValue() and getPropertySetInfo() methods and raises an attribute
error when trying to access.

See: Chart2 code
https://github.com/Amourspirit/python_ooo_dev_tools/blob/f47c63aa2f179abee2f3e9b81548933f95091be1/ooodev/office/chart2.py#L1329

----------------------------------------------------------
Service CandleStickChartType
CandleStickChartType.WhiteDay is a XProperySet however is missing
setPropertyValue() and getPropertySetInfo() methods and raises an attribute
error when trying to access.
Same is true for CandleStickChartType.BlackDay

See Chart2 code
https://github.com/Amourspirit/python_ooo_dev_tools/blob/f47c63aa2f179abee2f3e9b81548933f95091be1/ooodev/office/chart2.py#L1885

----------------------------------------------------------
Current work around is to set the properties directly and not use the
XPropertySet.
Such as:
white_day_dpp.FillColor = int(w_day_color)
from
https://github.com/Amourspirit/python_ooo_dev_tools/blob/f47c63aa2f179abee2f3e9b81548933f95091be1/ooodev/office/chart2.py#L1912
or
Using pythons hasattr() and setattr()
See
https://github.com/Amourspirit/python_ooo_dev_tools/blob/f47c63aa2f179abee2f3e9b81548933f95091be1/ooodev/utils/props.py#L504

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

Reply via email to