[Libreoffice-commits] .: sw/source

Lubos Lunak llunak at kemper.freedesktop.org
Mon Nov 22 02:38:44 PST 2010


 sw/source/filter/ww8/docxattributeoutput.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 44e7e0c75363845daff3400dfbfd8338a2d8d3e3
Author: Luboš Luňák <l.lunak at suse.cz>
Date:   Mon Nov 22 11:38:00 2010 +0100

    implement lvlJc also according to ISO, not just Ecma

diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index f7f3480..2b8c5cf 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -2463,11 +2463,12 @@ void DocxAttributeOutput::NumberingLevel( BYTE nLevel,
 
     // justification
     const char *pJc;
+    bool ecmaDialect = ( m_rExport.GetFilter().getVersion() == oox::core::ECMA_DIALECT );
     switch ( eAdjust )
     {
         case SVX_ADJUST_CENTER: pJc = "center"; break;
-        case SVX_ADJUST_RIGHT:  pJc = "right";  break;
-        default:                pJc = "left";   break;
+        case SVX_ADJUST_RIGHT:  pJc = !ecmaDialect ? "end" : "right";  break;
+        default:                pJc = !ecmaDialect ? "start" : "left";   break;
     }
     m_pSerializer->singleElementNS( XML_w, XML_lvlJc,
             FSNS( XML_w, XML_val ), pJc,


More information about the Libreoffice-commits mailing list