Re: [api-dev] Multiple instances / creating user installations

2006-11-14 Thread Stephan Bergmann
Tobias Krais wrote: Good morning Kai, As you wrote the non-GUI use case is neglected in your argumentation. In my opinion, there should be a solution for this use case, too. What do you suggest? Good question. My aim is, to allow bootstrapping a completly new installed OOo, without any

Re: [api-dev] Dispatching Macro URL from Java Addon?

2006-11-14 Thread Jimmy
I've tried what you recommended but couldn't get it to work. The dispatch seems to work and I don't get any errors or exceptions but the Macro doesn't get called somehow... My java class implements XDispatchProvider and XDispatch. Inside my dispatch(...) I call the macro if the user has

Re: [api-dev] Multiple instances / creating user installations

2006-11-14 Thread Tobias Krais
Hi Stephan, May be someone knows even a third solution. Kai, what do you think about it? In my opinion this boils down to a more flexible bootstrap process (e.g., more flexibility in passing specific command line args to soffice), as I already outlined in my Additional comments from sb Wed

Re: [api-dev] Multiple instances / creating user installations

2006-11-14 Thread Kay Ramme - Sun Germany - Hamburg
Stephan et al., we obviously need a solution to the requested points, -1- accessing OOo via the API only, the first start of the office should happen _without_ showing the wizard, -2- kind of headless mode when accessing OOo per API only, -3- accessing OOo via GUI, the first start of the

Re: [api-dev] Multiple instances / creating user installations

2006-11-14 Thread Kai Sommerfeld
Hi all, Stephan Bergmann wrote: Tobias Krais wrote: Good morning Kai, As you wrote the non-GUI use case is neglected in your argumentation. In my opinion, there should be a solution for this use case, too. What do you suggest? Good question. My aim is, to allow bootstrapping a

Re: [api-dev] UNO Component Bootstrap

2006-11-14 Thread Juergen Schmidt
Tabish F. Mufti wrote: Create a JAR package and make a desktop icon with a commandline like this: java -jar myjar.jar The ant script file will be inside the JAR ? Right now I type ant run to run my java code. You are saying that by making a jar which will have the ant file inside it the ant

[api-dev] error in Javamaker

2006-11-14 Thread ruby peter
Hi, I've just started programing in openoffice and I have a problem. When I try to execute javamaker -BUCR -nD -Tcom.sun.star.ex .comp.XSentence C:\Program Files\OpenOffice.org 2.0\program\types.rdb ex_comp. rdb .Then it shows this error message. javamaker : init registries failed, check your

Re: [api-dev] NetBeans Integration

2006-11-14 Thread Juergen Schmidt
Steffen Grund wrote: Hi there, thank you for being interested in the NetBeans integration. You can checkout the sources from api/oonetbeansintegration/ooextensions. What you get is a NetBeans project, which can be build and debugged with NetBeans. But keep in mind that what you check out is

Re: [api-dev] Dispatching Macro URL from Java Addon?

2006-11-14 Thread Carsten Driesner
Jimmy wrote: I've tried what you recommended but couldn't get it to work. The dispatch seems to work and I don't get any errors or exceptions but the Macro doesn't get called somehow... My java class implements XDispatchProvider and XDispatch. Inside my dispatch(...) I call the macro if the

Re: [api-dev] Problems with User text fields

2006-11-14 Thread Juergen Schmidt
Hi Cedric, Cedric Bosdonnat wrote: Hi all, I'm developping a macro using and updating User Text fields in a document template. I have two options to create the document: 1 - File New Documents and Templates 2 - loadComponentURL() The macro is executed at the document creation. When

[api-dev] Reminder Code Snippet Base

2006-11-14 Thread Juergen Schmidt
Hi API community, in the last days (weeks) i have seen a lot of useful code snippets (http://codesnippets.services.openoffice.org/) on the list and i would like to remind that we have the really useful code snippet base for this stuff. Maybe some of you find the time to put the question and

Re: [api-dev] printing current sheet

2006-11-14 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Marc, You can't, OO.o does not allow to do so. This should be worth an RFE (if not already written). would be nice if someone will vote for my rfe ... :-) http://qa.openoffice.org/issues/show_bug.cgi?id=10658 Oliver - -- GnuPG key

Re: [api-dev] Server inside a Protocol Handler

2006-11-14 Thread Tabish F. Mufti
Yes; that's possible. You need: a) a singleton UNO service implementing your server b) a multi UNO service as ProtocolHandler What's happen then ? Every times you click into the menu/toolbar a new instance of your ProtocolHandler will be created. These ProtocolHandler internaly will

[api-dev] Creating a Singleton Service

2006-11-14 Thread Tabish F. Mufti
I have Sentence.idl: module com { module sun { module star { module ex { module comp { service Sentence { interface com::sun::star::ex::comp::XSentence; }; singleton theSentence { service com::sun::star::ex::comp::Sentence; }; }; }; }; }; }; and XSentence.idl: module com { module sun

Re: [api-dev] printing current sheet

2006-11-14 Thread Marc Santhoff
Am Dienstag, den 14.11.2006, 18:35 +0100 schrieb Oliver Brinzing: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Marc, You can't, OO.o does not allow to do so. This should be worth an RFE (if not already written). would be nice if someone will vote for my rfe ... :-)