sw doc model dump: show rsid value

Change-Id: Ic657c4bae045a2663c3b10c569af2fd0c9235775
This commit is contained in:
Miklos Vajna
2013-12-04 17:14:06 +01:00
parent 02efbed152
commit 73cf3fd42e

View File

@@ -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;