Re: [api-dev] Macro & ODB documents

2009-06-05 Thread Frank Schönheit - Sun Microsystems Germany
Hi Mathias, >> I still think that defining ThisComponent as "the component from which >> the macro was invoked" (as opposed to "the component which the macro is >> embedded into") was the better choice, and causes less hassle. Finally, >> this means that only newly written code needs to care for t

Re: [api-dev] Macro & ODB documents

2009-06-05 Thread Frank Schönheit - Sun Microsystems Germany
Hi Paolo, > Not necessarily the form designer has to be the same component used for > showing a runtime form instance (IMHO this should be an implementation > detail) > ... > Speaking of runtime forms, again I don't see the necessity for having > word processor capabilities (menu, toolbars, onl

Re: [api-dev] Macro & ODB documents

2009-06-05 Thread Frank Schönheit - Sun Microsystems Germany
Hi Paolo, > Regarding the ThisDatabaseDocument thing, I'm experimenting. > > The open() method is very simple and straightforward and I'm sure that > users will be very happy of it, but I noticed a possible problem. Not sure which open method you refer to, ThisDatabaseDocument doesn't have one.

[api-dev] Problems with clearContents in OO 3.1 (XP and W2K)

2009-06-05 Thread Bart Aimar
The classic method "clearContents" seems not work properly in OO 3.1 under windows XP and W2k. Here a simple test: http://aimar.mrjive.it/node/61 thank for attention Bart - To unsubscribe, e-mail: dev-unsubscr...@api.open

Re: [api-dev] Problems with clearContents in OO 3.1 (XP and W2K)

2009-06-05 Thread Thomas Krumbein
Hey Bart, Bart Aimar schrieb: > The classic method "clearContents" seems not work properly in OO 3.1 > under windows XP and W2k. Works well under Vista and OOo 3.1 :-) > Here a simple test: > > http://aimar.mrjive.it/node/61 > Regards Thomas ## Marketing deutschsprachiges Projekt ## http:/

Re: [api-dev] Problems with clearContents in OO 3.1 (XP and W2K)

2009-06-05 Thread Bart Aimar
Thomas Krumbein ha scritto: Hey Bart, Hai Thomas, Works well under Vista and OOo 3.1 :-) Yes, under Vista seems working properly... like under Linux. Bart - To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org For

Re: [api-dev] How to reload current opened document via API

2009-06-05 Thread bvollmer
Quoting Mathias Bauer : Benjamin Vollmer wrote: Hello, I work on an extension where in some cases the opened document is updated externally. So I have to reload my document. In a snippet I found this way: PropertyValue[] aLoadProps = new PropertyValue[0]; // reload current document xCompon

Re: [api-dev] How to reload current opened document via API

2009-06-05 Thread Mikhail Voytenko
Hi Benjamin, Sorry, but editing of a document is not allowed if it is already edited by the office. I assume that you could reach it since OOo3.0.x does not use system file locking, so the document file can be edited in parallel. This is actually the reason why OOo3.1 supports the system file

Re: [api-dev] Problems with clearContents in OO 3.1 (XP and W2K)

2009-06-05 Thread Niklas Nebel
On 06/05/09 11:39, Bart Aimar wrote: The classic method "clearContents" seems not work properly in OO 3.1 under windows XP and W2k. Here a simple test: http://aimar.mrjive.it/node/61 It's caused by issue 101869, related to the document content (formulas), not the clearContents API method i

Re: [api-dev] Macro & ODB documents

2009-06-05 Thread Fernand Vanrie
Hallo Frank , pronto Paolo Interesting discussion, I learned from my first real live frontend application to minimize the number of FORM and SUBFORMS and then using DIALOGS to pass data from or to the Tables. BTW: oController.loadComponent( "my form", com.sun.star.sdb.application.Databas

Re: [api-dev] Macro & ODB documents

2009-06-05 Thread Frank Schönheit
Hi Fernand, > BTW: oController.loadComponent( "my form", > com.sun.star.sdb.application.DatabaseObject.FORM,FALSE ) > do not works , must be: > oController.loadComponent(com.sun.star.sdb.application.DatabaseObject.FORM, > "my form",FALSE ) Uhm, sorry, and thanks for fixing it :) Ciao Frank

Re: [api-dev] Problems with clearContents in OO 3.1 (XP and W2K)

2009-06-05 Thread Bernard Marcelly
Message de Bart Aimar date 2009-06-05 12:20 : Thomas Krumbein ha scritto: Hey Bart, Hai Thomas, Works well under Vista and OOo 3.1 :-) Yes, under Vista seems working properly... like under Linux. Hi, I confirm on Windows XP, OOo 3.1.0 : - macro run on sheet 1 : OK - macro run on sheet 2

Re: [api-dev] Problems with clearContents in OO 3.1 (XP and W2K)

2009-06-05 Thread Bart Aimar
Niklas Nebel ha scritto: On 06/05/09 11:39, Bart Aimar wrote: The classic method "clearContents" seems not work properly in OO 3.1 under windows XP and W2k. Here a simple test: http://aimar.mrjive.it/node/61 It's caused by issue 101869, related to the document content (formulas), not the