[api-dev] inserting character at cursor using a Calc macro

2008-02-07 Thread Jonathan Kaye
Hi all, I am making slow progress on understanding the ins and outs of OOo Basic. I have written the following macro which seems to work: Code: Sub oe ' Appends the character œ at the end of selected cell Dim oDoc As Object Dim oCell As Object Dim oSheet As Object Dim here As Object oDoc = ThisCom

Re: [api-dev] Error message trying to bootstrap OpenOffcie

2008-02-07 Thread Juergen Schmidt
Hi Wouter, i would suggest that you use our NetBeans plugin and create a UNO client application. build it and take a look into the generated jar file. You will notice some glue code (coming with the SDK) and the manifest entries Tobias has already described. It can be really easy as long as

Re: [api-dev] [C++] scalc cell "SetOptimalColumnWidth"

2008-02-07 Thread Ariel Constenla-Haile
Hello Andre, Andre Heine escribió: Hello all, in oobasic can I set the "SetOptimalColumnWidth" on selected cells/columns. I guess you were using the dispatch with the command URL ".uno:SetOptimalColumnWidth", because there is no method named setOptimalColumnWidth(). In fact there is the pr

Re: [api-dev] [C++] scalc cell "SetOptimalColumnWidth"

2008-02-07 Thread Ariel Constenla-Haile
Hello Andre, Andre Heine escribió: Hello all, in oobasic can I set the "SetOptimalColumnWidth" on selected cells/columns. I guess you were using the dispatch with the command URL ".uno:SetOptimalColumnWidth", because there is no method named setOptimalColumnWidth(). In fact there is the p

[api-dev] [C++] scalc cell "SetOptimalColumnWidth"

2008-02-07 Thread Andre Heine
Hello all, in oobasic can I set the "SetOptimalColumnWidth" on selected cells/columns. Know someone the property name for the C++ API? Any hints? Thx and greetings... Andre - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [api-dev] SDK examples

2008-02-07 Thread Juergen Schmidt
Ariel Constenla-Haile wrote: Hi Jürgen, Juergen Schmidt escribió: [...] Some examples require a test document to be opened. [...] In the cases where the doc. has macros in it (for example DialogComponent [DevelopersGuide_examples/Components/DialogComponent], RuntimeDialogExecutor [DevelopersGui

Re: [api-dev] Error message trying to bootstrap OpenOffcie

2008-02-07 Thread Wouter van Reeven
Hi Tobias, Sorry to bother you again. I haven't created many jars outisde IDEs... On Thu, Feb 07, 2008 at 05:12:15PM +0100, Tobias Krais wrote: > Here is mine: > -%<- > Manifest-Version: 1.0 > Main-Class: com.sun.star.lib.loader.Loader > > Name: com/sun/star/lib/loader/Loader.class > Ap

Re: [api-dev] Using Loader with windows does not work

2008-02-07 Thread Juergen Schmidt
Hi Christian, Christian Walter wrote: Hello, i am trying to use UNO to extract Data from an CALC-Sheet. Since this program shall be used over Web-Start, I tried to use the Loader.java to get the installation path of OO (because this path of course differs from machine to machine). I got it t

Re: [api-dev] Error message trying to bootstrap OpenOffcie

2008-02-07 Thread Tobias Krais
Hi Wouter, > Next I create META-INF/MANIFEST.MF which contains this > > Main-Class: com.sun.star.lib.loader.Loader > Name: com/sun/star/lib/loader/Loader.class > Application-Class: nl.reeven.van.test.ooo.MyOOoBootstrapper > Application-Name: nl/reeven/van/test/ooo/MyOOoBootstrapper.class Here is

Re: [api-dev] Error message trying to bootstrap OpenOffcie

2008-02-07 Thread Wouter van Reeven
Hi Tobias, On Thu, Feb 07, 2008 at 12:25:21PM +0100, Tobias Krais wrote: > It works on Linux and Windows (not yet MacOS). All you need is a link to > the /usr/lib/openoffice/soffice in you path. I submitted a bug some time > ago against Debian and they added a link (/usr/bin/soffice) to solve the

Re: [api-dev] Error message trying to bootstrap OpenOffcie

2008-02-07 Thread Tobias Krais
Hi Wouter, >> why not using this: >> http://codesnippets.services.openoffice.org/Office/Office.BootstrapOpenOffice.snip > > Because I am not using Windows but Linux :-) Best choice. I use it, too. > This solution probably works in > Windows, since the registry is searched for the OOo installati

Re: [api-dev] Error message trying to bootstrap OpenOffcie

2008-02-07 Thread Wouter van Reeven
Hi again, On Thu, Feb 07, 2008 at 12:10:28PM +0100, To dev@api.openoffice.org wrote: > On Thu, Feb 07, 2008 at 12:05:56PM +0100, Tobias Krais wrote: > > why not using this: > > http://codesnippets.services.openoffice.org/Office/Office.BootstrapOpenOffice.snip > > Because I am not using Windows bu

Re: [api-dev] Error message trying to bootstrap OpenOffcie

2008-02-07 Thread Wouter van Reeven
Hi Tobias, On Thu, Feb 07, 2008 at 12:05:56PM +0100, Tobias Krais wrote: > why not using this: > http://codesnippets.services.openoffice.org/Office/Office.BootstrapOpenOffice.snip Because I am not using Windows but Linux :-) This solution probably works in Windows, since the registry is searched

Re: [api-dev] Error message trying to bootstrap OpenOffcie

2008-02-07 Thread Tobias Krais
Hi Wouter, why not using this: http://codesnippets.services.openoffice.org/Office/Office.BootstrapOpenOffice.snip Greetings, Tobias Wouter van Reeven schrieb: > Hi guys, > > > In the past I have been playing around with the OOo SDK trying to bootstrap > OOo > without knowing in advance what t

[api-dev] Error message trying to bootstrap OpenOffcie

2008-02-07 Thread Wouter van Reeven
Hi guys, In the past I have been playing around with the OOo SDK trying to bootstrap OOo without knowing in advance what the path to the OOo program directory is. I have written a few blogs about OOo and one of the questions I frequently get is how to do just that. People are very much interested

Re: [api-dev] Enabling a XButton

2008-02-07 Thread Tobias Krais
Hi again, > I use Java and I created a dialog with a disabled XButton. Because of > some user interaction I now want to enable this button. But I don't know > how to do this. Can somebody help me? I found a solution: -%<- XControlContainer xControlCont = ...; Object objectEditButton = xC

[api-dev] Enabling a XButton

2008-02-07 Thread Tobias Krais
Hi together, I use Java and I created a dialog with a disabled XButton. Because of some user interaction I now want to enable this button. But I don't know how to do this. Can somebody help me? Greetings, Tobias - To unsubscribe

Re: [api-dev] Using Loader with windows does not work

2008-02-07 Thread Stephan Bergmann
Christian Walter wrote: Hello, i am trying to use UNO to extract Data from an CALC-Sheet. Since this program shall be used over Web-Start, I tried to use the Loader.java to get the installation path of OO (because this path of course differs from machine to machine). I got it to work with Lin

Re: [api-dev] Using Loader with windows does not work

2008-02-07 Thread Tobias Krais
Hi Christian, > Can anyone help me how to solve this problem? Can I just somehow include this > unowinreg.dll somewhere within the program or is there another way to work > this out? try following the instructions of this OOo Snippet: http://codesnippets.services.openoffice.org/Office/Office.Bo