Hi Rony,

in this case it's very simple, XTableCharts is a child of XNameAccess. so it's straight forward no special rule and no relation between XIndexAccess and XEnumerationAccess here.

Juergen


Rony G. Flatscher wrote:
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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to