Kaydet (Commit) 6f8ffc4e authored tarafından Miklos Vajna's avatar Miklos Vajna

sw doc model xml dump: handle SvxFontHeightItem

Change-Id: I27a9681fdf86a8814be48ba9875202705aa2b014
üst 2a163c78
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include <editeng/charrotateitem.hxx> #include <editeng/charrotateitem.hxx>
#include <editeng/rsiditem.hxx> #include <editeng/rsiditem.hxx>
#include <editeng/fontitem.hxx> #include <editeng/fontitem.hxx>
#include <editeng/fhgtitem.hxx>
#include <tools/datetimeutils.hxx> #include <tools/datetimeutils.hxx>
#include <libxml/encoding.h> #include <libxml/encoding.h>
...@@ -319,6 +320,13 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet) ...@@ -319,6 +320,13 @@ void lcl_dumpSfxItemSet(WriterHelper& writer, const SfxItemSet* pSet)
case RES_CHRATR_FONT: pWhich = "character font"; oValue = OUStringToOString(static_cast<const SvxFontItem*>(pItem)->GetFamilyName(), RTL_TEXTENCODING_UTF8); break; case RES_CHRATR_FONT: pWhich = "character font"; oValue = OUStringToOString(static_cast<const SvxFontItem*>(pItem)->GetFamilyName(), RTL_TEXTENCODING_UTF8); break;
case RES_CHRATR_BACKGROUND: pWhich = "character background"; break; case RES_CHRATR_BACKGROUND: pWhich = "character background"; break;
case RES_CHRATR_CTL_FONT: pWhich = "character ctl font"; break; case RES_CHRATR_CTL_FONT: pWhich = "character ctl font"; break;
case RES_CHRATR_FONTSIZE:
{
pWhich = "character font size";
const SvxFontHeightItem* pFontHeightItem = static_cast<const SvxFontHeightItem*>(pItem);
oValue = "nHeight: " + OString::number(pFontHeightItem->GetHeight()) + ", nProp: " + OString::number(pFontHeightItem->GetProp());
}
break;
} }
if (pWhich) if (pWhich)
writer.writeFormatAttribute("which", "%s", BAD_CAST(pWhich)); writer.writeFormatAttribute("which", "%s", BAD_CAST(pWhich));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment