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

2006-11-08 Thread Andreas Schlüns
Hello Julien, What about my other proposed solution? Use a job and register your service before any UI is visible. I will remember this solution. I have set it aside for the time being, because a job must be registered again in some OO configuration file (typically in the .xcu of a

Re: [api-dev] Merge documents

2006-11-08 Thread aloizio
I meger the documents using the below method: private XComponent agruparDocumentos(List documentos, String tipoDocumento) throws Exception { final String NOME_ARQUIVO_TEMPORARIO = arquivo_temp_; XComponent documentoFinal = getFachadaOpenOffice().criarNovoDocumento(); for (int i = 0; i

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

2006-11-08 Thread aloizio
Fernand Vanrie wrote: 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:

Re: [api-dev] CloseVetoException vs. TerminateVetoException

2006-11-08 Thread Andreas Schlüns
Hello Mathias, Andreas Schlüns wrote: snip Yes ... that's wrong - but it's public. An yes: there is no guarantee that these frames wont be closed by other objects (other then the desktop). As you said: it isn't a good solution anyway as it doesn't help in all cases and it is not a

Re: [api-dev] How apply a template in one document using OO API

2006-11-08 Thread Juergen Schmidt
aloizio wrote: I am merging some documents. Then I created a Template where I configured Line Spacing, Left Margin and Right Margin. When a merge the documents the text formating should follow the template but it doesn't follow. What should I do? are you sure that you have used styles for all

Re: [api-dev] Document title

2006-11-08 Thread Paolo Mantovani
Hi Mathias, Alle 19:51, martedì 7 novembre 2006, Mathias Bauer ha scritto: 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. :-) In effect it's a

[api-dev] How to apply Paragraph Style to XTextDocument?

2006-11-08 Thread aloizio
I need to change via OO API the following parameters LineSpacing ParaFirstLineIndent ParaVertAlignment -- View this message in context: http://www.nabble.com/How-to-apply-Paragraph-Style-to-XTextDocument--tf2597290.html#a7245111 Sent from the openoffice - api dev mailing list archive at

[api-dev] com.sun.star.scanner.ScannerManager question

2006-11-08 Thread MARTON Jozsef
Hi, [sorry if arrives twice, but I forgot to subscribe] I'm facing some serious problems when trying to use the ScannerManager service from a BeanShell script (inside OOo Draw). OOo version: stable, 2.0.4 (english version, WinXP SP2) OOo SDK: stable, 2.0.4 I have a Logitech QuickCam Sphere

Re: [api-dev] How does one sync within a template?

2006-11-08 Thread G. Roderick Singleton
On Tue, 2006-10-10 at 16:19 -0400, G. Roderick Singleton wrote: On Tue, 2006-10-10 at 19:06 +0200, Mathias Bauer wrote: G. Roderick Singleton wrote: On Fri, 2006-10-06 at 17:22 -0400, G. Roderick Singleton wrote: I have been combing through sources, api webpages trying to find the

Re: [api-dev] How to apply Paragraph Style to XTextDocument?

2006-11-08 Thread Marc Santhoff
Am Mittwoch, den 08.11.2006, 11:23 -0800 schrieb aloizio: I need to change via OO API the following parameters LineSpacing ParaFirstLineIndent ParaVertAlignment Maybe you like to use the available documentation ressources: http://codesnippets.services.openoffice.org/Writer/

[api-dev] Jobs

2006-11-08 Thread Tabish F. Mufti
I read in the developer guide Chapter 4 under Jobs: A central problem of external components in OpenOffice.org is their lifetime control. Every external component must deal with the possibility that the environment will terminate. It is not efficient to implement lifetime strategies in every

[api-dev] [EMAIL PROTECTED] TOPIC: Contributing

2006-11-08 Thread Michael Hoennig
Dear OpenOffice.org community, This is the 2-weekly announcement of current issues regarding the OOo API project which I want to hightlight to the community. *** = *** Todays Issue: Contributing to the OOo API Project ***

[api-dev] Server inside a Protocol Handler

2006-11-08 Thread Tabish F. Mufti
I have an Addon in Java and using the ProtocolHandler scheme I start a Socket Server. Once the protocol handler is executed the server is created inside a Thread and left on the jvm to be executed but I think I lose a reference to this server as the ProtocolHandler will just execute a function

Re: [api-dev] Jobs

2006-11-08 Thread Andreas Schlüns
Tabish F. Mufti schrieb: I read in the developer guide Chapter 4 under Jobs: A central problem of external components in OpenOffice.org is their lifetime control. Every external component must deal with the possibility that the environment will terminate. It is not efficient to implement