[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