[api-dev] Current Screen Size under WindowsXP

2007-07-12 Thread Fernand Vanrie
Hallo, HOw can I find out the Current ScreenSize of o Window XP box using the OO-api and starbasic ? Thanks for any hint Fernand - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[api-dev] MODEL and CONTROL have different size ?why have

2007-07-12 Thread Fernand Vanrie
Hallo again, Recantly i experienced that the Model and the Control of an dialog ellement have different sizes more: when setting the userGUI scaling to 100% then the ratio between Model and Control is 1.95 for the Vertical dimensions 1.62 for the Horizontal dimensions This ratio's

Re: [api-dev] MODEL and CONTROL have different size ?why have

2007-07-12 Thread Paolo Mantovani
Hi Fernand, Alle 11:11, giovedì 12 luglio 2007, Fernand Vanrie ha scritto: Hallo again, Recantly i experienced that the Model and the Control of an dialog ellement have different sizes more: when setting the userGUI scaling to 100% then the ratio between Model and Control is 1.95 for

Re: [api-dev] MODEL and CONTROL have different size ?why have

2007-07-12 Thread Fernand Vanrie
Paolo Mantovani wrote: Hi Fernand, Alle 11:11, giovedì 12 luglio 2007, Fernand Vanrie ha scritto: Hallo again, Recantly i experienced that the Model and the Control of an dialog ellement have different sizes more: when setting the userGUI scaling to 100% then the ratio between Model and

Re: [api-dev] NumberingLevel paragraph property....

2007-07-12 Thread ashok _
If the property is named ParaChapterNumberingLevel when accessed from Basic, it should have the same name when accessed from Java. Thank you very much, this seems to have sorted it out I used NumberingLevel because the API documentation seems to refer to that, rather than

[api-dev] Current Screen Size under WindowsXP

2007-07-12 Thread Fernand Vanrie
Hallo, HOw can I find out the Current ScreenSize of o Window XP box using the OO-api and starbasic ? Thanks for any hint ok: found a solution miself awttoolkit.getdesktopwindow always gives null object so: useless a workaround at condition the OO-aplication is diplayed at full screen sie:

Re: [api-dev] Resetting to default character style

2007-07-12 Thread ashok _
Have you thought of using the DispatchHelper api ? Something like (in basic): dim args(1) as new com.sun.star.beans.PropertyValue args(0).Name = Template args(0).Value = Default args(1).Name = Family args(1).Value = 2 dispatcher.executeDispatch(document, .uno:StyleApply, , 0, args()) On

[api-dev] Re: Resetting to default character style

2007-07-12 Thread Zbigniew Banach
Have you thought of using the DispatchHelper api ? Something like (in basic): dim args(1) as new com.sun.star.beans.PropertyValue args(0).Name = Template args(0).Value = Default args(1).Name = Family args(1).Value = 2 dispatcher.executeDispatch(document, .uno:StyleApply, , 0, args())

Re: [api-dev] Resetting to default character style

2007-07-12 Thread Fernand Vanrie
ashok _ wrote: Have you thought of using the DispatchHelper api ? Something like (in basic): dim args(1) as new com.sun.star.beans.PropertyValue args(0).Name = Template args(0).Value = Default args(1).Name = Family args(1).Value = 2 dispatcher.executeDispatch(document, .uno:StyleApply, , 0,

[api-dev] Draw imported graphic size

2007-07-12 Thread Laurent Godard
Hi all in java i want to import a graphic in a draw document seems to work but the only problem is that it is 100 height width, no matter the original size how can i have my image imported with the correct proportion size so that i can select it (to export it) here is a snippet of where

[api-dev] Getting information of XDependentTextField

2007-07-12 Thread Michael Jeier
Hi, I have a problem regarding the use of TextFields in Writer. I create a XDependentTextField and set the name and content of it. Then I insert it into a table. When I want to read the information, I have some difficulties. I got the XCell of the table and out of this I want to get the

[api-dev] Re: Resetting to default character style

2007-07-12 Thread Zbigniew Banach
Fernand Vanrie napisał(a): you can also use *setAllPropertiesToDefault*(); as a direct change to the selctect text Thanks for the hint -- that set me in the right direction. I just want the character style set to default, so the actual call I need is:

Re: [api-dev] Is there an example for packaging macros as an extension somewhere

2007-07-12 Thread Samuel Knipe
From: Rony G. Flatscher [EMAIL PROTECTED] Reply-To: dev@api.openoffice.org To: dev@api.openoffice.org Subject: Re: [api-dev] Is there an example for packaging macros as an extension somewhere ? Date: Wed, 11 Jul 2007 18:50:40 +0200 Hi Laurent, Laurent Godard wrote: As other macros than