[api-dev] How can I get the url of the currently opened document?

2005-03-09 Thread Ines Pfauch
My java addon now has some functions which are only visible if a document is opened. Before I can do anything with this document I need the url of it (path and name on the filesystem), how can I retrieve this? Thanks in advance, Ines

Re: [api-dev] How can I get the url of the currently opened document?

2005-03-09 Thread Aidan Butler
Hello, The URL of the document is stored as a property of the document component. The following python code will print the URL #ctx is the current context desktop = ctx.ServiceManager.createInstanceWithContext( \ com.sun.star.frame.Desktop, ctx ) document =

Re: [api-dev] Menu control

2005-03-09 Thread Mathias Bauer
Christian Junker wrote: Hi Matthias, I do ask myself, why those interfaces are deprecated. Why not removing them completely? a) from source code (I searched with ximian lxr and there was no single implementation I found about XMenu) b) from documentation (IDL Reference) Deprecated means:

[api-dev] Setting Paper Properties of Spreadsheet

2005-03-10 Thread Tom Schindl
Hi, I search the Developers Guide and the IDL-Docs but could find an answer to my problem. Using the GUI I can set the Paper Format(e.g. to A3) and Orientation of an Spreadsheet (e.g. to Landscape). I have not found yet the functions needed to set these using the API. I only found how to set

Re: [api-dev] Setting Paper Properties of Spreadsheet

2005-03-10 Thread Niklas Nebel
Tom Schindl wrote: I search the Developers Guide and the IDL-Docs but could find an answer to my problem. Using the GUI I can set the Paper Format(e.g. to A3) and Orientation of an Spreadsheet (e.g. to Landscape). I have not found yet the functions needed to set these using the API. I only

Re: [api-dev] Could someone remove this guy: [EMAIL PROTECTED]

2005-03-10 Thread Michael Hoennig
Hi Tom, It's really getting on my nerves that people can not configure their mail-server apropiately when they use mailling lists. For every message sent to [EMAIL PROTECTED] I get the notice I think everybody does from his Anti-Spam agent. I know, its annoying. But I have noo influence

Re: [api-dev] Setting Paper Properties of Spreadsheet

2005-03-10 Thread Tom Schindl
Niklas Nebel wrote: Tom Schindl wrote: well flipping the orientation to IsLandscape = true is working more on this later. Are there any predefined properties for the page-format? There is an enum for paper formats http://api.openoffice.org/docs/common/ref/com/sun/star/view/PaperFormat.html#A3

Re: [api-dev] Setting Paper Properties of Spreadsheet

2005-03-10 Thread Niklas Nebel
Tom Schindl wrote: But where from does the GUI know? Is it hardcoded somewhere because when switching the Format DropDown e.g. to A3 it automatically recalculates the height and width. The dialog actually has its own table. Ok. Now summerized as a codesnippet:

Re: [api-dev] Number of line of a paragraph

2005-03-10 Thread Michael Hoennig
Hi Laurent, I retreive a paragraph containing text. Is there a way to know how many lines it represents displayed in the document ? (so, depending on the formats, font, font size aso) I know i can count characters with num = Len(myParagraph.string) but need know that this number is

Re: [api-dev] Number of line of a paragraph

2005-03-10 Thread Michael Hoennig
while thiscomponent.getText.compareRegionEnds(textCursor,viewCursor)0 viewCursor.goDown(1,false) counter = counter +1 I should have read everything before I answered.. (for my excuse, the thread was somehow broken into two parts) Michael

Re: [api-dev] Number of line of a paragraph

2005-03-10 Thread Laurent Godard
Hi Michael, while thiscomponent.getText.compareRegionEnds(textCursor,viewCursor)0 viewCursor.goDown(1,false) counter = counter +1 I should have read everything before I answered.. (for my excuse, the thread was somehow broken into two parts) No problem for me :) Thanks anyway

Re: [api-dev] How can I get the url of the currently opened document?

2005-03-10 Thread Ines Pfauch
On 09.03.2005, at 13:20, Aidan Butler wrote: Hello, The URL of the document is stored as a property of the document component. The following python code will print the URL #ctx is the current context desktop = ctx.ServiceManager.createInstanceWithContext( \

Re: [api-dev] How can I get the url of the currently opened document?

2005-03-10 Thread Christoph Lutz
Ines Pfauch wrote: On 09.03.2005, at 13:20, Aidan Butler wrote: [...] desktop = ctx.ServiceManager.createInstanceWithContext( \ com.sun.star.frame.Desktop, ctx ) document = desktop.getCurrentComponent() print document.URL Alternatively a document.getPropertyValue(URL) should do the

