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

2006-11-13 Thread Bartolomeo Mastromarco
aloizio wrote: I need to change via OO API the following parameters LineSpacing ParaFirstLineIndent ParaVertAlignment hi, this is the code for you: XStyle xStyle = (XStyle)UnoRuntime.queryInterface ( XStyle.class, this.xMultiServiceFactory.createInstance(

Re: [api-dev] Multiple instances / creating user installations

2006-11-13 Thread Kai Sommerfeld
Hi all, Tobias Krais wrote: Hi API Team, starting with OOo 2.0.4 you can use the parameter -nofirststartwizard to, guess what... suppress the startup wizard. using htop to watch my OOo bootstrap process I can see, that bootstraping OOo from java does not use this option. Is it possible

[api-dev] Newbie inserting text where the cursor is (java)

2006-11-13 Thread Alamo Vallejo, Joan
How can I insert text (or anything) at the cursor's position? I've recovered the cursor position doing this: mxRemoteServiceManager = getRemoteServiceManager(); Object desktop = mxRemoteServiceManager.createInstanceWithContext(com.sun.star.frame.Des ktop, mxRemoteContext); XDesktop xDesktop =

Re: [api-dev] UNO Component Bootstrap

2006-11-13 Thread Tobias Krais
Hi Tabish, Create a JAR package and make a desktop icon with a commandline like this: java -jar myjar.jar The ant script file will be inside the JAR ? Right now I type ant run to run my java code. You are saying that by making a jar which will have the ant file inside it the ant script

Re: [api-dev] printing current sheet

2006-11-13 Thread Tobias Krais
Hi Mathias, In a calc document i want to place a button with that the user can print the actual sheet or rather the defined (and named) print area at the sheet. But i can't find the right print options to do that. please see the code attached. It is free, again. Greetings, Tobias package

Re: [api-dev] Newbie inserting text where the cursor is (java)

2006-11-13 Thread Tobias Krais
Hi Joan, But now, how I manage to write something in that position? I use the method below to paste text on the position of a bookmark. You will also find the answer to you question in the developers guide. Greetings, Tobias -%- /** * Sets the Cursor to a bookmark position and

Re: [api-dev] Multiple instances / creating user installations

2006-11-13 Thread Tobias Krais
Hi Kai, starting with OOo 2.0.4 you can use the parameter -nofirststartwizard to, guess what... suppress the startup wizard. using htop to watch my OOo bootstrap process I can see, that bootstraping OOo from java does not use this option. Is it possible to add this option to the standart

RE: [api-dev] Newbie inserting text where the cursor is (java)

2006-11-13 Thread Alamo Vallejo, Joan
Do you mean the TextDocuments.java in the guide? It works fine if you want to go to the start, then jump some sentences and a few words and then write. But I'd like to write where the cursor (the blinking one) is, do you think it's possible? Or... Can anybody tell me where to look for it?

Re: [api-dev] Newbie inserting text where the cursor is (java)

2006-11-13 Thread Laurent Godard
Hi Do you mean the TextDocuments.java in the guide? It works fine if you want to go to the start, then jump some sentences and a few words and then write. But I'd like to write where the cursor (the blinking one) is, do you think it's possible? Or... Can anybody tell me where to look for it?

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

2006-11-13 Thread aloizio
Hi Bartolomeo, Thanks for your help. I have another problem I implemented the method below, but only the first paragraph of the document are changed with the properties. I need to set all document paragraphs to the properties into the loop. Why this happens. Could you help me? public void

[api-dev] XP Problem with OpenOffice.org eclipse plugin?

2006-11-13 Thread Alamo Vallejo, Joan
Is there any problem choosing the SDK plugin configuration for Eclipse in Windows XP? It seems to work on Windows 2000... I'll attach an image of the error Joan This e-mail may contain confidential or privileged information. Any unauthorised copying, use or distribution of this information is

Re: [api-dev] XP Problem with OpenOffice.org eclipse plugin?

2006-11-13 Thread Cedric Bosdonnat
Alamo Vallejo, Joan a écrit : Sorry, the attachment didn't seem to work... Here it is: Invalid SDK path. And the directory exists!! Which version of the SDK are you using ? Cedric - To unsubscribe, e-mail: [EMAIL PROTECTED]

RE: [api-dev] XP Problem with OpenOffice.org eclipse plugin?

2006-11-13 Thread Alamo Vallejo, Joan
2.0 At least, that's what the install file says: OOo-SDK_2.0_windows_install_en-US.exe Joan -Mensaje original- De: Cedric Bosdonnat [mailto:[EMAIL PROTECTED] Enviado el: lunes, 13 de noviembre de 2006 16:56 Para: dev@api.openoffice.org Asunto: Re: [api-dev] XP Problem with

Re: [api-dev] Multiple instances / creating user installations

2006-11-13 Thread Kai Sommerfeld
Tobias, Tobias Krais wrote: Hi Kai, starting with OOo 2.0.4 you can use the parameter -nofirststartwizard to, guess what... suppress the startup wizard. using htop to watch my OOo bootstrap process I can see, that bootstraping OOo from java does not use this option. Is it possible to

Re: [api-dev] printing current sheet

2006-11-13 Thread Mathias Röllig
Hello Tobias! Thank you for your answer. Am 13.11.2006 13:14 schrieb Tobias Krais: In a calc document i want to place a button with that the user can print the actual sheet or rather the defined (and named) print area at the sheet. But i can't find the right print options to do that. please

RE: [api-dev] Newbie inserting text where the cursor is (java)

2006-11-13 Thread Alamo Vallejo, Joan
Thank you all for the help, finally I could do it... But now I'm facing another problem: I want to insert an input field instead of text. I got this far: XMultiServiceFactory mxDocFactory = (XMultiServiceFactory) UnoRuntime.queryInterface(XMultiServiceFactory.class,xTextDocument); XTextField

[api-dev] How can I select all paragraphs from a Text?

2006-11-13 Thread aloizio
I am trying to select all paragraph into the document. I am using the following: // Get the XParagraphCursor interface of the document cursor XParagraphCursor xParaCursor = (XParagraphCursor) UnoRuntime.queryInterface( XParagraphCursor.class, curText );

Re: [api-dev] How can I select all paragraphs from a Text?

2006-11-13 Thread Cor Nouws
Hi Aloizio, aloizio wrote: I am trying to select all paragraph into the document. I am using the following: // Get the XParagraphCursor interface of the document cursor XParagraphCursor xParaCursor = (XParagraphCursor) UnoRuntime.queryInterface(

Re: [api-dev] How can I select all paragraphs from a Text?

2006-11-13 Thread aloizio
Hi I am already working with XStyle. See my code below: protected void Example (XComponent xComp) { try { XTextDocument xTextDocument = (XTextDocument) UnoRuntime.queryInterface(XTextDocument.class, xComp); XText xText =

Re: [api-dev] How can I select all paragraphs from a Text?

2006-11-13 Thread Cor Nouws
Hello, aloizio wrote: I am already working with XStyle. See my code below: Ah, I see. And what you want to achieve is - creating a new style, - set properties, - apply the style to your whole document? Greetings, Cor protected void Example (XComponent xComp) { try {

Re: [api-dev] How can I select all paragraphs from a Text?

2006-11-13 Thread aloizio
Yes, only this. Cor Nouws wrote: Hello, aloizio wrote: I am already working with XStyle. See my code below: Ah, I see. And what you want to achieve is - creating a new style, - set properties, - apply the style to your whole document? Greetings, Cor protected void

Re: [api-dev] How can I select all paragraphs from a Text?

2006-11-13 Thread Cor Nouws
aloizio wrote: Ah, I see. And what you want to achieve is - creating a new style, - set properties, - apply the style to your whole document? Yes, only this. And could it be a possibility to change the already applied style? -- Cor Nouws Arnhem - Netherlands nl.OpenOffice.org -

Re: [api-dev] printing current sheet

2006-11-13 Thread Marc Santhoff
Am Montag, den 13.11.2006, 17:48 +0100 schrieb Mathias Röllig: So the question is: how can i figure out, which print page number has the actual sheet? Or, how can i figure out, on which print page(s) will a special print area reside? You can't, OO.o does not allow to do so. This should be

Re: [api-dev] printing current sheet

2006-11-13 Thread Mathias Röllig
Hello Marc! Am 14.11.2006 00:09 schrieb Marc Santhoff: So the question is: how can i figure out, which print page number has the actual sheet? Or, how can i figure out, on which print page(s) will a special print area reside? You can't, OO.o does not allow to do so. This should be worth an

Re: [api-dev] Multiple instances / creating user installations

2006-11-13 Thread Tobias Krais
Good morning Kai, As you wrote the non-GUI use case is neglected in your argumentation. In my opinion, there should be a solution for this use case, too. What do you suggest? Good question. My aim is, to allow bootstrapping a completly new installed OOo, without any graphic interruptions.

Re: [api-dev] Document title

2006-11-13 Thread Andreas Schlüns
Paolo Mantovani schrieb: Hi Bernard, Alle 19:37, domenica 12 novembre 2006, Bernard Marcelly ha scritto: Bonjour Paolo There is a solution, using getArgs() from the document. Please note: The property Title of the list of arguments of a model isnt better (means more stable) then using the

Re: [api-dev] Server inside a Protocol Handler

2006-11-13 Thread Andreas Schlüns
Tabish F. Mufti schrieb: You can avoid these problems, if you write your protocol handler as a multi-instance service. So how can I write a multi-instance service ? The difference between multi-instance and one instance service (singleton) will be made on creation time. Every java