Yes, these are hints, but you do not get this information from the IDL
reference
and it seems to be impossible to get this information via reflection.
I created now around 3000 classes from doing reflection of the whole
system and
can't get this information.
Marten
rony schrieb:
Hi Marten,
just guessing.
Marten Feldtmann wrote:
How can this code run:
((mxDocument as XTextFieldsSupplier).getTextFields() as
XRefreshable).refresh();
getTextFields() (by interface "XTextFieldsSupplier") delivers
"com.sun.star.container.XEnumerationAccess"
and this interface does not understand "refresh".
Where in the idl reference do I get the information, that
getTextFields() actually delivers an instance of
"com.sun.star.text.TextFields" ?
I do not get this information via the idl reference, nor by reflection
....
Going to
<http://api.openoffice.org/docs/common/ref/com/sun/star/util/XRefreshable.html>
and choosing "Use" in the top menu, you get to
<http://api.openoffice.org/docs/common/ref/com/sun/star/util/XRefreshable-xref.html>,
where you see a reference to
<http://api.openoffice.org/docs/common/ref/com/sun/star/sdbcx/Container.html>.
From
<http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/ProUNO/Collections_and_Containers>
it seems that "XEnumerationAccess" is a subclass of "XContainer" and as
such possesses the "XRefreshableInterface", which you then would neet to
query explicitly from the XEnumerationAcess object.
HTH,
---rony
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]