[api-dev] Overwrite property when exporting to HTML partly ignored?

2008-12-11 Thread Tobias Krais
Hi together, I am exporting e.g. a presentation document to HTML via API. I set the Overwrite property. The HTML export consists of several files. The main file (presentation.html) is really overwritten while other files (text0.html and img0.jpg) are not overwritten. Instead a message appears that

Re: [api-dev] Netbeans OOo Plugin 2.0: How to add custom files for an option dialog to an add-on project?

2008-12-11 Thread Benjamin Vollmer
Hello, Ariel Constenla-Haile wrote: I send a NB project to your mail (you may have to correct the library dependency, as I'm working on a OOo 3.1). Thanks Ariel. I finally get it to work. My Conclusion: Only with the informations from dev guide it is impossible to implement an extension

Re: [api-dev] Netbeans OOo Plugin 2.0: How to add custom files for an option dialog to an add-on project?

2008-12-11 Thread Christian Lins
On 12/11/08 11:43, Benjamin Vollmer wrote: - I didn't understand that the main class from the nb addon project must implement the XContainerWindowEventHandler interface. I used a seperate class for this because in the dev guide it seems to be also a standalone class, but this class was never i

Re: [api-dev] Netbeans OOo Plugin 2.0: How to add custom files for an option dialog to an add-on project?

2008-12-11 Thread Benjamin Vollmer
Hi, Christian Lins wrote: On 12/11/08 11:43, Benjamin Vollmer wrote: - Jürgen said it make sense to use a folder structure like "/registry/data/org/openoffice/Office/" for the data-configuration files. But my experience is that for the OptionsDialog.xcu this doesn't work. The refered .xdl D

Re: [api-dev] Netbeans OOo Plugin 2.0: How to add custom files for an option dialog to an add-on project?

2008-12-11 Thread Steff Grund
Hello, this works for me: > > %origin%/../../../../../dialogs/Leaf.xdl > Regards, Steffen Benjamin Vollmer wrote: Hi, Ok, let us take my example. OptionsDialog.xcu is stored under "/registry/data/org/openoffice/Office/" and the option dialog file is stored under "/dialogs/". How should

Re: [api-dev] Netbeans OOo Plugin 2.0: How to add custom files for an option dialog to an add-on project?

2008-12-11 Thread Christian Lins
On 12/11/08 14:06, Benjamin Vollmer wrote: [snip] Probably a referencing problem. Did you use %origin% to specify the location of the xdl file? Please note that %origin% is relative to the referencing xcu file! Ok, let us take my example. OptionsDialog.xcu is stored under "/registry/data/org/op

Re: [api-dev] Netbeans OOo Plugin 2.0: How to add custom files for an option dialog to an add-on project?

2008-12-11 Thread Juergen Schmidt
Benjamin Vollmer wrote: Hello, Ariel Constenla-Haile wrote: I send a NB project to your mail (you may have to correct the library dependency, as I'm working on a OOo 3.1). Thanks Ariel. I finally get it to work. My Conclusion: Only with the informations from dev guide it is impossible to

[api-dev] Usage of UNO_QUERY_THROW

2008-12-11 Thread Daniel Rentz
Hi, does the following snippet throw an exception? uno::Reference< XSomething > xS1; uno::Reference< XSomething > xS2( xS1, uno::UNO_QUERY_THROW ); Here, xS2 querries the same interface type from xS1. The intention is to check that xS1 is not null. Daniel ---

Re: [api-dev] Usage of UNO_QUERY_THROW

2008-12-11 Thread Daniel Rentz
Daniel Rentz schrieb: Hi, does the following snippet throw an exception? uno::Reference< XSomething > xS1; uno::Reference< XSomething > xS2( xS1, uno::UNO_QUERY_THROW ); Here, xS2 querries the same interface type from xS1. The intention is to check that xS1 is not null. Ah, by studying t

Re: [api-dev] Usage of UNO_QUERY_THROW

2008-12-11 Thread Frank Schönheit - Sun Microsystems Germany
Hi Daniel, > Ah, by studying the sources, I learned that it should be > > uno::Reference< XSomething > xS2( xS1, uno::UNO_SET_THROW ); > > Right? Right. Ciao Frank -- - Frank Schönheit, Software Engineer frank.schoenh...@sun.com - - Sun Microsystems http://www.su