Hi Nicole,

Nicole Scholz escribió:
Hi!

I queried UNO IDL's from Open Office. When I query an UNO IDL with Open Office 2.4 I get the answer with all definition members. But when I query it with the new Open Office 3.0 German version I get an error message that the queried property does not exist. With the English version I get an answer back.


are you using API calls to introspect UNO objects, or some functionality
specific to the bridge you use (ooRexx, I guess)?
By "using API calls" I mean the reflection/introspection API:
http://api.openoffice.org/docs/common/ref/com/sun/star/reflection/module-ix.html
http://api.openoffice.org/docs/common/ref/com/sun/star/beans/Introspection.html


I got a hint that it can be possible that there are language independent and dependent descriptions. How can I mangage that I can query the language independent descripions.

If by language-dependent you mean locale-dependent (i.e. the spoken
languege, not the programming language used), AFAIK no: all information
about types is stored in registry database. And there are (at least in my build) two classes of databases: one plane, and the other with documentation; but this documentation is taken from the IDL files, and is in English only (as this is too technical, IMO there is no sense to translate the IDL).

Did you try if you can query the databases in the command line? (using the SDK environment)

The undocumented (AFAIK default) version may look like:

[EMAIL PROTECTED] openoffice.org2.4_sdk]$ regview /opt/openoffice.org/basis3.0/program/offapi.rdb /UCR/com/sun/star/awt/XWindow
Registry "file:///opt/openoffice.org/basis3.0/program/offapi.rdb":

/UCR/com/sun/star/awt/XWindow
 Value: Type = RG_VALUETYPE_BINARY
        Size = 1877
        Data = version: 1
               documentation: ""
               file name: ""
               type class: published interface
               type name: "com/sun/star/awt/XWindow"
               super type count: 1
               super type name 0: "com/sun/star/lang/XComponent"
               field count: 0
               method count: 17
               method 0:
                   documentation: ""
                   flags: oneway
                   name: "setPosSize"
                   return type name: "void"
                   parameter count: 5
                   parameter 0:
                       flags: in
                       name: "X"
                       type name: "long"
                   parameter 1:
                       flags: in
                       name: "Y"
                       type name: "long"
                   parameter 2:
                       flags: in
                       name: "Width"
                       type name: "long"
                   parameter 3:
                       flags: in
                       name: "Height"
                       type name: "long"
                   parameter 4:
                       flags: in
                       name: "Flags"
                       type name: "short"
                   exception count: 0
               method 1:
                   documentation: ""
                   flags: synchronous
                   name: "getPosSize"
                   return type name: "com/sun/star/awt/Rectangle"
                   parameter count: 0
                   exception count: 0
               method 2:
                   documentation: ""
                   flags: oneway
                   name: "setVisible"
                   return type name: "void"
                   parameter count: 1
                   parameter 0:
                       flags: in
                       name: "Visible"
                       type name: "boolean"
                   exception count: 0
               method 3:
                   documentation: ""
                   flags: oneway
                   name: "setEnable"
                   return type name: "void"
                   parameter count: 1
                   parameter 0:
                       flags: in
                       name: "Enable"
                       type name: "boolean"
                   exception count: 0
               method 4:
                   documentation: ""
                   flags: oneway
                   name: "setFocus"
                   return type name: "void"
                   parameter count: 0
                   exception count: 0
               method 5:
                   documentation: ""
                   flags: oneway
                   name: "addWindowListener"
                   return type name: "void"
                   parameter count: 1
                   parameter 0:
                       flags: in
                       name: "xListener"
                       type name: "com/sun/star/awt/XWindowListener"
                   exception count: 0
               method 6:
                   documentation: ""
                   flags: oneway
                   name: "removeWindowListener"
                   return type name: "void"
                   parameter count: 1
                   parameter 0:
                       flags: in
                       name: "xListener"
                       type name: "com/sun/star/awt/XWindowListener"
                   exception count: 0
               method 7:
                   documentation: ""
                   flags: oneway
                   name: "addFocusListener"
                   return type name: "void"
                   parameter count: 1
                   parameter 0:
                       flags: in
                       name: "xListener"
                       type name: "com/sun/star/awt/XFocusListener"
                   exception count: 0
               method 8:
                   documentation: ""
                   flags: oneway
                   name: "removeFocusListener"
                   return type name: "void"
                   parameter count: 1
                   parameter 0:
                       flags: in
                       name: "xListener"
                       type name: "com/sun/star/awt/XFocusListener"
                   exception count: 0
               method 9:
                   documentation: ""
                   flags: oneway
                   name: "addKeyListener"
                   return type name: "void"
                   parameter count: 1
                   parameter 0:
                       flags: in
                       name: "xListener"
                       type name: "com/sun/star/awt/XKeyListener"
                   exception count: 0
               method 10:
                   documentation: ""
                   flags: oneway
                   name: "removeKeyListener"
                   return type name: "void"
                   parameter count: 1
                   parameter 0:
                       flags: in
                       name: "xListener"
                       type name: "com/sun/star/awt/XKeyListener"
                   exception count: 0
               method 11:
                   documentation: ""
                   flags: oneway
                   name: "addMouseListener"
                   return type name: "void"
                   parameter count: 1
                   parameter 0:
                       flags: in
                       name: "xListener"
                       type name: "com/sun/star/awt/XMouseListener"
                   exception count: 0
               method 12:
                   documentation: ""
                   flags: oneway
                   name: "removeMouseListener"
                   return type name: "void"
                   parameter count: 1
                   parameter 0:
                       flags: in
                       name: "xListener"
                       type name: "com/sun/star/awt/XMouseListener"
                   exception count: 0
               method 13:
                   documentation: ""
                   flags: oneway
                   name: "addMouseMotionListener"
                   return type name: "void"
                   parameter count: 1
                   parameter 0:
                       flags: in
                       name: "xListener"
                       type name: "com/sun/star/awt/XMouseMotionListener"
                   exception count: 0
               method 14:
                   documentation: ""
                   flags: oneway
                   name: "removeMouseMotionListener"
                   return type name: "void"
                   parameter count: 1
                   parameter 0:
                       flags: in
                       name: "xListener"
                       type name: "com/sun/star/awt/XMouseMotionListener"
                   exception count: 0
               method 15:
                   documentation: ""
                   flags: oneway
                   name: "addPaintListener"
                   return type name: "void"
                   parameter count: 1
                   parameter 0:
                       flags: in
                       name: "xListener"
                       type name: "com/sun/star/awt/XPaintListener"
                   exception count: 0
               method 16:
                   documentation: ""
                   flags: oneway
                   name: "removePaintListener"
                   return type name: "void"
                   parameter count: 1
                   parameter 0:
                       flags: in
                       name: "xListener"
                       type name: "com/sun/star/awt/XPaintListener"
                   exception count: 0
               reference count: 0






