https://bugs.freedesktop.org/show_bug.cgi?id=43398

--- Comment #8 from Roman Eisele <b...@eikota.de> 2011-12-03 01:10:38 PST ---
Looking at the LibreOffice source code is difficult and maybe megalomaniac for
me, as I have never been involved in a programming project of this size and
complexity (I just have done some little tools for my personal use). But I
can’t resist. Well: In
    writerfilter/source/ooxml/model.xml
(line 22020), the paragraph element "bidi" gets the tokenid "sprm:PFBiDi". So
we have to look for "PFBiDi". But the function DomainMapper::sprmWithProps() in
    writerfilter/source/dmapper/DomainMapper.cxx
handels the case NS_sprm::LN_PFBiDi very simply (lines 1830-1834):

    rContext->Insert(PROP_WRITING_MODE, false,
uno::makeAny(text::WritingMode2::RL_TB ));
    rContext->Insert(PROP_PARA_ADJUST, false, uno::makeAny(
style::ParagraphAdjust_RIGHT ));

without (as it appears to me) looking at the attributes of the bidi element (no
attempt to look at nIntValue or sStringValue in lines 1830-1834).

So, either the attribute of the <w:bidi .../> tag is handled elsewhere, or it
is not handled at all. This would easily explain the error reading this DOCX
file.

Please forgive me if I’m totally wrong ...

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to