From becb244b4974609b0570e8db27d74e7e1179181c Mon Sep 17 00:00:00 2001 From: Adam Co Date: Sun, 28 Apr 2013 18:41:20 +0300 Subject: [PATCH] Fixing Indentation RTL bug Change-Id: Ie8c3d30cb28afb97d4ded4ac67241ed18ab9e50c Reviewed-on: https://gerrit.libreoffice.org/3651 Reviewed-by: Tor Lillqvist Tested-by: Tor Lillqvist --- sw/qa/extras/ooxmlimport/data/indentation.docx | Bin 0 -> 16945 bytes .../source/ooxml/OOXMLFastContextHandler.cxx | 16 +++++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100755 sw/qa/extras/ooxmlimport/data/indentation.docx diff --git a/sw/qa/extras/ooxmlimport/data/indentation.docx b/sw/qa/extras/ooxmlimport/data/indentation.docx new file mode 100755 index 0000000000000000000000000000000000000000..cf57aaf5417ef6241e71598830b64d741b6537da GIT binary patch literal 16945 zcmeIZg=8l8e_<4r@2JE_ z6OKJG;tq$`Mzo~e`PwmqiOVLWd@)_L=C^Ubv^0JLMXN6ce^F8)t<8B@0~6Jd&N7qK z5u3Z?gK3OH@h*ftu8#dZ-c5D2_f8{tl$1S_c|FQ1_&$|o9wfzlV1DwdH$7O#6Saqk ze+2c#io$-3tSwj?O4xMJt&d_{q!((zR)oL;86lk6lxaups7$(Jm68es$sT;-i&Qu# zEG%_7KbI;J04C_N19oqCD8T0>?buBeX_9#%wfAnWaqTjoB+zbJz?Bq4H$%Du!}2*#`Ew?BAU@qFQkOmmOI%g z?9^n%qfZ3(KDfa`w*ut5K1AQ`Ib-qmHG;|I)?cGd2HG*mzP#c`N`q3W{Y>q%s?a3{ zLnPRotM}oMG4&%E|u>=att1vegf)&G+MOW*-`lZtI~?WkDL7w#re#j%vs(q zd{EWK+H-k}nMRTuwx0IQk?e_qx`w6;7KY8=qwFq}uy=fw4gvp8QI z3C9?OHU=y)n9$fs_d7@1P~Xzw+A&R#XUCgVz;SF^7tGy?y%|QvgwVm}!-h{>`?_U; z>lh%rE){qURPz!MYtv!+`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l~@);y}xs)sP8W>}vG8fA?4qwL$Thy>Ydb!}w%qQk)A%kxmxiK$~5Zv?W zfVBKrGSU<4%!FZzB?gS>56k=(_cFS@sv6o5Gl#PTkGUfRDNBfO$atuo8A-y4PT=?b zZfjvA&R0C~B0k>iXM;(gmHAuIlWk%TA>CW6Qm2?C&bc${G z1>uH82}ZRH-e*=PI=Ym(82uN)*z?wcKGo?R9;y{Wv>%a@x|e(;>x@|_kK(aK)v_N! zN#D#Q3{bL!hXBe?SA;Sj$OZ~Br%EE@3yybBNgfH+AZ0W(hcXG3iG7#DfN!x zYqla2c_5bWa-cy>E`MZ5wr8JNH7=zVrYTa+-o~f4zvd~RVD!LC*neKr{xAIa@3;T3 z!d*%Bp923}P5a-Lz{UXZTKTuNwSOA^bBW>K4Ud5l{r|P#@K2>bmyi9Wr49QprN1vG z`_uf-+WEiCGg1C!{%0lqpAvu8DE=kkj`c5zzgH~&Y5r%u(qHDKzARvFvVE?rKC))qrTA2NB*8c|mKh6K-vcCj+ zfgtxkDeX`DKlAfn_Rrk^vi~Dn|Ech2!uU&}g7;qv|41K7vXH=G3Ic)%{E-HZ^l5=# G|NTF`-616a literal 0 HcmV?d00001 diff --git a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx index 81ac2717b4a8..33ab0e5914ca 100644 --- a/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx +++ b/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx @@ -52,6 +52,8 @@ static const sal_uInt8 cFieldStart = 0x13; static const sal_uInt8 cFieldSep = 0x14; static const sal_uInt8 cFieldEnd = 0x15; +static const sal_uInt16 paragraphProperties_sprmPFBiDi = 0x2441; + namespace writerfilter { namespace ooxml { @@ -1596,7 +1598,19 @@ void OOXMLFastContextHandlerValue::setDefaultBooleanValue() if (mpValue.get() == NULL) { - OOXMLValue::Pointer_t pValue(new OOXMLBooleanValue(true)); + // Value should not always be 'true' + //OOXMLValue::Pointer_t pValue(new OOXMLBooleanValue(true)); + bool bSet = true; + + // Paragraph properties are not always 'true' by default + // For example - RTL layout of paragraph is by default 'false' (look in this link for 'sprmPFBiDi') + // http://msdn.microsoft.com/en-us/library/dd923496%28v=office.12%29.aspx + if (getId() == paragraphProperties_sprmPFBiDi) + { + bSet = false; + } + + OOXMLValue::Pointer_t pValue(new OOXMLBooleanValue(bSet)); setValue(pValue); } }