Hi Mikhail,

Thank you for your reply on the unit tests. Currently I do need your help on a couple of questions.

With the basic dialog editor I have created a mock-up for Illustration 107 of the spec.(as EnterPassword.xdl in the attachment), checked out the awttools module, created the project for it and the building was without problems, but when I tried to run the dialogdump tool within NB IDE, with the argument "--file SOMEPATH Standard.EnterPassword", I got the following exceptions in NB's output window:
-----------------------------------------------------------
init:
deps-jar:
compile:
run:
info: connected to an office at localhost:8100
info: loaded dialog vnd.sun.star.script:Standard.EnterPassword?location=application ...
Exception in thread "main" java.lang.NullPointerException
at org.openoffice.dialogdump.target.vcl.Dialog.impl_dumpConstructorDeclarations(Dialog.java:285) at org.openoffice.dialogdump.target.vcl.Dialog.dumpDeclaration(Dialog.java:137) at org.openoffice.dialogdump.target.vcl.Generator.impl_dumpHXX(Generator.java:198) at org.openoffice.dialogdump.target.vcl.Generator.generateDump(Generator.java:96)
       at org.openoffice.dialogdump.Main.<init>(Main.java:65)
       at org.openoffice.dialogdump.Main.main(Main.java:79)
-----------------------------------------------------------
Could it be possible that has something to do with the current working directory? I used the default directory first, then changed it to "C:\Documents and Settings\MYOSUSERNAME\Application Data\OpenOffice.org2\user\basic\", neither worked however.

Another question is that I do not know how to generate the dialogdump executive. Using "javac -jar awttools.jar" in a console only shows the information in log in attachment. Could you give me some hints please?

By the way(though I probably won't take this approach), what steps should I take if I create the res. files manually? Could you direct me to an example please?


Thanks and Best Regards,
Felix.




Mikhail Voitenko
Hi Felix,

You are right, the only related to this issue section of the specification is 7.1.

So the first step is to create the new dialogs. You can try to create the dialogs using the basic dialog editor, and to convert them afterwards to the res files. That would probably simplify the creation.
Please read more about this possibility using the following link
http://wiki.services.openoffice.org/wiki/Dialog_Dump

Best regards,
Mikhail.


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

<?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="EnterPassword" dlg:left="145" dlg:top="80" dlg:width="148" dlg:height="121" dlg:closeable="true" dlg:moveable="true">
 <dlg:bulletinboard>
  <dlg:text dlg:id="Label1" dlg:tab-index="0" dlg:left="2" dlg:top="1" dlg:width="49" dlg:height="9" dlg:value="Enter password" dlg:tabstop="false"/>
  <dlg:textfield dlg:id="TextField1" dlg:tab-index="1" dlg:left="2" dlg:top="9" dlg:width="139" dlg:height="11"/>
  <dlg:textfield dlg:id="TextField2" dlg:tab-index="2" dlg:left="2" dlg:top="33" dlg:width="139" dlg:height="11"/>
  <dlg:text dlg:id="Label2" dlg:tab-index="3" dlg:left="2" dlg:top="22" dlg:width="55" dlg:height="9" dlg:value="Reenter password" dlg:tabstop="false"/>
  <dlg:text dlg:id="Label3" dlg:tab-index="4" dlg:left="2" dlg:top="46" dlg:width="139" dlg:height="34" dlg:value="WARNING: If you lose or forget the password, it cannot be recovered. It is advisable to keep passwords in a safe place. Passwords are case-sensitive." dlg:multiline="true"/>
  <dlg:fixedline dlg:id="FixedLine1" dlg:tab-index="5" dlg:left="-2" dlg:top="81" dlg:width="148" dlg:height="6"/>
  <dlg:button dlg:id="CommandButton1" dlg:tab-index="6" dlg:left="37" dlg:top="87" dlg:width="33" dlg:height="13" dlg:value="OK"/>
  <dlg:button dlg:id="CommandButton2" dlg:tab-index="7" dlg:left="73" dlg:top="87" dlg:width="33" dlg:height="13" dlg:value="Cancel"/>
  <dlg:button dlg:id="CommandButton3" dlg:tab-index="8" dlg:left="108" dlg:top="87" dlg:width="33" dlg:height="13" dlg:value="Help"/>
 </dlg:bulletinboard>
</dlg:window>
dialogdump - dump OpenOffice.org UNO dialogs in various formats

usage:
  dialogdump [switches] <dialog_name_1> [<dialog_name_2> [<dialog_name_3> ...]]
       connects to an OpenOffice.org listening at localhost:8100, and dumps the
       dialogs with the given names

  switches:
    --help
               display help on using the program

    --document <document>
               specifies a document to load the dialogs from
               (Note that currently, the document must be loaded in the
               OpenOffice.org instance you're connecting to.)

    --file <file>
               specifies the base name of the files to dump the dialogs
               into.

example:
  dialogdump --document c:\foo.odt --file c:\my_dialog Standard.MyDialog
    will dump the dialog with name 'Standard.MyDialog', contained in file
    'c:\foo.odt', to 'c:\my_dialog.*' (.hrc, .src, .hxx, .cxx).

There's a lot more settings you can tweak, but I didn't yet bother to allow
for them in the command line.

See the org.openoffice.dialogdump.Settings class for details, and change the
actual settings of your liking in Main.impl_loadSettings.

Alternatively, simply extend this program :) so it accepts more command-line
parameters.

Finally, see http://wiki.services.openoffice.org/wiki/Dialog_Dump for a more
extensive documentation for this tool.


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

Reply via email to