Docx style
Michael Stahl
mstahl at redhat.com
Mon Sep 30 08:52:17 PDT 2013
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 :)
More information about the LibreOffice
mailing list