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 2005-09-17 20:59:58-07 by bob
Using tables (sections) from oowriter templates
Jean Marie,

Thanks for your help and bug fixes.

I set up an oowriter template file containing 2 separate tables and 2 'sections' formatted for 2 or 3 columns.

I thought I could locate the tables by using their names, but that did not work.

I couldn't see how to use getTableList because I could not see how to translate a member of that list to a table name or identify what the elements referred to.

I had to add some text into the table and then use the select ElementsbyContent for example:

my @list = $b_content->selectElementsByContent('4_col);


The only way I could see to find all the components of the template file was by going through the document paragraph by paragraph:

for (0..100) { my $content=$b_content->getParagraphText($_); print "$_ ==> $content\n" if $content;}


Is there a way to access/create a reference to a table by way of its name ?

Is there a way to use the itelms in the getTableList to identify to which table it refers ?

I'm a bit puzzled by appendElement. I used it as in the example:

my $root_element = $content->getBody; $content->appendElement($root_element,$list[0]);


And it appended the table into the middle of my document.

How would I go about appending to some other location in the target document ?

Is there an easier way to transfer an oowriter table from one document to another ?

Finally I did not see anything in the documentation about using 'sections'. I wanted to be able to designate portions of a page or document as having more than column.

When I tried to copy a section template from one document to the next, it did not seem to work as it displayed only 1 column (and not the 2 that I expected).

Are oowriter 'sections' supported ?

Thanks again.
Bob

BTW you are welcome to reply to bob@chicopmr.org. I sure like the idea of the cpanforum, but it needs a bit of work. Posting in HTML is a pain -- as far as I am concerned.
Direct Responses: 1020 | Write a response