I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2010-04-11 02:52:48.062454-07 by perlbroker
OpenOffice::OODoc -- Table Padding

I have tried various styles settings, including from the documentation and from this forum, like columnStyle, but they simply did not work.

I would like to know how to set:

1. Text alignment for the whole column, for example to become right aligned.

2. Padding for the table, that is the option TABLE - Spacing from contents, to have 1mm spacing.

I appreciate every help for table or column based styles.

.
Direct Responses: 12625 | Write a response
Posted on 2010-04-12 03:19:47.970843-07 by jmgdoc in response to 12624
Re: OpenOffice::OODoc -- Table Padding

The text alignment depends on paragraph styles, not table/cell styles. In order to right-align a paragraph (whatever its location, in a cell or not) this paragraph must be given a style whose 'fo:text-align' property is 'end'.

Column styles are mainly used in order to control column witdh. Padding may be controlled through cell styles. For example, if the desired spacing from contents is 1mm for every direction, one must set to '1mm' all the 'fo:padding-xxx' properties (where xxx is 'left', 'right', 'top' and 'bottom').
Direct Responses: 12664 | Write a response
Posted on 2010-04-24 03:33:32.12731-07 by perlbroker in response to 12625
Re: OpenOffice::OODoc -- Table Padding
If I change the style by hand, it looks like this:
<style:style style:name="registar.telInformation.A1" style:family="table-cell"> <style:table-cell-properties fo:padding="1.01mm" fo:border="none"/> </style:style> and then for each cell like: <table:table-cell table:style-name="registar.telInformation.A1" office:value-type="string"> <text:p text:style-name="Standard">Web</text:p> </table:table-cell>
and by software I tried to do like this:
$styles->createStyle ( 'TEL Cell', family => 'table-cell', properties => { -area => 'table-cell', 'fo:padding-left' => '1.00mm', 'fo:padding-right' => '1.00mm', 'fo:padding-top' => '1.00mm', 'fo:padding-bottom' => '1.00mm', 'fo:border' => '0.02mm solid #000000', });
and after the cell value, I applied the style:
$doc->cellValue($table1, $cellA, $desc); $doc->cellStyle($cellA, 'TEL Cell');
and so for each cell, but it does not get applied in the content.xml, although the style is visible in styles.xm What am I doing wrong?
Direct Responses: Write a response