Re: [api-dev] officebean : NoRestore Property and document Recovery

2007-01-08 Thread Andreas Schlüns
news.gmane.org schrieb: Hello, I'm using the OfficeBean in a java project in windows, and I'd like to disable document recovery after a crash for some documents. I've tried to use the NoRestore Property, with no success. If I close the application after loading the document, and then I

Re: [api-dev] Protocol handler and Thread.sleep()

2007-01-08 Thread Andreas Schlüns
Tobias Krais schrieb: Hi together again, I implemented a protocol handler for the CommandURL .Judas:PrintTrays. The target of this new protocol is to print a document on different printer trays (page one on tray with letter paper, the others on the tray with normal paper). After sending the

Re: [api-dev] get the currently selected shaoe from impress

2007-01-08 Thread Madhan Ponnusamy
yes, I queryed with xshapes and used getbyindex method its working fine...now the problem is on click of the shape iam calling macro which should find which shape is clicked..for this getting the selected shape is not working correctly...so is there any other(interfaces) way to find which shape

Re: [api-dev] get the currently selected shaoe from impress

2007-01-08 Thread Stephan Wunderlich
Hi there, yes, I queryed with xshapes and used getbyindex method its working fine...now the problem is on click of the shape iam calling macro which should find which shape is clicked..for this getting the selected shape is not working correctly...so is there any other(interfaces) way to

Re: [api-dev] get the currently selected shaoe from impress

2007-01-08 Thread Madhan Ponnusamy
Hi Stephan, getSelection is working correctly...that is not the problem..i am clearly descriping the scenario here i had inserted a shape inside impress document and made interaction(Onclick) of the shape to call a macro. this macro contains the code to get the currently selected shape. So if i

Re: [api-dev] ImageButton control: SetImage broken?

2007-01-08 Thread Carsten Driesner
Alexej Kryukov wrote: Hi Carsten and others, I am experimenting with complex toolbar controls for my add-on package. I would like to indicate the state of my application by setting different images for an ImageButton control. Unfortunately, sending the SetImage command to the control produces

Re: [api-dev] get the currently selected shaoe from impress

2007-01-08 Thread Madhan Ponnusamy
Hi Stephan, whether the getselection works when the shape is clicked during slide show..i.e) when the shape is linked to macro and working fine in normal impress document..when the slideshow is started is that possible to get current documents and shape selected. On 1/8/07, Stephan Wunderlich

Re: [api-dev] get the currently selected shaoe from impress

2007-01-08 Thread Stephan Wunderlich
whether the getselection works when the shape is clicked during slide show..i.e) when the shape is linked to macro and working fine in normal impress document..when the slideshow is started is that possible to get current documents and shape selected. in presentation view nothing is

Re: [api-dev] Addon: Menu item has an icon, but not toolbar item

2007-01-08 Thread Carsten Driesner
Tobias Krais wrote: Hi together, one more question. At the moment I am finalizing my component. Now I added a Submenu to the Extras - Add-ons menu and my icons are shown,... Everything works. Now I add transient via Java API an menu item. The corresponding icon and the text are shown. But

Re: [api-dev] Addon: Menu item has an icon, but not toolbar item

2007-01-08 Thread Carsten Driesner
Tobias Krais wrote: Hi together, one more question. At the moment I am finalizing my component. Now I added a Submenu to the Extras - Add-ons menu and my icons are shown,... Everything works. Now I add transient via Java API an menu item. The corresponding icon and the text are shown. But

[api-dev] document.Settings: how to set PrinterIndependentLayout?

2007-01-08 Thread Arthur
Hi all I seem to have gone temporarily blind, but I can't figure out how to set the PrinterIndependentLayout property as described under http://api.openoffice.org/docs/common/ref/com/sun/star/document/Settings.html#PrinterIndependentLayout I'm using the Java API. Thanks and regards Arthur

Re: [api-dev] document.Settings: how to set PrinterIndependentLayout?

2007-01-08 Thread Stephan Wunderlich
Hi Arthur, I seem to have gone temporarily blind, but I can't figure out how to set the PrinterIndependentLayout property as described under http://api.openoffice.org/docs/common/ref/com/sun/star/document/ Settings.html#PrinterIndependentLayout you can query the interface

Re: [api-dev] Protocol handler and Thread.sleep()

2007-01-08 Thread Mathias Bauer
Tobias Krais wrote: Hi together again, I implemented a protocol handler for the CommandURL .Judas:PrintTrays. The target of this new protocol is to print a document on different printer trays (page one on tray with letter paper, the others on the tray with normal paper). After sending the

Re: [api-dev] How to react to a mouse event in calc?

2007-01-08 Thread Mathias Bauer
Stefan Weigel wrote: Hi all, I would like to be able to start some macro when the user clicks a cell in calc. Could someone give me a hint, how to create a listener for a kind of a MouseUp event? I have already working a ModyfyListener like that: ... oListener = CreateUnoListener(

Re: [api-dev] How to react to a mouse event in calc?

2007-01-08 Thread Niklas Nebel
Mathias Bauer wrote: You can try to use the com.sun.star.awt.UserInputInteraction interface that is available at the Controller object of a Calc document window. The problem here might be that this interface only notifies that a mouse click has happened anywhere inside the window, you still must

Re: [api-dev] Protocol handler and Thread.sleep()

2007-01-08 Thread Tobias Krais
Hi Matthias, Mathias Bauer schrieb: Tobias Krais wrote: Hi together again, I implemented a protocol handler for the CommandURL .Judas:PrintTrays. The target of this new protocol is to print a document on different printer trays (page one on tray with letter paper, the others on the tray

[api-dev] argument passing to macros

2007-01-08 Thread Madhan Ponnusamy
Hi, I had seen in openoffice document that arguments can be passed to the macros... is this the way to declare a macro which can accept arguments. import com.sun.star.script.provider.XScriptContext; public class test { public void testarguments(XScriptContext xSc,Object[] args) { } } also