[api-dev] About the character count of the selection

2009-04-20 Thread sundequan
Hi All In order to get the character count of the whole document, I can use "ThisComponent.CharacterCount". But How to get the character count of the selection? I have to use Len(thisComponent.getCurrentSelection().getByIndex(0).getString()), but the result is always different from what we g

Re: [api-dev] Calc add-in: Best practice for returning error information ?

2009-04-20 Thread Jan Holst Jensen
Niklas Nebel wrote: On 04/18/09 17:51, Jan Holst Jensen wrote: 1) Is there a way that I can provide additional error information to be shown in the status bar ? [The best option] 2) Should I fall back to defining all return types as "any" and then return error message strings in case of errors

Re: [api-dev] UNO Package

2009-04-20 Thread Alexandro Colorado
There re some samples on the wiki on how to create a UNOpackage in Python. I would recomend checking out the wavelet sample. http://wiki.services.openoffice.org/wiki/UNO_component_packaging On 4/20/09, Aditya Zutshi wrote: > > Hi, > > I need to install UNO Package which would be imported in py

[api-dev] Re: OpenOffice 3.0 and Java 1.5

2009-04-20 Thread Michael Stahl
Cristian Fonti wrote: The pc-clients use the JRE 1.3.1.25 (and unfortunatly it is impossible for our company to upgrade it) and they must launch the applet in which is embedded OpenOffice 3.0 . How can i by-pass the problem? Regards hi Cristian, the OOo java baseline is java 1.5 since OOo 3.

Re: [api-dev] OpenOffice 3.0 and Java 1.5

2009-04-20 Thread Cristian Fonti
The pc-clients use the JRE 1.3.1.25 (and unfortunatly it is impossible for our company to upgrade it) and they must launch the applet in which is embedded OpenOffice 3.0 . How can i by-pass the problem? Regards ~~ Dott. Cristian Fonti mail

Re: [api-dev] OpenOffice 3.0 and Java 1.5

2009-04-20 Thread Rony G. Flatscher
Hi Cristian, Cristian Fonti wrote: > Hi to all, > two years ago, i have created an application client-server to editing > rtf file with OpenOffice 2.X calling the client into an applet from > Oracle E-Business Suite (Oracle Forms). > Now i would upgrade to OpenOffice 3.0 but when i'm trying to lo

[api-dev] OpenOffice 3.0 and Java 1.5

2009-04-20 Thread Cristian Fonti
Hi to all, two years ago, i have created an application client-server to editing rtf file with OpenOffice 2.X calling the client into an applet from Oracle E-Business Suite (Oracle Forms). Now i would upgrade to OpenOffice 3.0 but when i'm trying to load the openoffice jars i obtain this error

Re: [api-dev] How to access the Storage of an opened OOo document?

2009-04-20 Thread Mathias Bauer
Giuseppe Castagno wrote: > Mathias Bauer wrote: >> Giuseppe Castagno wrote: >> >>> Hi Mathias, >>> >>> Mathias Bauer wrote: Giuseppe Castagno wrote: > Now my questions, keeping in mind that at a certain time I need to > access the "META-INF" substorage to manipulate a custom fil

Re: [api-dev] How to reload current opened document via API

2009-04-20 Thread Mathias Bauer
Benjamin Vollmer wrote: > Hello, > > I work on an extension where in some cases the opened document is > updated externally. So I have to reload my document. > > In a snippet I found this way: > > PropertyValue[] aLoadProps = new PropertyValue[0]; > > // reload current document > xComponentLo

Re: [api-dev] Multithread question

2009-04-20 Thread Mathias Bauer
Kay Ramme - Sun Germany - Hamburg wrote: > Hi Oscar, > > Oscar Picasso wrote: >> Hi, >> >> I have read several threads, without definitive answers, about the >> current support for multhreading when using openoffice as a server. >> >> Basically, I have a web application that, at user request, t

Re: [api-dev] OOo for MS Windows problem with extension developed under Linux

2009-04-20 Thread giancarlo
Ariel Constenla-Haile wrote: Hello giancarlo, [re-send, as it seems my client send its half-written back-up copy instead of the final versiopn] On Friday 17 April 2009, 11:52, giancarlo wrote: - The path of "repository" is found by this code: public MyExtension(XComponentContext context)

Re: [api-dev] Calc add-in: Best practice for returning error information ?

2009-04-20 Thread Niklas Nebel
On 04/18/09 17:51, Jan Holst Jensen wrote: 1) Is there a way that I can provide additional error information to be shown in the status bar ? [The best option] 2) Should I fall back to defining all return types as "any" and then return error message strings in case of errors ? [Ugly, but should w