Hi Cor,

Cor Nouws escribió:
[...]
@Cor: to see the glass half-full and not half-empty, reading the sources

filter/source/pdf/impdialog.hxx
filter/source/pdf/impdialog.cxx

I've found *all* the properties we can use with the filter.
[...]

Yes, I know I can set properties by code. I think it is my second best scenario: make a small dialog where users can choose the relevant options for their PDF export. Then I can show the export dialog where the users can start on a certain path and with a certain name. This is most important in this situation.
It's on my program for next week, BTW.

Let me investigate today a little more and I tell you tomorrow

Very friendly Ariel, but take into account that I can use the second best option.

the second best option is not that good, as there are 40 property
values, and making an OOo Basic copy of the dialog may take you a long time.

So a best option is to follow Christian's suggestion: in
http://www.ArielConstenlaHaile.com.ar/ooo/temp/PDFDialog_UNO.zip
there is a Java UNO component together with an ODT containing an
OOoBasic demo showing how to implement the "wrapper" from Basic.

For testing it, just install the extension. If you want to use it in
your own extension, just put the UNO component in the extension
directory and add the entry in the manifest (you can see the syntax in
the component's own manifest)

Answering to myself
So is the PDFDialog bad implemented? should it be implemented this way so that 
XPropertyAccess and XExporter are really implemented by the component (not only 
by the C++ class)

yes, it is bad implemented. And ::cppu::ImplInheritanceHelper2 solves
the problem.

As I also have a build environment I will try if using the template class ::cppu::ImplInheritanceHelper2 to implement the base class OGenericUnoDialog and the interfaces XPropertyAccess and XExporter solves the problem.

I have patched it, and build the module again, and now is working in OOo
Basic as expected.
It's nice this fix-it-yourself! I will see how hard is the
implement-it-yourself, and give it a try while I keep on studying the
sources.


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