Re: [api-dev] How can I get the url of the currently opened document?

2005-03-10 Thread Christian Junker
That's because you need to query for the correct interface first, before you use such a method. In this case I would query the com.sun.star.frame.XModel interface and call the method getURL() on the returned object. In order to code in Java for OOo, you need to know about such things as

Re: [api-dev] Code snippets ....

2005-03-10 Thread Jürgen Schmidt
Hi Tom, thanks for the extensison, i think it is very helpful to improve the navigation to the IDL reference and implicit to the DevGuide. - Juergen Tom Schindl wrote: Jürgen Schmidt wrote: Tom Schindl wrote: Jürgen Schmidt wrote: Hi, we have started some time ago with our code snippet base

Re: [api-dev] Code snippets ....

2005-03-10 Thread Thomas Schindl
I thought about automatically linking all imports or includes when we are talking C++. We could even link all com.sun to the IDL? What do you think about it? Tom Hi Tom, thanks for the extensison, i think it is very helpful to improve the navigation to the IDL reference and implicit

Re: [api-dev] Code snippets ....

2005-03-10 Thread Jürgen Schmidt
yep, that is also a good idea. We should simplify the access to further information wherever we can. Important is that the snippets can be copied and used directly in the users prefered editor. - Juergen Thomas Schindl wrote: I thought about automatically linking all imports or includes when we

Re: [api-dev] Could someone remove this guy: [EMAIL PROTECTED]

2005-03-10 Thread Anthony Chilco
Hi Tom, Create a mail filter to delete anti-spam agent mail from your server. You'll never see it. tc Tom Schindl wrote: It's really getting on my nerves that people can not configure their mail-server apropiately when they use mailling lists. For every message sent to [EMAIL PROTECTED] I get the

[api-dev] setting OOo options

2005-03-10 Thread Jorge Marques Pelizzoni
Hi, all! I'd like to write a macro setting some of OOo's options (Menu Tools-Options) programatically. Can this be done? So far, by means of recording a macro, I've just got to: dispatcher = createUnoService(com.sun.star.frame.DispatchHelper) dispatcher.executeDispatch(document,

Re: [api-dev] Code snippets ....

2005-03-10 Thread Marc Santhoff
Am Do, den 10.03.2005 schrieb Jürgen Schmidt um 15:50: Hi Tom, thanks for the extensison, i think it is very helpful to improve the navigation to the IDL reference and implicit to the DevGuide. I think so, too. I'd really love a list of all implementing classes for interfaces and services

Re: [api-dev] Code snippets ....

2005-03-10 Thread G. Jasper
Tom Schindl wrote: The search functionality is still on my list and I hope I can manage soon to implement it. Tom Tom, Do you mean a search functionality to be let loose on IDL documentation or on a Calc sheet? In the latter case I suggest you take a look at Andrew Pitonyak's OpenOffice.org

[api-dev] [EMAIL PROTECTED] REQUEST: unanswered questions

2005-03-10 Thread Michael Hoennig
Dear OpenOffice.org community, We really would like to see all questions answered, but we need your help to keep track of your questions and their answer status. Thus, if you still have a question unanswered for more than two days, feel free to place a reminder on the list. But maybe you should

Re: [api-dev] Code snippets ....

2005-03-10 Thread Tom Schindl
G. Jasper wrote: Tom Schindl wrote: The search functionality is still on my list and I hope I can manage soon to implement it. Tom Tom, Do you mean a search functionality to be let loose on IDL documentation or on a Calc sheet? In the latter case I suggest you take a look at Andrew Pitonyak's

Re: [api-dev] How can I get the url of the currently opened document?

2005-03-11 Thread Ines Pfauch
On 10.03.2005, at 14:09, Christoph Lutz wrote: XDesktop desktop = (XDesktop)xmulticomponentfactory.createInstanceWithContext (com.sun.star.frame.Desktop, ctx); Unfortunately I get a ClassCastException at the line above. To get the URL is the only thing I need. I dont program more in java

Re: [api-dev] How can I get the url of the currently opened document?

2005-03-11 Thread Jürgen Schmidt
Hi Ines, Ines Pfauch wrote: On 10.03.2005, at 14:09, Christoph Lutz wrote: XDesktop desktop = (XDesktop)xmulticomponentfactory.createInstanceWithContext (com.sun.star.frame.Desktop, ctx); Unfortunately I get a ClassCastException at the line above. To get the URL is the only thing I need. I

Re: [api-dev] How can I get the url of the currently opened document?

