[Libreoffice] fdo#42924: needs help with "tablehead" xml parsing

Korrawit Pruegsanusak detective.conan.1412 at gmail.com
Wed Nov 23 08:56:45 PST 2011


Hello Jan, all,

Following https://bugs.freedesktop.org/show_bug.cgi?id=42924,
this is an unfinished patch to check whether <tablecell> is empty.
Hope I was on the right way :)

Anyway, as commented in the code, how can I detect whether that row is
"tablehead" or not? Currently I just set role = tablecontent.
See http://cgit.freedesktop.org/libreoffice/help/tree/helpcontent2/source/text/scalc/01/04060107.xhp#n219
as an example.
The first tablecell (line 221-222) is empty.
Next 3 are with <paragraph role="tablehead" ...>
If I take an approach like in the patch, the first one won't be
"tablehead", and formatting will be a bit incorrect.
But IMHO the xml parser can't get back to parsed element, right?
So, suggestions are appreciated.

Or, will we take another approach by fixing the help file instead?
(bugzilla comment 2 by Andras)

Thanks :)
Best Regards,
-- 
Korrawit Pruegsanusak
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fdo42924-unfinished.patch
Type: application/octet-stream
Size: 1228 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20111123/673bc35e/attachment.obj>


More information about the LibreOffice mailing list