Hi,

Frank Schönheit - Sun Microsystems Germany escribió:
Hi Ariel,

done:

http://www.openoffice.org/issues/show_bug.cgi?id=85298

Thanks. I added my sermon to it - it's nothing I can fix, I think this
is a conceptual problem you pointed out.

well, thanks for checking it.
And now that you have become a Scripting-Framework-expert, I'd like your 
opinion on this thing I discovered yesterday when answering a question on the 
Spanish users mailing list: testing docs.
http://www.arielconstenlahaile.com.ar/ooo/temp/Test_IMPORT_EXPORT_DLG.zip

you can export a Basic Dialog by saving it using the toolbar button. Importing 
is not that straight-forward: you have to create a dialog.xlb including this 
dialog as library element.

The problem is that if you only create a dialog.xlb, the dialog gets imported, but it 
turns into a "ghost"-dialog: you can edit it, but you don't see it in the Macro 
Organizer.

To avoid this, you have to create also a basic.xlb adding the dialog name as 
element.

Is this normal? If you do so, an empty Basic library is created, while in the 
GUI you can create a library with only dialogs and no Basic library at all. Is 
this an issue?

Here it was my mistake: the script.xlb must be empty (== with no
element), it only must have in library:name the same name as in the dialog.xlb, for example:

<?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:readonly="false" library:passwordprotected="false"
library:name="Library_Name_WITH_script_xlb"/>

This will import Library_Name_WITH_script_xlb without creating an empty
Basic library.


Nevertheless, if you forget the script.xlb, and use only a dialog.xlb,
the "ghost"-dialog gets imported without any warning at all, but then you won't see it in the Macro Organizer/ the Objects navigator .

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