[Libreoffice-commits] .: sw/source

Lubos Lunak llunak at kemper.freedesktop.org
Mon Nov 15 07:18:21 PST 2010


 sw/source/filter/ww8/docxattributeoutput.cxx |   11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

New commits:
commit 1039611418d7321d166e7044d9ed73704df9d730
Author: Luboš Luňák <l.lunak at suse.cz>
Date:   Mon Nov 15 16:15:44 2010 +0100

    implement <w:tabs> in <w:lvl> in numbering.xml (bnc#513567)

diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index 1a67d66..281368a 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -2441,7 +2441,7 @@ void DocxAttributeOutput::NumberingLevel( BYTE nLevel,
         const SfxItemSet *pOutSet,
         sal_Int16 nIndentAt,
         sal_Int16 nFirstLineIndex,
-        sal_Int16 /*nListTabPos*/,
+        sal_Int16 nListTabPos,
         const String &rNumberingString )
 {
     m_pSerializer->startElementNS( XML_w, XML_lvl,
@@ -2516,6 +2516,15 @@ void DocxAttributeOutput::NumberingLevel( BYTE nLevel,
 
     // indentation
     m_pSerializer->startElementNS( XML_w, XML_pPr, FSEND );
+    if( nListTabPos != 0 )
+    {
+        m_pSerializer->startElementNS( XML_w, XML_tabs, FSEND );
+        m_pSerializer->singleElementNS( XML_w, XML_tab,
+                FSNS( XML_w, XML_val ), "num",
+                FSNS( XML_w, XML_pos ), OString::valueOf( nListTabPos ).getStr(),
+                FSEND );
+        m_pSerializer->endElementNS( XML_w, XML_tabs );
+    }
     m_pSerializer->singleElementNS( XML_w, XML_ind,
             FSNS( XML_w, XML_left ), OString::valueOf( sal_Int32( nIndentAt ) ).getStr(),
             FSNS( XML_w, XML_hanging ), OString::valueOf( sal_Int32( -nFirstLineIndex ) ).getStr(),


More information about the Libreoffice-commits mailing list