Hi Dietmar,

Dietmar Hiller escribió:
Hi,

just to conclude the topic:
Am Montag, den 14.01.2008, 21:04 +0100 schrieb Dietmar Hiller:
Hi Ariel,

Am Montag, den 14.01.2008, 02:50 -0300 schrieb Ariel Constenla-Haile:
Hi Dietmar, ...
Dietmar Hiller escribió: ...
While trying to implement the Dialog, I keep getting the
following error:

com.sun.star.lang.IllegalArgumentException:
DialogProviderImpl::getDialogModel: failed to parse URI:
...
are you sure the URL is correct? Try XSimpleFileAccess.exists() to see
if the file really exists before you try to create the dialog from this
URL (as you are passing an URL, not a vnd.sun.star.script:*).

I can not imagine other thing.
Thanks to XSimpleFileAccess.exists() I am now sure, that the URL is
correct (it returned true).
...

So finally it turned out to be caused by the fact, that I have been
using SDK 2.3 and OOo 2.2. After upgrading to OOo 2.3.1 the dialog pops
up.

nice to hear it ended up well!

Well, in the meantime I had a try with jColorChooser (since this is what
the dialog is supposed to do), but since I am not able to get it running
with gij (OpenSource Java used by Ubuntu), I will try to continue making
a color selection dialog with the OOo API myself.

I was doing the same thing: "copying" the OOo's color chooser in Java, but now that I'm in C++ I thought about wrapping the C++ implementation, or just linking againgst it, or using XUnoTunel...

I suggest you to get inspired by the aggregate components in OOo_SRC/wizards/com/sun/star/wizards/ui

It's all Java using UNO AWT toolkit. Sure you'll find good ideas.

Regards
Ariel.



--
Ariel Constenla-Haile
La Plata, Argentina

[EMAIL PROTECTED]
[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