Problem with margin in paragraph

Java, C++, C#, Delphi... - Using the UNO bridges
Post Reply
lunter
Posts: 28
Joined: Fri May 29, 2009 9:16 am

Problem with margin in paragraph

Post by lunter »

Hi,

Code: Select all

//php

 $bo=$o->Bridge_GetStruct('com.sun.star.table.BorderLine');
 $bo->InnerLineWidth=0;
 $bo->OuterLineWidth=10;
 $bo->Color=0x000000;
 $bo->LineDistance=0;

 ps($d,'ph',array('BottomBorder'=>$bo,'ParaBackColor'=>0xcccccc));
// this line execute my function to create ParagraphStyles named 'ph'

 $s=$d->StyleFamilies->getByName('PageStyles')->getByName('Standard');
 $s->HeaderIsOn=true;
 $t=$s->HeaderText->Text;
 $c=$t->createTextCursor();

 $c->paraStyleName='ph';
 $t->insertString($c,'header',false);
1. I have defined header (PageStyles->Standard). There is in this header one paragraph with BottomMargin with BorderLine set to black.
2. How to create space inside this paragraph under black borderline ?

Oops. Moved back to the External programs forum (once the Code section was added I realised it wasn't a regular Writer topic) (The Gurkha, Moderator).
Last edited by lunter on Wed Jun 03, 2009 5:13 pm, edited 1 time in total.
OOo 3.3.X on MS Windows 7
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: problem with margin in paragraph

Post by acknak »

Format > Paragraph > Indents & Spacing > Spacing > Below paragraph

If you're using this for headings, then you probably want to make your own heading style, so you can easily and consistently apply the same formatting to all your headings.
AOO4/LO5 • Linux • Fedora 23
lunter
Posts: 28
Joined: Fri May 29, 2009 9:16 am

Re: problem with margin in paragraph

Post by lunter »

Ok, but witch property determines paragrap's spacing width?
http://api.openoffice.org/docs/common/r ... rties.html
OOo 3.3.X on MS Windows 7
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: problem with margin in paragraph

Post by acknak »

Oops. Sorry, I missed that this was under the macros area. I thought you were using the GUI.
AOO4/LO5 • Linux • Fedora 23
Post Reply