[api-dev] Re: [Spam] Re: [api-dev] python: create table without Borders in .odt

2008-05-28 Thread Fernand Vanrie

Martin Klar wrote:

Alexandro Colorado schrieb:
On Tue, 27 May 2008 17:16:06 -0500, Martin Klar 
[EMAIL PROTECTED] wrote:



Alexandro Colorado wrote:


 Have u import the Table interface?
How do I do that? How to use the Table Interface? Sorry, I'm quite 
new to OO/python.


Martin


Well if you got the table already in the document that means that you 
already have it. I am not sure how the interfaces handle the 
formating it might not depend from tables but from tables.styles. I 
will check the IDL for this, the IDL might help you find the right 
method or structure.

I don't use the IDL, simply an text editor.

So far I did some clicking around and found this:
http://api.openoffice.org/docs/common/ref/com/sun/star/table/TableBorder.html 




I was there several times, but I don't understand, how to deal with, e.g.

TopLine
BorderLine 
http://api.openoffice.org/docs/common/ref/com/sun/star/table/BorderLine.html 
*TopLine*;



*Description*
   determines the line style at the top edge.

Somehow I have to create an instance of Borderline, then apply it to 
my table. This is the Problem.


Martin

Martin,

There is a OO-extention BorderLiner with code in Basic and also a 
version  in Java , have a look at the basic version it will give a 
answer at all you TableBorder -questions


Fernand




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[api-dev] Backgroundcolor of page in Impress

2008-05-28 Thread Cor Nouws

Hi *,

In Impress, I can get the page and also read / write
oPage.BackGround.FillColor
or  oPage.BackGround.setProtertyValue (FillColor, 16777215)
However, whatever I write, I see no effect on the actual slide.

Any idea?

Thanks,
Cor


--

The Year of 3 -2008- Het jaar van 3

Cor Nouws
Arnhem - Netherlands - nl.OpenOffice.org - marketing contact


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[api-dev] Re: [Spam] [api-dev] Backgroundcolor of page in Impress

2008-05-28 Thread Fernand Vanrie

Cor Nouws wrote:

Hi *,

In Impress, I can get the page and also read / write
oPage.BackGround.FillColor
oroPage.BackGround.setProtertyValue (FillColor, 16777215)
However, whatever I write, I see no effect on the actual slide.

Any idea?

Cor,

In writer the background is part off the pagestyle so i supose the same 
thing for impress ?


Greetz

Fernand



Thanks,
Cor





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [api-dev] Re: [Spam] [api-dev] Backgroundcolor of page in Impress

2008-05-28 Thread Cor Nouws

Hi Ferand,

Fernand Vanrie wrote (28-5-2008 14:41)

Cor Nouws wrote:



In Impress, I can get the page and also read / write
oPage.BackGround.FillColor
oroPage.BackGround.setProtertyValue (FillColor, 16777215)
However, whatever I write, I see no effect on the actual slide.

Any idea?


In writer the background is part off the pagestyle so i supose the same 
thing for impress ?


Yes, in Impress we have the Masterpage.
But setting the backgound color proptery of that has the same effect: 
none :-(


Regards,

--

The Year of 3 -2008- Het jaar van 3

Cor Nouws
Arnhem - Netherlands - nl.OpenOffice.org - marketing contact


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [api-dev] python: create table without Borders in .odt

2008-05-28 Thread Martin Klar

Ariel Constenla-Haile escribió:

Hi Martin,

Martin Klar escribió:

Hi there,

I can't create a table without borders, i.e. with borders of zero width.


it's not so difficult, see how structs are mapped to Python in
http://udk.openoffice.org/python/python-bridge.html#mapping


Thank you, that helped very much. It worked as intended.

Martin

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]