Hallo all, I've created an UNO package and it contains set of things like images, dialogs and protocol handler.
I took the getDialog() function from the 'Scripting Framework' chapter to emulate BASIC's CreateUnoDialog() function. When I try to execute Euro.DlgConvert dialog, it works (?location=application is used). But when I try to execute dialog from the same UNO package XDialogProvider.createDialog(dialogURL) throws java.lang.reflect. \ UndeclaredThrowableException. dialogURL is 'vnd.sun.star.script:name.vojta.openoffice.csext. \ WaveletWizard?location=application'. When I try different location, library container not found error message appears. The dialog WaveletWizard is visible in the Tools - Macros - Organize dialogs window (My Dialogs section). I can 'edit' this dialog (read-only) and the look is ok. My UNO package contains two files representing my dialog. One is dialog.xlb: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE library:library PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "library.dtd"> <library:library xmlns:library="http://openoffice.org/2000/library" library:name="name.vojta.openoffice.csext" library:readonly="true" library:passwordprotected="false"> <library:element library:name="WaveletWizard"/> </library:library> And the second one is WaveletWizard.xdl: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE dlg:window PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "dialog.dtd"> <dlg:window xmlns:dlg="http://openoffice.org/2000/dialog" xmlns:script="http://openoffice.org/2000/script" dlg:id="WaveletWizard" dlg:left="112" dlg:top="119" dlg:width="257" dlg:height="124" dlg:page="2" dlg:closeable="true" dlg:moveable="true" dlg:title="Vlnka"> ... Anyone know where can be a problem? I can't use dialogs from the same UNO package? I can't use XDialogProvider.createDialog in the dispatch() function of the protocol handler? Or ...? Best regards, Robert -- Robert Vojta http://blog.vojta.name/ "Absolutely nothing should be concluded from these figures except that no conclusion can be drawn from them." (By Joseph L. Brothers, Linux/PowerPC Project) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
