OpenOffice-OODoc - Correct work with lists

Posted on Mon Apr 7 02:40:58 2008 by dimytch
Correct work with lists
Hi. Sure, I lose something important when chewing documentation, but can`t get what to do with enclosed lists. I try to write a simple script that export whole document in simple XML manner, as
<list-level-0>some some other <list-level-1>some recursive</list-level-1> </list-level-0> <Title level 0>The Main Title</Title level 0>
etc. I use for that simple loop:
@text=$doc->getTextElementList(); for $p (@text){ $stnam=$doc->textStyle($p); if($p->isItemList()){ $stlist=$doc->getStyleElement($stnam, namespace=>'text');
But when I get the list - I get only outer paragraph, and nothing about what is that list - numbered, or not, and what is a level. I can`t find proper style of listitem - $stlist in this example is always undef. I has read a thread about lists - http://www.cpanforum.com/threads/2364 - but nothing helped me :(

Please, show me the good way.

Direct Responses: 7630 | Write a response