Hi there,

is the "XNameAccess" interface implied, if a service object defines (and is defined to have) the interfaces "com.sun.star.container.XIndexAccess" and/or "com.sun.star.container.XEnumerationAccess"? If so, what would be the rules to apply?

Reason of this question being, that the service "com.sun.star.table.TableCharts" (implemented by "ScChartsObj") does not list "XNameAccess" (nor is it reflected), yet one can use that interface!

Here the service object:
xTableCharts: SERVICE|com.sun.star.table.TableCharts|ScChartsObj
        com.sun.star.table.XTableCharts|INTERFACE||com.sun.star.table.TableCharts
        com.sun.star.container.XIndexAccess|INTERFACE||com.sun.star.table.TableCharts
        com.sun.star.container.XEnumerationAccess|INTERFACE||com.sun.star.table.TableCharts
Here the interfaces explored via reflection:
xTableCharts-interfaces (via reflection): com.sun.star.table.XTableCharts
        com.sun.star.container.XIndexAccess
        com.sun.star.container.XEnumerationAccess
---rony

Reply via email to