********************************************************************************

The documented version looks like this:


[EMAIL PROTECTED] openoffice.org2.4_sdk]$ regview /build/openoffice/DEV300_m29/solver/300/unxlngi6/bin/offapi_doc.rdb /UCR/com/sun/star/awt/XWindow Registry "file:///build/openoffice/DEV300_m29/solver/300/unxlngi6/bin/offapi_doc.rdb":

/UCR/com/sun/star/awt/XWindow
 Value: Type = RG_VALUETYPE_BINARY
        Size = 3706
        Data = version: 1
documentation: "specifies the basic operations for a window component.\u000A\u0009\u0009\u000A\u0009<p>A window is a rectangular region on an output device with \u000A\u0009its own position, size, and internal coordinate system.\u000A A window is used for displaying data. In addition, the window\u000A receives events from the user.</p>"
               file name: ""
               type class: published interface
               type name: "com/sun/star/awt/XWindow"
               super type count: 1
               super type name 0: "com/sun/star/lang/XComponent"
               field count: 0
               method count: 17
               method 0:
documentation: "sets the outer bounds of the window.\u000A\u000A @param X\u000A the x-coordinate of the window.\u000A\u000A @param Y\u000A the y-coordinate of the window.\u000A\u000A @param Width\u000A the width of the window.\u000A\u000A @param Height\u000A the height of the window.\u000A\u000A @param Flags\u000A Flags are of type <type>PosSize</type> and specify, which parameters\u000A are taken into account when setting the outer bounds of the window."
                   flags: oneway
                   name: "setPosSize"
                   return type name: "void"
                   parameter count: 5
                   parameter 0:
                       flags: in
                       name: "X"
                       type name: "long"
                   parameter 1:
                       flags: in
                       name: "Y"
                       type name: "long"
                   parameter 2:
                       flags: in
                       name: "Width"
                       type name: "long"
                   parameter 3:
                       flags: in
                       name: "Height"
                       type name: "long"
                   parameter 4:
                       flags: in
                       name: "Flags"
                       type name: "short"
                   exception count: 0
               method 1:
                   documentation: "returns the outer bounds of the window."
                   flags: synchronous
                   name: "getPosSize"
                   return type name: "com/sun/star/awt/Rectangle"
                   parameter count: 0
                   exception count: 0
               method 2:
documentation: "shows or hides the window depending on the parameter."
                   flags: oneway
                   name: "setVisible"
                   return type name: "void"
                   parameter count: 1
                   parameter 0:
                       flags: in
                       name: "Visible"
                       type name: "boolean"
                   exception count: 0
               method 3:
