[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice
Subject:    Re: What kind of HTML is KWord supposed to be able to import?
From:       Frank Dekervel <Frank.dekervel () student ! kuleuven ! ac ! Be>
Date:       2002-06-06 19:07:58
[Download RAW message or body]

Op Thursday 06 June 2002 15:36, schreef Volker Augustin:
> what kind of HTML is KWord supposed to be able to import? A few documents I
> tried failed rather badly. The only thing that was visible after importing
> were the headlines. The body of the document was not visible at all. Only a
> few line break were to be seen. Marking random paragraphs suddenly caused
> parts of the first page to appear (and vanishes sometimes). The rest of the
> document remains hidden :-?

hi,
the problem is kword doesn't support multi-page inline frames yet. Tables get 
imported now (i disabled table support for 1.2beta btw, so there you should 
get atleast something readable) and get converted to inline tables in kword.

kword's kwanchor::draw doesn't know about multi-page inline frames yet, so 
drawing goes completely wrong. but thats not the only buggy place, there must 
be others (i think but i'm not sure at all in drawing of kwtextframeset)
also, there seem to be some other bugs that inhibit proper handling of big 
tables/frames: kwords 'show the page where the cursor is in' gets it wrong a 
lot of times, and there is work to be done in the code that moves an inline 
frame when the parent is too small. offcourse there are probably bugs in the 
html filter itself too.

so you can import docs without tables fine, but for supporting tables reliably 
(probably a problem of other filters importing complex layout) there is still 
a lot of (bugfixing) work to be done, so don't hold your breath for it.

the patch below disables tables in the html filter in case you need to import 
some html now:

RCS file: /home/kde/koffice/filters/kword/html/import/khtmlreader.cpp,v
retrieving revision 1.22
diff -u -2 -d -p -b -r1.22 khtmlreader.cpp
--- khtmlreader.cpp     2002/05/22 08:10:37     1.22
+++ khtmlreader.cpp     2002/06/06 19:01:56
@@ -234,5 +234,5 @@ bool KHTMLReader::parseTag(DOM::Element
        _PP(p);
        _PP(br);
-       _PP(table);
+       // _PP(table);
        _PP(pre);
        _PP(ul);

greetings,
frank

P.S. the html filter doesn't do CSS too. if someone has an idea (just an idea 
..) how to implement proper CSS support (<B> goes to font-style:bold with the 
html default stylesheet and so on) without getComputedStyles (khtml doens't 
implement it) please speak up..



____________________________________
koffice mailing list
koffice@mail.kde.org
To unsubscribe please visit:
http://mail.kde.org/mailman/listinfo/koffice
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic