Re: [api-dev] Zooming ti given range in Calc (with macro)

2006-09-21 Thread Niklas Nebel
Bart Aimar wrote: I need to make full the screen (i.e. OO CAlc window) with a given range. In other word, I need to zooming (with macro) in manner that a given range fill the OO window. Select the range in the view, and then set the property ZoomType to OPTIMAL: oView.select(oRange)

[api-dev] XDispatchProvider implementation

2006-09-21 Thread Jimmy
I already had an XDispatchProvider implementation for my Java component which worked. Now I'm trying to move the DispatchProvider/Dispatch into its own class instead of implementing it in the root class Editor (the one with WeakBase, XServiceInfo). So all I did was create a new class and copy

[api-dev] Disable navigator (OOoBean, OpenOffice 2.0.3)

2006-09-21 Thread Harald Weyhing
Hi all, I need to disable the navigator what can be done easily for menus, toolbars and F5 by modifying the user configuration. Actually double click on the page number in the status bar also starts up the navigator. I tried to intercept .uno:navigator but that does not help in this case.

Re: [api-dev] Zooming ti given range in Calc (with macro)

2006-09-21 Thread Bart Aimar
Niklas Nebel ha scritto: Bart Aimar wrote: I need to make full the screen (i.e. OO CAlc window) with a given range. In other word, I need to zooming (with macro) in manner that a given range fill the OO window. Select the range in the view, and then set the property ZoomType to OPTIMAL:

[api-dev] problems reading xml file with com.sun.star.xml.dom.DocumentBuilder

2006-09-21 Thread Christian Andersson
I have a small problem, In starbasic I'm using (almost) the following code (there might be small mistakes sicne I'm writing this from memory) to read and parse an xml document with starbasic oSFA = createUNOService (com.sun.star.ucb.SimpleFileAccess) oInpStream =

Re: [api-dev] problems reading xml file with com.sun.star.xml.dom.DocumentBuilder

2006-09-21 Thread Christoph Jopp
Kjære Christian, for meg følgende code virker: oSFA = createUNOService (com.sun.star.ucb.SimpleFileAccess) oInpStream = oSFA.openFileRead(sUrl) oTextInpStream = createUnoService(com.sun.star.io.TextInputStream) oTextInpStream.setInputStream(oInpStream)

Re: [api-dev] XDispatchProvider implementation

2006-09-21 Thread Mathias Bauer
Jimmy wrote: I already had an XDispatchProvider implementation for my Java component which worked. Now I'm trying to move the DispatchProvider/Dispatch into its own class instead of implementing it in the root class Editor (the one with WeakBase, XServiceInfo). So all I did was create a

Re: [api-dev] Disable navigator (OOoBean, OpenOffice 2.0.3)

2006-09-21 Thread Mathias Bauer
Harald Weyhing wrote: Hi all, I need to disable the navigator what can be done easily for menus, toolbars and F5 by modifying the user configuration. Actually double click on the page number in the status bar also starts up the navigator. I tried to intercept .uno:navigator but that does

Re: [api-dev] problems reading xml file with c

2006-09-21 Thread Christoph Jopp
One thing I forgot to mention: Be aware that your code uses the com.sun.star.xml.dom.XDocumentBuilder Interface and that is signed 'unpublished' in the IDL reference. Which means you can't rely on it in future versions. It might be changed or replaced or something like that. Christian Andersson