documentation: "enables or disables the window depending on the parameter."
                   flags: oneway
                   name: "setEnable"
                   return type name: "void"
                   parameter count: 1
                   parameter 0:
                       flags: in
                       name: "Enable"
                       type name: "boolean"
                   exception count: 0
               method 4:
                   documentation: "sets the focus to the window."
                   flags: oneway
                   name: "setFocus"
                   return type name: "void"
                   parameter count: 0
                   exception count: 0
               method 5:
documentation: "adds a window listener to the object.\u000A\u000A @param xListener\u000A the listener to add. If this listener also supports the <type>XWindowListener2</type> interface,\u000A it will receive the additional events declared in XWindowListener2."
                   flags: oneway
                   name: "addWindowListener"
                   return type name: "void"
                   parameter count: 1
                   parameter 0:
                       flags: in
                       name: "xListener"
                       type name: "com/sun/star/awt/XWindowListener"
                   exception count: 0
               method 6:
documentation: "removes the specified window listener from the listener list."
                   flags: oneway
                   name: "removeWindowListener"
                   return type name: "void"
                   parameter count: 1
                   parameter 0:
                       flags: in
                       name: "xListener"
                       type name: "com/sun/star/awt/XWindowListener"
                   exception count: 0
               method 7:
                   documentation: "adds a focus listener to the object."
                   flags: oneway
                   name: "addFocusListener"
                   return type name: "void"
                   parameter count: 1
                   parameter 0:
                       flags: in
                       name: "xListener"
                       type name: "com/sun/star/awt/XFocusListener"
                   exception count: 0
               method 8:
documentation: "removes the specified focus listener from the listener list."
                   flags: oneway
                   name: "removeFocusListener"
                   return type name: "void"
                   parameter count: 1
                   parameter 0:
                       flags: in
                       name: "xListener"
                       type name: "com/sun/star/awt/XFocusListener"
                   exception count: 0
               method 9:
                   documentation: "adds a key listener to the object."
                   flags: oneway
                   name: "addKeyListener"
                   return type name: "void"
                   parameter count: 1
                   parameter 0:
                       flags: in
                       name: "xListener"
                       type name: "com/sun/star/awt/XKeyListener"
                   exception count: 0
               method 10:
documentation: "removes the specified key listener from the listener list."
                   flags: oneway
                   name: "removeKeyListener"
                   return type name: "void"
                   parameter count: 1
                   parameter 0:
                       flags: in
                       name: "xListener"
                       type name: "com/sun/star/awt/XKeyListener"
                   exception count: 0
               method 11:
                   documentation: "adds a mouse listener to the object."
                   flags: oneway
                   name: "addMouseListener"
                   return type name: "void"
                   parameter count: 1
                   parameter 0:
                       flags: in
                       name: "xListener"
                       type name: "com/sun/star/awt/XMouseListener"
                   exception count: 0
               method 12:
documentation: "removes the specified mouse listener from the listener list."
                   flags: oneway
                   name: "removeMouseListener"
                   return type name: "void"
                   parameter count: 1
                   parameter 0:
                       flags: in
                       name: "xListener"
                       type name: "com/sun/star/awt/XMouseListener"
                   exception count: 0
               method 13:
documentation: "adds a mouse motion listener to the object."
                   flags: oneway
                   name: "addMouseMotionListener"
                   return type name: "void"
                   parameter count: 1
                   parameter 0:
                       flags: in
                       name: "xListener"
                       type name: "com/sun/star/awt/XMouseMotionListener"
                   exception count: 0
               method 14:
documentation: "removes the specified mouse motion listener from the listener list."
                   flags: oneway
                   name: "removeMouseMotionListener"
                   return type name: "void"
                   parameter count: 1
                   parameter 0:
                       flags: in
                       name: "xListener"
                       type name: "com/sun/star/awt/XMouseMotionListener"
                   exception count: 0
               method 15:
                   documentation: "adds a paint listener to the object."
                   flags: oneway
                   name: "addPaintListener"
                   return type name: "void"
                   parameter count: 1
                   parameter 0:
                       flags: in
                       name: "xListener"
                       type name: "com/sun/star/awt/XPaintListener"
                   exception count: 0
               method 16:
documentation: "removes the specified paint listener from the listener list."
                   flags: oneway
                   name: "removePaintListener"
                   return type name: "void"
                   parameter count: 1
                   parameter 0:
                       flags: in
                       name: "xListener"
                       type name: "com/sun/star/awt/XPaintListener"
                   exception count: 0
               reference count: 0


******************************************************************************************

If you get errors, may be your installation does not have these registry
databases.

Regards
Ariel.



--
Ariel Constenla-Haile
La Plata, Argentina

[EMAIL PROTECTED]
http://www.ArielConstenlaHaile.com.ar/ooo/



"Aus der Kriegsschule des Lebens
                - Was mich nicht umbringt,
        macht mich härter."
                Nietzsche Götzendämmerung, Sprüche und Pfeile, 8.



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

Reply via email to