Hi Felix,
The author of the dialogdump tool will investigate the problem when he
has time, but currently he is very busy so we should proceed further.
First of all please change the basic dialog so that the help, cancel and
ok buttons do not have any text ( Label property in the dialog editor ).
Instead of that they should have the related type ( Button type in the
dialog editor ).
After that please let the dialogdump generate the output without using
the file ( as you did already ). The output contains contents of the
.hrc and .src files. Additionally it contains the beginning of the .hxx
file ( the exception will have to be filtered out :) ). Having this
files you can try to create the implementation of the dialog.
A number of examples of such implementation can be found in uui project
( they are represented by four files ".hrc, .src, .hxx, .cxx" with the
same prefix.
I do not know any documentation regarding the creation of such dialogs,
so please ask questions based on the examples.
Best Regards,
Mikhail.
Zhang Xiaofei wrote:
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]
------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]