Re: [api-dev] soffice silently fails to start in headless mode

2009-04-06 Thread Christoph Lutz
Hi Devin, may be you have triggerd issue http://qa.openoffice.org/issues/show_bug.cgi?id=95496 does this also occure when you change the icon set to automatic (Extras-Options-Apparance-Icon set)? 2009/3/27 Devin Bayer o...@t-0.be: Hello. I just installed OOo 3.0.0, but I can't get soffice to

Re: [api-dev] save to image?

2009-01-15 Thread Christoph Lutz
Hi Albert, here in short the lines I used to export a picture from the current document. This only exports the current page of the document - other pages are ignored. dim exportArgs(1) as new com.sun.star.beans.PropertyValue exportArgs(0).Name = MediaType exportArgs(0).Value = image/png

[api-dev] veto on a saveAs-action using the document event OnSaveAs

2008-08-13 Thread Christoph Lutz
Hi, I want to veto on a saveAs-action using the document event OnSaveAs. The veto should be done only for specific target URLs (save-as filename), the user has chosen in the SaveAs-Dialog. But how do I get the URL of the save-target? The eventObject only contains the fields EventName and Source.

Re: [api-dev] veto on a saveAs-action using the document event OnSaveAs

2008-08-13 Thread Christoph Lutz
thanks, Frank for your statements! So I think the oly way to controll which files are saved by OOo is to override the dispatch-command that is used for SaveAs... In this case it is not possible to wait for OOo 3.x as my task is to write a interim solution for a better fileLocking for the OOo 2.x

Re: [api-dev] alternative for event onFirstVisibleTask

2008-07-15 Thread Christoph Lutz
Hi Daan, Hi Oliver, I tried the Jobs.xcu from my previous posting with OOo 3.1. Maybe the event o/OnStartApp only works since OOo 2.4. How is the eventname written? OnStartApp or onStartApp? A lower-case o would indicate that this event is triggered by code and should be documented in the section

Re: [api-dev] alternative for event onFirstVisibleTask

2008-07-15 Thread Christoph Lutz
We use OnStartApp (capital 'O') in the Jobs.xcu, I'm pretty sure it's not registered anywhere in code. Btw, we're using this event since 2.0.4. thanks, daan. So I will give it a try with OOo 3.1. regards, Christoph - To

[api-dev] alternative for event onFirstVisibleTask

2008-07-10 Thread Christoph Lutz
Hi, one event that could be used in Jobs.xcu is the event onFirstVisibleTask that is triggered for all visible tasks only. We currently use this event to initialize our WollMux (a custom uno-service, implemented in java). We now have the demand to proceess invisible documents, too. How can I

Re: [api-dev] alternative for event onFirstVisibleTask

2008-07-10 Thread Christoph Lutz
thanks daan for your answer, On Thu, Jul 10, 2008 at 11:44 AM, Daan de Wit [EMAIL PROTECTED] wrote: The OnStartApp event is fired when OOo starts. So all you need to do is change onFirstVisibleTask to OnStartApp. The event OnStartApp is an event of the GlobalDispatchProvider, but it is not an

Re: [api-dev] How to register a focusListener?

2008-01-17 Thread Christoph Lutz
Hi Mathias, They don't get called because the window usually never gets the focus. The focus is always transferred to one of the child windows of it. As the focus listener does not work recursively you must use another API for that: use the interfaces css.awt.XTopWindow of the

[api-dev] How to register a focusListener?

2008-01-14 Thread Christoph Lutz
Hi, I have to react on focus events that a writer-window (in the example the currentComponent) may fire. The followin snippet is one approach, but why do the methods focusLost(...) and focusGained(...) of my listener never get called when I switch between the window on which the listener has been

Re: [api-dev] CloseVetoException has no effect

2006-07-28 Thread Christoph Lutz
Hi Mathias, thanks for your explanation which made the things much clearer for me! Best regards, Christoph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[api-dev] CloseVetoException has no effect

2006-07-07 Thread Christoph Lutz
Hi, I would like to veto the close-action (clicking on the x in a writer document) in such a form, that the document doesn't get closed until my program decides when it's time to close the document. This should be possible by throwing a CloseVetoException in the queryClosing(...) handler when

[api-dev] [code snippet] Simple wrapper for uno-services

2005-06-12 Thread Christoph Lutz
keywordinformation/keyword /keywords authors author id=CL initial=true email=[EMAIL PROTECTED]Christoph Lutz/author /authors question heading=Simple wrapper for uno-servicesIs there a way to avoid all the UnoRuntime.queryInterface-calls pProgramming in Java is very uncomfortable. The Java-program is nearly

[api-dev] IDL for the TextDocument service

2005-05-03 Thread Christoph Lutz
Hi, Is there a reason why the service TextDocument doesn't support the interfaces XMultiServiceFactory and XScriptProviderSupplier *in the IDL*? Currently a TextDocument Service exports these interfaces, but that's not reflected by the IDL. best regards, Christoph

Re: [api-dev] How can I get the url of the currently opened document?

2005-03-10 Thread Christoph Lutz
)UnoRuntime.queryInterface(XPropertySet.class, document); String url = (String) documentProps.getPropertyValue(URL); (not tested...) http://api.openoffice.org/docs/DevelopersGuide/FirstSteps/FirstSteps.htm provides more information about this concept... regards, Christoph Lutz