Thread

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
Posted on Thu Apr 10 00:17:29 2008 by dimytch in response to 7600
Re: Correct work with lists
Next step: I wrote a kindascript. It is here - pekarovsky.com.ua/odt2simple.pl . That do the job, but it do`nt parse spans and tables. Use it with GPL. Comments and mods are welcome, if anybody is interested.
Direct Responses: 7631 | Write a response
Posted on Thu Apr 10 00:36:10 2008 by dimytch in response to 7630
Re: Correct work with lists
Sorry, correct path is http: slash slash pekarovsky.com.ua/soffice/odt2simple.zip
Write a response