[Libreoffice-commits] core.git: sw/source

Miklos Vajna vmiklos at collabora.co.uk
Wed Dec 4 09:09:53 PST 2013


 sw/source/core/docnode/nodedump.cxx |   10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

New commits:
commit 73cf3fd42e2d852762ad9afd9ea4597213f73f66
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Wed Dec 4 17:14:06 2013 +0100

    sw doc model dump: show rsid value
    
    Change-Id: Ic657c4bae045a2663c3b10c569af2fd0c9235775

diff --git a/sw/source/core/docnode/nodedump.cxx b/sw/source/core/docnode/nodedump.cxx
index a57e885..76f2217 100644
--- a/sw/source/core/docnode/nodedump.cxx
+++ b/sw/source/core/docnode/nodedump.cxx
@@ -23,6 +23,7 @@
 #include <svl/itemiter.hxx>
 #include <svl/intitem.hxx>
 #include <editeng/charrotateitem.hxx>
+#include <editeng/rsiditem.hxx>
 #include <tools/datetimeutils.hxx>
 
 #include <libxml/encoding.h>
@@ -305,7 +306,14 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
             case RES_CHRATR_CJK_WEIGHT: pWhich = "character cjk weight"; break;
             case RES_CHRATR_CTL_POSTURE: pWhich = "character ctl posture"; break;
             case RES_CHRATR_CTL_WEIGHT: pWhich = "character ctl weight"; break;
-            case RES_CHRATR_RSID: pWhich = "character rsid"; break;
+            case RES_CHRATR_RSID:
+            {
+                pWhich = "character rsid";
+                css::uno::Any aAny;
+                static_cast<const SvxRsidItem*>(pItem)->QueryValue(aAny);
+                oValue = OString::number(aAny.get<sal_uInt32>());
+            }
+            break;
             case RES_CHRATR_ROTATE: pWhich = "character rotation"; oValue = OString::number(static_cast<const SvxCharRotateItem*>(pItem)->GetValue()); break;
             case RES_PARATR_OUTLINELEVEL: pWhich = "paragraph outline level"; oValue = OString::number(static_cast<const SfxUInt16Item*>(pItem)->GetValue()); break;
             case RES_PARATR_NUMRULE: pWhich = "paragraph numbering rule"; oValue = OUStringToOString(static_cast<const SwNumRuleItem*>(pItem)->GetValue(), RTL_TEXTENCODING_UTF8); break;


More information about the Libreoffice-commits mailing list