Re: [api-dev] automatic chapter numbering

2008-10-21 Thread Ariel Constenla-Haile
Hi, starting a new thread for a new subject, is always a good practice... Hardie82 escribió: Hi. I have a problem with updating my toc. I have a template-file which i fill with chapters. In this template there is a toc included. Now after filling the document i want to update the toc. Therefore

[api-dev] URL to "OpenOffice.org: Selected Pitonyak' Nutshells in ooRexx" ...

2008-10-21 Thread Rony G. Flatscher
Hi there, here is the URL to another student's work on some of Andrew Pitonyak's great nutshells (cf. ): . As the ooRexx nutshells use the OOo Java bridge they also show which UNO interfaces

Re: [api-dev] Best way to know if is loadable ?

2008-10-21 Thread Alain Rist
Thanks Steffen, I more or less hoped that TypeDetection could be used in that purpose :( Is this the right place to suggest a bool com::sun::star::frame::XComponentLoader::checkComponentFromURL() API? cheers, AR - Original Message - From: "Steffen Grund" <[EMAIL PROTECTED]> Newsgr

Re: [api-dev] automatic chapter numbering

2008-10-21 Thread Stephan Bergmann
On 10/21/08 15:59, Hardie82 wrote: Hi. I have a problem with updating my toc. I have a template-file which i fill with chapters. In this template there is a toc included. Now after filling the document i want to update the toc. Therefore i tried following code: 192 private void refreshIndex(

Re: [api-dev] How to now the running OO-version

2008-10-21 Thread Mikhail Voitenko
Hi Fernand, Please take a look there http://codesnippets.services.openoffice.org/Office/Office.Version.snip It will work good with the standard OOo build available from www.openoffice.org. The problem of the mentioned solution is that different OOo clones might use different ways to name the p

Re: [api-dev] automatic chapter numbering

2008-10-21 Thread Hardie82
Hi. I have a problem with updating my toc. I have a template-file which i fill with chapters. In this template there is a toc included. Now after filling the document i want to update the toc. Therefore i tried following code: 192 private void refreshIndex() throws Exception 193 { 194

Re: [api-dev] How to now the running OO-version

2008-10-21 Thread Tobias Krais
Hi Fernand, > BTW any idea how i can get the running OO-version ? here a Java code example - we had this on the list already: -%<- /** * Getting the OpenOffice version. * @return String containing the version, e.g. "2.3" or "2.2.1" */ public stat

Re: [api-dev] How to now the running OO-version

2008-10-21 Thread Fernand Vanrie
Mikhail Voitenko wrote: Hi Mikhail, Sorry I was mis informed, the problems seem to come from the use of a external filter who has a different behaviour from one OO-version to a other. BTW any idea how i can get the running OO-version ? Greetz, Fernand Hi Fernand, Am I right with my under

Re: [api-dev] How to now the running OO-version

2008-10-21 Thread Mikhail Voitenko
Hi Fernand, Am I right with my understanding that you use SaveAsURL/SaveToURL from basic script and it does not work as expected in OOo2.4? If yes, could you please explain what exactly does not work any more. Best regards, Mikhail. On 10/21/08 14:00, Fernand Vanrie wrote: SaveAsURl and Save

[api-dev] How to now the running OO-version

2008-10-21 Thread Fernand Vanrie
SaveAsURl and SaveToURL have a different behaviour in i2.3 than in 2.4. I wont to change my BASIC code in function of the running OO-version. How can i have this version using Basic and the API ? Thanks for any hint Fernand

Re: [api-dev] Best way to know if is loadable ?

2008-10-21 Thread Mikhail Voitenko
Hi Alain, The problem here, as Steffen has mentioned, is that TypeDetection does not always detect a corruption in files. Actually the main intention of TypeDetection is not to detect whether a document can be loaded, but to suggest a filter that looks to be most suitable. In case of currupt

Re: [api-dev] Best way to know if is loadable ?

2008-10-21 Thread Alain Rist
Thanks Steffen, I more or less hoped that TypeDetection could be used in that purpose :( Is this the right place to suggest a sal_Bool com::sun::star::frame::XComponentLoader::checkComponentFromURL() API? cheers, AR - Original Message - From: "Steffen Grund" <[EMAIL PROTECTED]> News