2005-03-11 Thread Ines Pfauch
On 11.03.2005, at 09:50, Jürgen Schmidt wrote: Object oDesktop = xmulticomponentfactory.createInstanceWithContext (com.sun.star.frame.Desktop, ctx); XDEsktop xDesktop = (XDesktop)UnoRuntime.queryInterface(XDesktop.class, oDesktop); I did. At the moment I use the following code, but it still

Re: [api-dev] How can I get the url of the currently opened document?

2005-03-11 Thread Tom Schindl
Ines Pfauch wrote: On 11.03.2005, at 09:50, Jürgen Schmidt wrote: Object oDesktop = xmulticomponentfactory.createInstanceWithContext (com.sun.star.frame.Desktop, ctx); XDEsktop xDesktop = (XDesktop)UnoRuntime.queryInterface(XDesktop.class, oDesktop); I did. At the moment I use the following

Re: [api-dev] How can I get the url of the currently opened document?

2005-03-11 Thread Ines Pfauch
On 11.03.2005, at 10:15, Tom Schindl wrote: But as already suggested by Christian ((XModel)UnoRuntime.queryInterface (com.sun.star.XModel,xDesktop.getCurrentComponent())).getURL(); Should work. Tom No: I get the following error. cannot resolve symbol symbol : method queryInterface

Re: [api-dev] How can I get the url of the currently opened document?

2005-03-11 Thread Ines Pfauch
On 11.03.2005, at 10:34, Tom Schindl wrote: Sorry should have been ((XModel)UnoRuntime.queryInterface (XModel.class,xDesktop.getCurrentComponent())).getURL(); Great. Thank you! It works. - To unsubscribe, e-mail: [EMAIL

Re: [api-dev] setting OOo options

2005-03-11 Thread Stephan Wunderlich
Hi Jorge, I'd like to write a macro setting some of OOo's options (Menu Tools-Options) programatically. Can this be done? So far, by means of recording a macro, I've just got to: dispatcher = createUnoService(com.sun.star.frame.DispatchHelper) dispatcher.executeDispatch(document,

Re: [api-dev] How can I get the url of the currently opened document?

2005-03-11 Thread Tom Schindl
Ines Pfauch wrote: On 11.03.2005, at 10:34, Tom Schindl wrote: Sorry should have been ((XModel)UnoRuntime.queryInterface (XModel.class,xDesktop.getCurrentComponent())).getURL(); Great. Thank you! It works. It would be great if you would summerize this small thread which showed us not to use

Re: [api-dev] How can I get the url of the currently opened document?

2005-03-11 Thread Ines Pfauch
On 11.03.2005, at 11:10, Tom Schindl wrote: It would be great if you would summerize this small thread which showed us not to use the MediaDescriptor.html#URL to retrieve the URL form a document but instead the XModel in a small and tiny codesnippet. It's worth the time you saved by people

[api-dev] [code snippet] Drawing on Uno Dialogs

2005-03-11 Thread Paolo Mantovani
Hi, I've grepped around in the Dev Guide in order to find some example of the use of com.sun.star.awtXGraphics but with no success. After some testing I've learned how to draw some nice shapes :-) on a Uno Dialog and I've summarized my testing in the attached code snippet ciao Paolo M.

Re: [api-dev] [code snippet] Drawing on Uno Dialogs

2005-03-11 Thread Tom Schindl
Paolo Mantovani wrote: Hi, I've grepped around in the Dev Guide in order to find some example of the use of com.sun.star.awtXGraphics but with no success. After some testing I've learned how to draw some nice shapes :-) on a Uno Dialog and I've summarized my testing in the attached code snippet

Re: [api-dev] [code snippet] Drawing on Uno Dialogs

2005-03-11 Thread Laurent Godard
Hi paolo After some testing I've learned how to draw some nice shapes :-) on a Uno Dialog and I've summarized my testing in the attached code snippet That's great !!! I just tested and it offers nice ideas As i didn't dig in this part of the api, do you think there is a way to modify the shap

Re: [api-dev] How can I get the url of the currently opened document?

2005-03-11 Thread Tom Schindl
Ines Pfauch wrote: On 11.03.2005, at 11:10, Tom Schindl wrote: It would be great if you would summerize this small thread which showed us not to use the MediaDescriptor.html#URL to retrieve the URL form a document but instead the XModel in a small and tiny codesnippet. It's worth the time you

Re: [api-dev] [code snippet] Drawing on Uno Dialogs

