[api-dev] Bootstrapping multiple OOo Versions
Hi together, I have different OOo versions installed to test my little cute programm using Java and UNO. One is my Debian default OOo in /usr/lib/openoffice, the others are the OOo deb packages in /opt/openofficeX.X. How can I tell my little program, to use an different OOo? I added the loader classes to my jar and a manifest file looking like this: -% Main-Class: com.sun.star.lib.loader.Loader Name: com/sun/star/lib/loader/Loader.class Application-Class: de.twc.oocom.OOCom Application-Name: de/twc/oocom/OOCom.class -%- Please give me any hints. Greetings, Tobias - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Bootstrapping multiple OOo Versions
Hi Tobias I have different OOo versions installed to test my little cute programm using Java and UNO. One is my Debian default OOo in /usr/lib/openoffice, the others are the OOo deb packages in /opt/openofficeX.X. How can I tell my little program, to use an different OOo? I added the loader classes to my jar and a manifest file looking like this: -% Main-Class: com.sun.star.lib.loader.Loader Name: com/sun/star/lib/loader/Loader.class Application-Class: de.twc.oocom.OOCom Application-Name: de/twc/oocom/OOCom.class -%- Setting the environments variables $OO_SDK_HOME and $OFFICE_HOME should hopefully work. Arthur - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] [SOLVED] Bootstrapping multiple OOo Versions
Hi Arthur, I added the loader classes to my jar and a manifest file looking like this: -% Main-Class: com.sun.star.lib.loader.Loader Name: com/sun/star/lib/loader/Loader.class Application-Class: de.twc.oocom.OOCom Application-Name: de/twc/oocom/OOCom.class -%- Setting the environments variables $OO_SDK_HOME and $OFFICE_HOME should hopefully work. it does. Formerly I tried: -%- /usr/lib/j2se/1.4/bin/java -classpath /opt/openoffice.org2.1/program:/opt/openoffice.org2.1/program/classes/juh.jar:/opt/openoffice.org2.1/program/classes/jurt.jar:/opt/openoffice.org2.1/program/classes/ridl.jar:/opt/openoffice.org2.1/program/classes/unoil.jar -jar /home/tobias/Desktop/TWC/Programmierung/Ergebnisse/oocom-ng.jar ... -%- but that did not work out. Here how it works out: -%- [EMAIL PROTECTED]:~/downloads/DEBS$ /usr/lib/j2se/1.4/bin/java -classpath /home/tobias/Desktop/TWC/Programmierung/Ergebnisse/oocom-ng.jar:/opt/openoffice.org2.1/program:/opt/openoffice.org2.1/program/classes/juh.jar:/opt/openoffice.org2.1/program/classes/jurt.jar:/opt/openoffice.org2.1/program/classes/ridl.jar:/opt/openoffice.org2.1/program/classes/unoil.jar de.twc.oocom.OOCom -%- This is how it works out. Without using the -jar option the METAFILE informations are ignored and thus my class detects the correct class path I want to use. Thanks for your help. Greetings, Tobias - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] Bootstrapping multiple OOo Versions
Hi Jürgen, A working manifest should be: Main-Class: com.sun.star.lib.loader.Loader Name: com/sun/star/lib/loader/Loader.class Application-Class: de.twc.oocom.OOCom With the Java property -Dcom.sun.star.lib.loader.unopath=path_to_office_program_dir can you specify an office installation that you would prefer. Otherwise the default office is used. I hoped for an answer like that. This works smooth and perfect. Thank you Jürgen! Greetings, Tobias - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] How to redraw form controls in a writer document ...
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, How exactly does does not work look like? Does it blow up your machine, or simply give an error in some line? If the latter, in which? i tried with oControl.getPeer().invalidate(1) different flags, but the control is not updated to the correct model state ... only changing to printpreview (and back) updates the control to the correct model state ... BTW: this only happens, if i load the document through an external program, which opens a dialog directly after the loading process ... maybe it blocks the correct update process ... i will have a look ... Oliver - -- GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFfuz1TiyrQM/QSkURAr+TAJ46QQXIs8i03W6/UFd+QQePCow+VACfXxpB oxNTAm0y8vJtCbwAnSgkrwU= =pKEq -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] How to redraw form controls in a writer document ...
Hi Oliver, i tried with oControl.getPeer().invalidate(1) different flags, but the control is not updated to the correct model state ... only changing to printpreview (and back) updates the control to the correct model state ... Hmm, this might suggest that in fact the control is still disabled, instead of having a repaint problem. What does MsgBox oControl.getPeer().getProperty( Enabled ) give you? Alternatively, try (yes, it'd be a hack) oControl.getPeer().setProperty( Enabled, FALSE ) oControl.getPeer().setProperty( Enabled, TRUE ) Ciao Frank -- - Frank Schönheit, Software Engineer [EMAIL PROTECTED] - - Sun Microsystems http://www.sun.com/staroffice - - OpenOffice.org Database http://dba.openoffice.org - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[api-dev] multiple independant instances
Hi everybody I made a DocumentConverter application in java (based on SDK examples). I have a bi-proc computer and when I tested to run 2 convertions at the same time (to see if I get any advantages from the bi-proc), I can see 2 soffice instances but the second job begins only after the first job has finished. soffice seems to run in singleton? Is it possible to have multiple independant instances of soffice ? thx in advance -- Sébastien Salou - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[api-dev] Create simple toolbar in basic
What are the basic steps to create a simple toolbar in basic? Assume, for example, that I desire a toolbar associated with Writer documents that supports commands such as next page, previous page, document start, etc... Must I create an addon? I assume no. If I wanted the toolbar in a specific document, I assume that I can use the documents configuration manager to create and then store the toolbar. For all Writer documents, however, I am guessing that I need to use the ConfigurationProvider service, but this is only a guess. My next guess is the layout manager, but that just seems wrong. I would love to see a simple example in Basic. -- Andrew Pitonyak My Macro Document: http://www.pitonyak.org/AndrewMacro.odt My Book: http://www.hentzenwerke.com/catalog/oome.htm Info: http://www.pitonyak.org/oo.php See Also: http://documentation.openoffice.org/HOW_TO/index.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]