Re: [api-dev] CloseVetoException vs. TerminateVetoException

2006-11-07 Thread Mathias Bauer
Hi Andreas, Andreas Schlüns wrote: 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] Command URL binding between menu and shortcut

2006-11-07 Thread Mathias Bauer
Carsten Driesner wrote: If OpenOffice.org executes a command, it doesn't distinguish between different user interface elements. It even cannot determine which user interface element has dispatched a command. If that might sound like a deficiency: it isn't, it's a concept. A command is

Re: [api-dev] Developers Guide

2006-11-07 Thread Gulien
Hi,Tobias Krais! Thanks 4 replay.In Impress document i want only Menu -Open,Close,SlideShow. That's all. U asked about language.OpenOfficeBasic.org OR C++ -see soon next letteres--- Gulien=)

Re: [api-dev] Developers Guide

2006-11-07 Thread Gulien
Hi,Zeeshan! Thanks 4 replay. I mean i want create only Menu -Open,Close,SlideShow.It's enough,without standart File,Edit,View.. -see soon next letteres--- Gulien=)

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

2006-11-07 Thread Tobias Krais
Hi Stephan, You could query the Interface com.sun.star.frame.XModel from you document. This has a method getCurrentController() which returns a com.sun.star.frame.XController. Now you could use the method getFrame() of this interface and so get the XFrame your document resides in. That

[api-dev] Document title

2006-11-07 Thread Paolo Mantovani
Hi all, An open document may (or not) have a URL An open document may (or not) have a DocumentInfo::Title An open document MUST have a non empty user presentable title. Actually openoffice retrieve this user presentable title in this way (I guess): 1) if the document has a location (URL) the

Re: [api-dev] CloseVetoException vs. TerminateVetoException

2006-11-07 Thread Andreas Schlüns
Mathias Bauer schrieb: Hi Andreas, Andreas Schlüns wrote: 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

Re: [api-dev] Developers Guide

2006-11-07 Thread Tobias Krais
Hi Gulien, Thanks 4 replay.In Impress document i want only Menu -Open,Close,SlideShow. That's all. U asked about language.OpenOfficeBasic.org OR C++ I'll send you some files via PM. Greetings, Tobias - To unsubscribe,

Re: [api-dev] CloseVetoException vs. TerminateVetoException

2006-11-07 Thread Tobias Krais
Hi together, thanks for all the background information you gave me. Thus I can see that the only way to really prevent my document from beeing closed is to register a terminate listener. Please let me add some thougts: - TerminateListener: the TerminateListener is added to the XDesktop.

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

2006-11-07 Thread aloizio
Andrew, I am using this two methods to put header in my document, the problem is that the header appear in all pages. It must appear only in the first page. I using XStyle but doesn't modify anything. public void setHeader(String p_jlsHF, String p_jlsImagePath,XTextDocument m_xTextDocument) {

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

2006-11-07 Thread Cor Nouws
Hi aloizio, aloizio wrote: Andrew, I am using this two methods to put header in my document, the problem is that the header appear in all pages. It must appear only in the first page. I using XStyle but doesn't modify anything. [...] You must make sure that the first page has a different

Re: [api-dev] Toolbar with dropdown box

2006-11-07 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:

Re: [api-dev] Toolbar with dropdown box

2006-11-07 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:

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

2006-11-07 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Stephan, thanks for the code snippet, i can use it as a workaround: - - first copy paste the section - - second copy the properties of the paragraph styles but what i am really looking for is to store a textsection as url, or serialize it ...

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

2006-11-07 Thread Fernand Vanrie
aloizio schreef: Andrew, I am using this two methods to put header in my document, the problem is that the header appear in all pages. It must appear only in the first page. I using XStyle but doesn't modify anything. You must have 2 Pagestyles: Page1_style: with a Header and a

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

2006-11-07 Thread Stephan Wunderlich
Hi Oliver, thanks for the code snippet, i can use it as a workaround: - - first copy paste the section - - second copy the properties of the paragraph styles why do you need the first step ? The code snippet copies the content of the textsection already. Copy Paste is a wee bit tricky as

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

2006-11-07 Thread Marc Santhoff
Am Dienstag, den 07.11.2006, 18:40 +0100 schrieb Oliver Brinzing: thanks for the code snippet, i can use it as a workaround: - - first copy paste the section - - second copy the properties of the paragraph styles but what i am really looking for is to store a textsection as url, or

[api-dev] Merge documents

2006-11-07 Thread aloizio
I created one template *.ott which is upload as a writer document. Then I use this template to merge documents. In template I put line spacing equal 1.5cm. When I merge the documents the merged document should have all text with line spacing 1.5, but it doesn't have. could someone help? I set

Re: [api-dev] Merge documents

2006-11-07 Thread Cor Nouws
Hi Aloizio, aloizio wrote: I created one template *.ott which is upload as a writer document. Then I use this template to merge documents. In template I put line spacing equal 1.5cm. Do you work with paragraph styles? Or with direct formatting? When I merge the documents the How? Paste as

Re: [api-dev] CloseVetoException vs. TerminateVetoException

2006-11-07 Thread Mathias Bauer
Andreas Schlüns wrote: By the way ... there is an example, why terminate shouldnt close any document before asking all registered listener: I know OOo programmer who wrote scripts/addon's, which open several documents at the same time. And they whished to supress closing of this set of

Re: [api-dev] Toolbar with dropdown box

2006-11-07 Thread Mathias Bauer
Carsten Driesner wrote: I checked the demo add-on and it works without any problem with the final OpenOffice.org 2.0.4. Do you use an installation from OpenOffice.org? Could you please try to use the package manager from the OpenOffice.org menu (Tools - Package Manager). Perhaps he

Re: [api-dev] Document title

2006-11-07 Thread Mathias Bauer
Paolo Mantovani wrote: Is there an API to retrieve this user presentable title for an open document? It's in the works, unfortunately other work permanently distracted us from finishing it. :-) I guess no, so the following question is: Is there a safe workarounf to retrieve the user

Re: [api-dev] Toolbar with dropdown box

2006-11-07 Thread Knut Olav Bøhmer
On 11/7/06, Mathias Bauer [EMAIL PROTECTED] wrote: Carsten Driesner wrote: I checked the demo add-on and it works without any problem with the final OpenOffice.org 2.0.4. Do you use an installation from OpenOffice.org? Could you please try to use the package manager from the OpenOffice.org