2005-03-11 Thread Paolo Mantovani
Hi Laurent, Alle 12:20, venerdì 11 marzo 2005, Laurent Godard ha scritto: Hi paolo After some testing I've learned how to draw some nice shapes :-) on a Uno Dialog and I've summarized my testing in the attached code snippet That's great !!! I just tested and it offers nice ideas As i

[api-dev] Search text and insert page break

2005-03-11 Thread Cristian Fonti
Hi to all, I'm a newbie in Api Open Office programmation with Java. I have a writer document, and i want to search a particular string, when i found it, i want to insert a PAGE BREAK. How can i do it?? Mi first, and big problem is how to use the objects that the interface

Re: [api-dev] [code snippet] Drawing on Uno Dialogs

2005-03-11 Thread Laurent Godard
Hi paolo, I must admit that awt API's are quite obscure to me, and it's difficult to say what can be done and what cannot. like for me Anyway, if I well remember, when I was playing with VB, peoples used some window API's to create shaped buttons or forms. The trick was something like this: -

Re: [api-dev] [code snippet] Drawing on Uno Dialogs

2005-03-11 Thread Jürgen Schmidt
Hi, yep, the awt API'S was deprecated in the past but in fact of a missing alternative we removed the deprecated flag. But you should not expect too much of this API. - Juergen Paolo Mantovani wrote: Hi Laurent, Alle 12:20, venerdì 11 marzo 2005, Laurent Godard ha scritto: Hi paolo After some

Re: [api-dev] How can I get the url of the currently opened document?

2005-03-11 Thread Christian Junker
Hi Tom, you don't need the line: XPropertySet documentProps = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, document); Thus the import of XPropertySet can be omitted, too. On Fri, 11 Mar 2005 13:27:44 +0100, Tom Schindl [EMAIL PROTECTED] wrote: Ines Pfauch wrote: On 11.03.2005,

Re: [api-dev] How can I get the url of the currently opened document?

