summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2013-12-04 17:14:06 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2013-12-04 18:09:33 +0100
commit73cf3fd42e2d852762ad9afd9ea4597213f73f66 (patch)
tree5f22fd22044b5976dd48058e4d113bee7e9cf809 /sw
parent02efbed152a3a9e364cdb73628af0aed0f5d6f7a (diff)
sw doc model dump: show rsid value
Change-Id: Ic657c4bae045a2663c3b10c569af2fd0c9235775
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/docnode/nodedump.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/sw/source/core/docnode/nodedump.cxx b/sw/source/core/docnode/nodedump.cxx
index a57e88575d34..76f22176e5c7 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;