Bug 109223 - KWord ignores lists indent after importing an Open Document file
Summary: KWord ignores lists indent after importing an Open Document file
Status: RESOLVED FIXED
Alias: None
Product: kword
Classification: Miscellaneous
Component: general (show other bugs)
Version: 1.5 or before
Platform: Mandriva RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Thomas Zander
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-17 20:58 UTC by Cedric Motsch
Modified: 2005-07-18 13:37 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Test file (8.64 KB, application/octet-stream)
2005-07-18 08:52 UTC, Cedric Motsch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cedric Motsch 2005-07-17 20:58:28 UTC
Version:           1.4 (using KDE KDE 3.3.2)
Installed from:    Mandriva RPMs
OS:                Linux

I tried to create a simple Open Document file (with OpenOffice 1.9.113) with a 2-level list :

- item 1
- item 2
  * item 2.1
  * item 2.2
- item 3

When I imported this document in KWord, all lists items lost their ident space :
- item 1
- item 2
- item 2.1
- item 2.2
- item 3

I thought first that list levels were just ignored, but after looking at the XML file and choosing a custom numbering, they are still preserved, even after editing in KWord.

It looks like the "text:style-before" attribute inside the "style:list-level-properties" element is ignored by KWord.
Comment 1 David Faure 2005-07-17 22:35:46 UTC
Hello,
thanks for your report.
Can you attach a test document?
Thanks.
Comment 2 Cedric Motsch 2005-07-18 08:52:56 UTC
Created attachment 11831 [details]
Test file

Hello,

Here is the file I created.
Comment 3 David Faure 2005-07-18 11:45:42 UTC
Ah, space-before, not style-before ;-)
Now I see. I'll have a look at fixing that.
Comment 4 David Faure 2005-07-18 12:19:11 UTC
SVN commit 435818 by dfaure:

OASIS OpenDocument support:
   Fixed loading of font sizes specified as a percentage
   Implemented loading of list indentation (space-before) (#109223)
   Improved OOo compatibility when saving page breaks
BUG: 109223


 M  +2 -0      kword/CHANGES  
 M  +2 -3      kword/kwdoc.cc  
 M  +2 -0      lib/kofficecore/koGenStyles.h  
 M  +2 -2      lib/kofficecore/koStyleStack.cc  
 M  +1 -1      lib/kotext/koliststylestack.cc  
 M  +1 -1      lib/kotext/koliststylestack.h  
 M  +3 -2      lib/kotext/kooasiscontext.cc  
 M  +5 -1      lib/kotext/kooasiscontext.h  
 M  +3 -3      lib/kotext/koparaglayout.cc  
 M  +2 -1      lib/kotext/koparaglayout.h  
 M  +1 -1      lib/kotext/kostyle.cc  
 M  +8 -1      lib/kotext/kotextparag.cc  
Comment 5 David Faure 2005-07-18 13:37:45 UTC
PS: note that OOo currently does not load <text:numbered-paragraph>, so most of the document disappears
when saving in KWord and loading that in OpenOffice.org. This is an OOo bug, I'm talking to the OOo developers
about it.