2005-03-11 Thread Christian Junker
Hi Kai, I tested this SB script... code Sub Main odoc = thisComponent odoc.storeAsURL(file:///C:/file1.sxw, Array()) msgbox odoc.getURL() odoc.storeAsURL(file:///C:/file2.sxw, Array()) msgbox odoc.getURL() End Sub /code and it does return the correct filenames. On Fri, 11 Mar 2005 16:44:13

Re: [api-dev] [code snippet] Drawing on Uno Dialogs

2005-03-11 Thread Laurent Godard
Hi Christian Tom, or whoever is responsible that this codesnippet works, please check the syntax before posting it online. I quickly looked over it to see how Paolo managed to draw on a dialog, but found this line code oPaintListener = CreateUnoListener(ThisDialog_, com.sun.star.awt.XPaintListener

Re: [api-dev] [code snippet] Drawing on Uno Dialogs

2005-03-11 Thread Paolo Mantovani
Alle 16:44, venerdì 11 marzo 2005, Laurent Godard ha scritto: Hi Christian Tom, or whoever is responsible that this codesnippet works, please check the syntax before posting it online. I quickly looked over it to see how Paolo managed to draw on a dialog, but found this line code

Re: [api-dev] setting OOo options

2005-03-11 Thread Mathias Bauer
Jorge Marques Pelizzoni wrote: Hi, all! I'd like to write a macro setting some of OOo's options (Menu Tools-Options) programatically. Can this be done? So far, by means of recording a macro, I've just got to: dispatcher = createUnoService(com.sun.star.frame.DispatchHelper)

[api-dev] error exporting file

2005-03-11 Thread Chen, Yu
Had anyone seen the error below? Any ideas what could go wrong? I can run the same program run on one box, but not the other w/ the following error... Thanks! Connecting: uno:socket,host=localhost,port=8200;urp;StarOffice.ServiceManager Adding data props Loading

[api-dev] Up to date IDL and slots

2005-03-13 Thread Ian Laurenson
I would like to have up to date references for IDL and slots (for UNO dispatch calls). I have downloaded and extracted OOo_2.0beta_src.tar.gz but I can not work out how to compile the IDL reference. Similarly, I can't work out how to find what slots or UNO dispatch calls are available. I would

Re: [api-dev] [code snippet] Drawing on Uno Dialogs

2005-03-14 Thread Tom Schindl
Paolo Mantovani wrote: Hi Christian, Alle 15:40, venerdì 11 marzo 2005, Christian Junker ha scritto: Tom, or whoever is responsible that this codesnippet works, please check the syntax before posting it online. I quickly looked over it to see how Paolo managed to draw on a dialog, but found this

Re: [api-dev] Up to date IDL and slots

2005-03-14 Thread Christian Junker
Hi Ian, it should be part of the odk module or sdk_oo, at least that's what it used to be. The API project page even tells us about the modules on its front page. As for the slots (slots.sxc), I don't think it is part of the source code. -- Best Regards Christian Junker On Mon, 14 Mar 2005

Re: [api-dev] Search text and insert page break

2005-03-14 Thread Cristian Fonti
Hi, Thank for the help, i'm be able to do it, i use findFirst and findNext with TextRange, as you suggest to me! I have only another question: in my program i use to import others documents (file RTF) in a new blank document, insertDocumentFromURL, all is ok, but, in the new document, there are

Re: [api-dev] [code snippet] Drawing on Uno Dialogs

2005-03-14 Thread Jürgen Schmidt
Kohei Yoshida wrote: Hi Jürgen, On Fri, 11 Mar 2005 15:56:37 +0100, Jürgen Schmidt [EMAIL PROTECTED] wrote: Hi, yep, the awt API'S was deprecated in the past but in fact of a missing alternative we removed the deprecated flag. But you should not expect too much of this API. Now does that imply

Re: [api-dev] Up to date IDL and slots

2005-03-14 Thread Jürgen Schmidt
Hi Ian, an updated reference is part of the Beta SDK. - Juergen Ian Laurenson wrote: I would like to have up to date references for IDL and slots (for UNO dispatch calls). I have downloaded and extracted OOo_2.0beta_src.tar.gz but I can not work out how to compile the IDL reference. Similarly, I

Re: [api-dev] contributing to the SDK Example Collection

2005-03-14 Thread Jürgen Schmidt
Hi Paolo, examples are always welcome. Let me say some words to the SDK. In general i would like to reduce the examples in the SDK (e.g. remove redundant examples) and reduce the examples in the SDK to the DevGuide related samples + some bigger real life scenarios or complex examples. The

Re: [api-dev] Up to date IDL and slots

2005-03-14 Thread Jürgen Schmidt
Hi Ian, mmh, i thought that a Beta SDK was available!? The IDL reference for the SDK is built in the sdk_oo (using autodoc). Creation of an usable overview of all slots (with some useful description) is as far as i know not so easy possible. I am not very familar with the dispatch API and the

Re: [api-dev] [code snippet] Drawing on Uno Dialogs

2005-03-14 Thread Kohei Yoshida
On Mon, 14 Mar 2005 10:28:26 +0100, Jürgen Schmidt [EMAIL PROTECTED] wrote: Kohei Yoshida wrote: Hi Jürgen, On Fri, 11 Mar 2005 15:56:37 +0100, Jürgen Schmidt [EMAIL PROTECTED] wrote: Hi, yep, the awt API'S was deprecated in the past but in fact of a missing alternative we removed

Re: [api-dev] Problem with insertDocumentFromURL

2005-03-15 Thread Cristian Fonti
Andrew Douglas Pitonyak ha scritto: Cristian Fonti wrote: Hi to all, i have a problem using the method insertDocumentFromURL: when i use it to insert some formatted text (font size, font color,etc...) from another document, in the destination file appear at the top of the document 2-3 blank

Re: [api-dev] Problem with insertDocumentFromURL

2005-03-15 Thread Mathias Bauer
Cristian Fonti wrote: Hi to all, i have a problem using the method insertDocumentFromURL: when i use it to insert some formatted text (font size, font color,etc...) from another document, in the destination file appear at the top of the document 2-3 blank row... the code snipplets is:

Re: [api-dev] Up to date IDL and slots

2005-03-15 Thread Mathias Bauer
Christian Junker wrote: Hi Ian, it should be part of the odk module or sdk_oo, at least that's what it used to be. The API project page even tells us about the modules on its front page. As for the slots (slots.sxc), I don't think it is part of the source code. ... and it needs an update

Re: [api-dev] contributing to the SDK Example Collection

2005-03-15 Thread Tom Schindl
Jürgen Schmidt wrote: Hi Paolo, [...] What do you think Tom, is it possible to reuse the code snippet work flow for complete examples? - Juergen Yes to some extend. I need more time to think about it more thoroughly. I'll come up with something it the next days. I think we should try to bring

Re: [api-dev] [code snippet] Property Browser Controller

2005-03-15 Thread Laurent Godard
Hi Paolo, That's great Thanks for feeding us with such intrresting things a question about dealing with framles and windows. Do you have an idea how to make a windows dockable as the stylist or the navigator ? Thanks again for the snippet Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie

Re: [api-dev] [code snippet] Property Browser Controller

2005-03-15 Thread Tom Schindl
Paolo Mantovani wrote: Hi Tom, Alle 11:09, martedì 15 marzo 2005, Tom Schindl ha scritto: Hi Paolo, Paolo Mantovani wrote: [...] For Tom: I've tried to use the new extensions: {see $IDL_Reference} {link $IDL_Reference} I hope to have done it correctly, but please, have a look before to put the

Re: [api-dev] [code snippet] Property Browser Controller

2005-03-15 Thread Jürgen Schmidt
Hi Tom, Tom Schindl wrote: Paolo Mantovani wrote: Hi Tom, Alle 11:09, martedì 15 marzo 2005, Tom Schindl ha scritto: Hi Paolo, Paolo Mantovani wrote: [...] For Tom: I've tried to use the new extensions: {see $IDL_Reference} {link $IDL_Reference} I hope to have done it correctly, but please, have

[api-dev] TabStop

2005-03-15 Thread Cristian Fonti
Hi, Someone can help me in the implementation of TabStop with Java and the OOo Api?? Thank to all. Cristian Fonti - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[api-dev] TabStop...

2005-03-15 Thread Cristian Fonti
Sorry for the similar message, but the first was wrong. I use this code to create 2 tabStop: TabStop tb[]=new TabStop[2]; tb[0]=new TabStop(); tb[0].Position=8500; tb[0].Alignment=com.sun.star.style.TabAlign.CENTER; tb[1]=new TabStop();

Re: [api-dev] [code snippet] Property Browser Controller

2005-03-15 Thread Paolo Mantovani
Alle 12:25, martedì 15 marzo 2005, Laurent Godard ha scritto: Hi Paolo, That's great Thanks for feeding us with such intrresting things a question about dealing with framles and windows. Do you have an idea how to make a windows dockable as the stylist or the navigator ? I'm trying from

Re: [api-dev] Problem with insertDocumentFromURL

2005-03-15 Thread Andrew Douglas Pitonyak
Cristian Fonti wrote: Andrew Douglas Pitonyak ha scritto: Cristian Fonti wrote: Hi to all, i have a problem using the method insertDocumentFromURL: when i use it to insert some formatted text (font size, font color,etc...) from another document, in the destination file appear at the top of

Re: [api-dev] setting OOo options

2005-03-15 Thread Markus Plessing
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jorge Marques Pelizzoni wrote: | Hi, all! | | I'd like to write a macro setting some of OOo's options (Menu | Tools-Options) programatically. Can this be done? | | So far, by means of recording a macro, I've just got to: | | dispatcher = |

Re: [api-dev] Problem with insertDocumentFromURL

2005-03-16 Thread Cristian Fonti
Andrew Douglas Pitonyak ha scritto: Cristian Fonti wrote: Andrew Douglas Pitonyak ha scritto: Cristian Fonti wrote: Hi to all, i have a problem using the method insertDocumentFromURL: when i use it to insert some formatted text (font size, font color,etc...) from another document, in the

Re: [api-dev] Test: Undeliverable Mails von der Liste?

2005-03-16 Thread Markus Plessing
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nochmal Hallo, | Hallo, | | dies soll ein Test sein, da ich gerade auf eine Mail, die ich an | die Liste geschickt habe 5 Undeliverable Mail-Meldungen | zurückbekommen habe mit meiner Nachricht, die aber auf der Liste | bereits angekommen ist, als

Re: [api-dev] Test: Undeliverable Mails von der Liste?

2005-03-16 Thread Tom Schindl
yes. because your mail-header includes -8- ... Errors-To: [EMAIL PROTECTED] ... -8- I'm not sure who is inserting this header but maybe check your mail-client. Other mails do not include this header thus don't receive these messages

Re: [api-dev] Create a blank sheet into a clac document

2005-03-16 Thread Niklas Nebel
babar wrote: I would like to know how to create a newblank sheet into an existing spreadsheet document, I'm using basic language for now. I've tried to use (and first understand ;) this : http://codesnippets.services.openoffice.org/Calc/Calc.CopySheet.snip Inserting a blank sheet is much easier

Re: [api-dev] Test: Undeliverable Mails von der Liste?

2005-03-16 Thread Markus Plessing
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello Tom, *, | yes. because your mail-header includes | | -8- ... Errors-To: | [EMAIL PROTECTED] ... | -8- [...] | | I'm not sure who is inserting this header but maybe check your |

Re: [api-dev] Create a blank sheet into a clac document

2005-03-16 Thread Tom Schindl
Nevertheless the snippet is now working with copy and paste. http://codesnippets.services.openoffice.org/Calc/Calc.CopySheet.snip Tom Niklas Nebel wrote: babar wrote: I would like to know how to create a newblank sheet into an existing spreadsheet document, I'm using basic language for now. I've

Re: [api-dev] Closing a Document

2005-03-16 Thread Tom Schindl
I'm not completely sure but I think you have to register a terminate listener like this: http://api.openoffice.org/docs/DevelopersGuide/OfficeDev/OfficeDev.htm#1+1+2+Using+the+Desktop Only a wild guess though. Tom Ines Pfauch wrote: Hi I just searched the mailing list archive for a method to

[api-dev] How to protect from disposed exception?

2005-03-16 Thread Bob Crothers
Hi, We have a multi-threaded Java environment. We are using OpenOffice.org 1.1.3. There are times when we make a series of UNO calls (mostly setting properties, save, and call macros) and also get a series of exceptions. The exceptions follow:

Re: [api-dev] TabStop...

2005-03-16 Thread Michael Hoennig
Hi Cristian, Now, how can i go in the tabstop(like using the key tab) Just use a TAB (ASCII 9) in your string. Too simple? XTextCursor xt = (XTextCursor)UnoRuntime.queryInterface(XTextCursor.class,tb[0]); Here you query an XTextCursorfrom a TabStop struct? That should throw an

Re: [api-dev] How to protect from disposed exception?

2005-03-16 Thread Thomas Schindl
Hi, I don't know if these exceptions are related to that but OO is not thread save thus you have to serialize calls to it in your java-app. Tom Hi, We have a multi-threaded Java environment. We are using OpenOffice.org 1.1.3. There are times when we make a series of UNO calls (mostly

Re: [api-dev] [code snippet] Drawing on Uno Dialogs

2005-03-16 Thread Michael Hoennig
Hi Kohei, no, they will probably not extended and i hope that we will find an alternative (however it will look like) that it will be possible to implement own dialogs for extensions with the same look and feel as the rest of the office on all supported platforms. Easy to create (GUI

Re: [api-dev] [code snippet] Drawing on Uno Dialogs

2005-03-16 Thread Thomas Schindl
Hi, would it be easier to use SWT? Tom Hi Kohei, no, they will probably not extended and i hope that we will find an alternative (however it will look like) that it will be possible to implement own dialogs for extensions with the same look and feel as the rest of the office on

Re: [api-dev] Problem with insertDocumentFromURL

2005-03-16 Thread Marc Santhoff
Am Mi, den 16.03.2005 schrieb Michael Hoennig um 21:22: [...] For the second usage of gotoEnd(), also collapseToEnd() should work. See reference manual for more information. And better do not use view cursors for model based functionality, as Marc suggested. You're right, I assumed the

Re: [api-dev] IDL-Reference

2005-03-16 Thread Michael Hoennig
Hi Tom, I suppose that the IDL-Reference Properties are ordered at the moment using the occurrence of the properties in the IDL-File. The good point about this is that you can group together things like RightMargin and LeftMargin but for someone who is looking for a property it would be

Re: [api-dev] Closing a Document

2005-03-16 Thread Mathias Bauer
Ines Pfauch wrote: Hi I just searched the mailing list archive for a method to close an open document. I found something with XStoreable - close and XComponent - dispose. I tried it, but the whole OOo window closes. But I need the OOo window opened, and just want to close the document

Re: [api-dev] How to protect from disposed exception?

2005-03-16 Thread Stephan Bergmann
Bob Crothers wrote: Hi, We have a multi-threaded Java environment. We are using OpenOffice.org 1.1.3. There are times when we make a series of UNO calls (mostly setting properties, save, and call macros) and also get a series of exceptions. The exceptions follow:

Re: [api-dev] IDL-Reference

2005-03-16 Thread Thomas Schindl
Hi, How is the IDL created? Maybe we could switch to output format to XML and then do the same the codesnippet page does? XML = HTML * once sorted alphabetically * once grouped like it is now According to the what the user desires? We could even create other output formats from this point on

Re: [api-dev] IDL-Reference

2005-03-17 Thread Michael Hoennig
Hi Thomas, How is the IDL created? For my case, using vim ;-) Maybe we could switch to output format to XML and then do the same the codesnippet page does? XML = HTML * once sorted alphabetically * once grouped like it is now Oh, you meant how the HTML is generated from the IDL. Ok,

Re: [api-dev] Closing a Document

2005-03-17 Thread Michael Hoennig
Hi Mathias, I just searched the mailing list archive for a method to close an open document. I found something with XStoreable - close and XComponent - dispose. I tried it, but the whole OOo window closes. But I need the OOo window opened, and just want to close the document within the

[api-dev] Bookmark...

2005-03-17 Thread Cristian Fonti
Hi to all, can and eventually how, i select the text between two bookmarks??? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [api-dev] [code snippet] Drawing on Uno Dialogs

2005-03-17 Thread Kohei Yoshida
On Thu, 17 Mar 2005 09:21:32 -0500, Kohei Yoshida [EMAIL PROTECTED] wrote: ... My desire is to see UNO offer Swing compatible API (especially the layout support among other things), similar to how it offers AWT compatible API *today*, but the actual rendering is still done by VCL for platform

Re: [api-dev] IDL-Reference

2005-03-17 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nikolai Pretzell wrote: | Hi Thomas, | [...] | Actually creating XML ouput is planned to be realised already anyway. | Having XML would be enough form my point of view because one can do sorting, ... with XSLT. | Adding alphabetical lists like in one

[api-dev] error with pkgchk and windows

2005-03-17 Thread Ines Pfauch
Today I tried to use my java-addon (developed under linux) with OOo 1.1.2 at windows. After deploying the functions in the addon submenu were greyed out. In the log file from pkgchk I've found following error: warning: registering vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages/

Re: [api-dev] Writer: position of elements on the page

2005-03-17 Thread sos
Yes they are stored as property values Hori and Vert OrientPosition Folowing code shows in basic how to uses postion and reposition a simple graphic, objects, frames etc uses the same services (i think) oGraphic.AnchorType = lAnchor oGraphic.PositionProtected = True

Re: [api-dev] XDispatch, oo macro parameters, macro libraries

2005-03-18 Thread Mathias Bauer
John Sisson wrote: Hello, Documentation for oo development implies that soffice macros invoked from a (connected) client by the client-side method: myXDispatch.dispatch(myMacroUrl, myPropertyValueArray) can receive method parameters, but it does not state how this is done. Given a method

Re: [api-dev] IDL-Reference

2005-03-18 Thread Michael Hoennig
I like the javadoc approach, where all the methods [fields, constructors] of a class are listed alphabetically in the overview section, but in textual order in the detailed list that follows the overview. That's a good idea to follow. Michael -- Michael Hoennig [EMAIL

Re: [api-dev] IDL-Reference

2005-03-18 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael Hoennig wrote: |I like the javadoc approach, where all the methods [fields, |constructors] of a class are listed alphabetically in the overview |section, but in textual order in the detailed list that follows the |overview. | | | That's a good

Re: [api-dev] IDL-Reference

2005-03-18 Thread Nikolai Pretzell
Stephan Bergmann wrote: I like the javadoc approach, where all the methods [fields, constructors] of a class are listed alphabetically in the overview section, but in textual order in the detailed list that follows the overview. Sounds good to me! Make a task from it? Nikolai

Re: [api-dev] Table width

2005-03-18 Thread Cristian Fonti
Nothing to do... i try your code but nothing, the table remain into the page margin... (if i use TextFrame all is ok, but it create into the Frame a paragraph break after the table, pratically a blank line after the table, eventually, i can remove it??)... This is my Java code: Object table =

Re: [api-dev] Table width

2005-03-18 Thread Stephan Wunderlich
Hi Cristian, This is my Java code: Object table = xWriterFactory.createInstance(com.sun.star.text.TextTable); XTextContent xTextContentTable = (XTextContent)UnoRuntime.queryInterface(XTextContent.class, table); XPropertySet

Re: [api-dev] Table width

2005-03-18 Thread Cristian Fonti
I try to set the properties also after that before, but nothing... I have another problems: i want to change the column width values, and i suppose that he only way to change them is use TextColumnSeparator. But,the value that you must insert, what is? is a formula of what?? is the distance from

Re: [api-dev] Table width

2005-03-18 Thread Steffen Grund
Hi there. Right, it's the property TableColumnSeparators. Please see chapter 7.3.4 Tables of the Developer's Guide: http://api.openoffice.org/docs/DevelopersGuide/Text/Text.htm#1+3+4+Tables The TextColumnSeparator describes the distance between the column separator and the left margin of the

[api-dev] Problem with TableColumnSeparators

2005-03-18 Thread Cristian Fonti
Hi to all, i have a problems with the width of the column in a table (with Writer), i use Java, and i found that the only method is TableColumnSeparators. I try it but i don't understand what is the value that must be set... --This is an example of my code with a table (1,4):

<    1   2   3   4   5   6   7   8   9   10   >