Re: [api-dev] losing docuemnt format during convertion

2006-11-06 Thread Juergen Schmidt
Tobias Krais wrote: Hi aloizio, I am converting one HTML document into PDF and RTF. The HTML document has some centralized texts. After the convertion the centralized texts or part of them has left alignment. Why do this happens? I am losing the original format. there was a thread about

Re: [api-dev] Suggestion: Google Group for OpenOffice.org

2006-11-06 Thread Juergen Schmidt
Tabish F. Mufti wrote: Hi, I was just thinking why not start a Google Group for this mailing list ? After the introduction of Google Groups beta they have really improved and provide a lot of nice features. Having a google group for this mailing list will benefit everyone and give more

Re: [api-dev] Suggestion: Google Group for OpenOffice.org

2006-11-06 Thread Juergen Schmidt
Cedric Bosdonnat wrote: Hi Juergen, all, Juergen Schmidt a écrit : what do think are the benefits? But in general the communication is done over mailing lists in all OO.org projects and i (as the API project lead) wouldn't like to change it at the moment. If you want to benefit from direct

Re: [api-dev] how to copy textsection from a writer document to another ?

2006-11-06 Thread Stephan Wunderlich
Hi Oliver, is there a possibility to copy a textsection from a source document to a destination document using the api ? At the moment i am using copy paste but this has the disadvantage of loosing the paragraph format ... any hints ? the following macro will copy the first section of

Re: [api-dev] CloseVetoException vs. TerminateVetoException

2006-11-06 Thread Andreas Schlüns
Tobias Krais schrieb: Hi together, I wrote a little cute java program that is converting documents via OOo. This conversion machine is running hidden. It will fail, even crash down if someone uses OOo in foreground and closes the last opened window. For this reason I registered a

Re: [api-dev] losing docuemnt format during convertion

2006-11-06 Thread aloizio
Generally, when we convert one document to other formats we want to keep the formatting. In my case, the document has other sentences that are centralized in the text and they appear centralized after converting. This happens with some sentences not all of them. Juergen Schmidt-3 wrote:

Re: [api-dev] How can I insert a header only in the first page

2006-11-06 Thread aloizio
Andrew Pitonyak, I don't understand styles well enough yet. Have you some example code? I have been working with OpenOffice API for three months. Andrew Douglas Pitonyak wrote: aloizio wrote: How can I insert a header that appear only in the first page of the document? I am using

Re: [api-dev] losing docuemnt format during convertion

2006-11-06 Thread Juergen Schmidt
aloizio wrote: Generally, when we convert one document to other formats we want to keep the formatting. In my case, the document has other sentences that are centralized in the text and they appear centralized after converting. This happens with some sentences not all of them. create an

[api-dev] Command URL binding between menu and shortcut

2006-11-06 Thread Julien Galand
Hi to all, I have a menu on which some keyboard shortcuts have been set through ui::XAcceleratorConfiguration. When a shortcut is set with the same command URL of an existing menu line, OO automatically displays the shortcut on the menu line (or should; a bug prevents this, but will be fixed

[api-dev] Changing menus of a document in background

2006-11-06 Thread Tobias Krais
Hi together again, I have one more question. I would like to change the menus in a document in the background. Up to now I can change menus for loaded documents in the foreground. Here is the code: -%- XPropertySet xps = (XPropertySet)

Re: [api-dev] Enable toolbar items if dynamic protocol handler

2006-11-06 Thread Carsten Driesner
Julien Galand wrote: Le 3 nov. 06, à 09:59, Carsten Driesner a écrit : Julien Galand wrote: Hi to all, My add-on has a toolbar created by a .xcu file, with the right protocol handler declared (as a node org.openoffice.Office.ProtocolHandler/HandlerSet of the configuration file). But there

Re: [api-dev] losing docuemnt format during convertion

2006-11-06 Thread aloizio
Follows the code public byte[] converterHtmlParaDoc(byte[] doc) throws Exception { XComponent xComp = getFachadaOpenOffice().carregarDocumentoOpenOffice(doc, FachadaOpenOffice.TIPO_HTML); byte[] docConvertido = null; if (xComp != null) { docConvertido =

Re: [api-dev] Command URL binding between menu and shortcut

2006-11-06 Thread Carsten Driesner
Julien Galand wrote: Hi to all, I have a menu on which some keyboard shortcuts have been set through ui::XAcceleratorConfiguration. When a shortcut is set with the same command URL of an existing menu line, OO automatically displays the shortcut on the menu line (or should; a bug prevents

Re: [api-dev] Toolbar with dropdown box

2006-11-06 Thread Knut Olav Bøhmer
On 11/6/06, Carsten Driesner [EMAIL PROTECTED] wrote: Knut Olav Bøhmer wrote: How can I make a toolbar that contains a drop down box or any other dialog component? Hi Knut, You can find more information how to do it on the framework wiki page:

Re: [api-dev] Changing menus of a document in background

2006-11-06 Thread Stephan Wunderlich
Hi Tobias, I have one more question. I would like to change the menus in a document in the background. Up to now I can change menus for loaded documents in the foreground. Here is the code: -%- XPropertySet xps = (XPropertySet)

Re: [api-dev] Enable toolbar items if dynamic protocol handler

2006-11-06 Thread Julien Galand
Le 6 nov. 06, à 16:19, Carsten Driesner a écrit : You want to re-scan a add-on toolbar? Ok, that's why my solution doesn't work. An add-on toolbar is not stored in the user interface configuration, it's a part of the normal OpenOffice.org configuration. Therefore it's not a

Re: [api-dev] Toolbar with dropdown box

2006-11-06 Thread Tabish F. Mufti
Knut! Thanx alot. I'll see if I understand how to use it. I tryed to install the DemoAddOn, but it did not work. I got the following error: The following will atleast give you clean packages which install without error: http://kingyo.tutms.tut.ac.jp/~toshi/StarSuite/Chap4/ After you are able

Re: [api-dev] Changing menus of a document in background

2006-11-06 Thread Mathias Bauer
Tobias Krais wrote: Hi together again, I have one more question. I would like to change the menus in a document in the background. Up to now I can change menus for loaded documents in the foreground. Here is the code: -%- XPropertySet xps = (XPropertySet)

Re: [api-dev] How can I insert a header only in the first page

2006-11-06 Thread Andrew Douglas Pitonyak
aloizio wrote: I don't understand styles well enough yet. Have you some example code? I have been working with OpenOffice API for three months. First, you need to know how to do this using the GUI. In other words, you must understand how styles work. After you understand styles and how to

Re: [api-dev] Toolbar with dropdown box

2006-11-06 Thread Carsten Driesner
Knut Olav Bøhmer wrote: On 11/6/06, Carsten Driesner [EMAIL PROTECTED] wrote: Knut Olav Bøhmer wrote: How can I make a toolbar that contains a drop down box or any other dialog component? Hi Knut, You can find more information how to do it on the framework wiki page: