Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


On 18/09/13 12:50, Faisal M. Alotaibi wrote:
Could you please elaborate a bit on exactly what do you want to do?

there a bug where paragraph style effect the RTL paragraph alignment.

when unzip docx file there styles.xml where
<w:style w:type="paragraph" w:default="1" w:styleId="Normal">
  <w:name w:val="Normal"/>
  <w:qFormat/>
  <w:pPr>
   <w:bidi/>
  </w:pPr>
</w:style>

i need to check the bidi tag if it is there

the filter has this for the "pPr" paragraph properties in
writerfilter/source/ooxml/model.xml:

    <resource name="CT_PPrBase" resource="Properties" tag="paragraph">
    ...
      <element name="bidi" tokenid="sprm:PFBiDi"/>

... which means that the OOXML tokenizer will send a sprm:PFBiDi to the
domain-mapper, which is apparently handled in
writerfilter/source/dmapper/DomainMapper.cxx:

    case NS_sprm::LN_PFBiDi:
        {
            if (nIntValue != 0)
            {
                rContext->Insert(PROP_WRITING_MODE, uno::makeAny( text::WritingMode2::RL_TB ));
                rContext->Insert(PROP_PARA_ADJUST, uno::makeAny( style::ParagraphAdjust_RIGHT ));
            }
        }

... which will probably end up as parameter to some call like
SwXText::finishParagraph()

hope this is enough to get you started on investigating what is going
wrong :)

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.