Jorge Marques Pelizzoni wrote:

Hi, all! Once Mathias Bauer wrote:


But why do you want to call Basic macros from C++? I would expect that
you instantiate your (IDE-designed) dialog from your C++ code (should be possible by some UNO calls) ...


Its is exactly those UNO calls that interest me. How can I (i) load/access Basic
libraries from an arbitrary UNO component, (ii) identify my dialog there and
finally instantiate it if I do not have e.g. CreateUnoDialog or DialogLibraries
outside Basic?

Thanks in advance. Cheers,

Jorge.

Especially for dialogs designed with the dialog
editor in the Basic IDE there's the
com.sun.star.awt.DialogProvider service available
(OOo 2.0 code line). The dialog can be created
with the createDialog() method and takes a
script URL as parameter.

If you want to load a dialog called 'MyDialog' in the
dialog library 'MyDialogLibrary' of the user/share
installation, the script URL would be:

"vnd.sun.star.script:MyDialogLibrary.MyDialog?location=application"

A dialog of the current document can be loaded by

"vnd.sun.star.script:MyDocumentLibrary.MyDocumentDialog?location=document"

Please note, that for dialogs in documents the XModel of
the current document must be passed as parameter when
instantiating the DialogProvider service.

See also section 18.3.4 of the developers guide, which contains
an example written in Java.

Thomas


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

Reply via email to