Commit fb417208 authored by Sergey Konovalov's avatar Sergey Konovalov

for bug 35900 (CWorkbookPr::toXml)

parent 406c290b
......@@ -1149,7 +1149,13 @@ namespace SimpleTypes
virtual std::wstring ToString () const
{
return _T("always");
switch(this->m_eValue)
{
case updatelinksAlways: return _T("always");break;
case updatelinksNever: return _T("never");break;
case updatelinksUserSet: return _T("userSet");break;
default: return _T("always");
}
}
SimpleType_FromString (EUpdateLinksType)
......
......@@ -62,9 +62,24 @@ namespace OOX
virtual void toXML(NSStringUtils::CStringBuilder& writer) const
{
writer.WriteString(_T("<workbookPr"));
WritingStringNullableAttrInt(L"defaultThemeVersion", m_oDefaultThemeVersion, m_oDefaultThemeVersion->GetValue());
WritingStringNullableAttrBool(L"allowRefreshQuery", m_oAllowRefreshQuery);
WritingStringNullableAttrBool(L"autoCompressPictures", m_oAutoCompressPictures);
WritingStringNullableAttrBool(L"backupFile", m_oBackupFile);
WritingStringNullableAttrBool(L"checkCompatibility", m_oCheckCompatibility);
WritingStringNullableAttrBool(L"codeName", m_oCodeName);
WritingStringNullableAttrBool(L"date1904", m_oDate1904);
WritingStringNullableAttrBool(L"dateCompatibility", m_oDateCompatibility);
WritingStringNullableAttrInt(L"defaultThemeVersion", m_oDefaultThemeVersion, m_oDefaultThemeVersion->GetValue());
WritingStringNullableAttrBool(L"filterPrivacy", m_oFilterPrivacy);
WritingStringNullableAttrBool(L"hidePivotFieldList", m_oHidePivotFieldList);
WritingStringNullableAttrBool(L"promptedSolutions", m_oPromptedSolutions);
WritingStringNullableAttrBool(L"publishItems", m_oPublishItems);
WritingStringNullableAttrBool(L"refreshAllConnections", m_oRefreshAllConnections);
WritingStringNullableAttrBool(L"showBorderUnselectedTables", m_oShowBorderUnselectedTables);
WritingStringNullableAttrBool(L"showInkAnnotation", m_oShowInkAnnotation);
WritingStringNullableAttrBool(L"showObjects", m_oShowObjects);
WritingStringNullableAttrBool(L"showPivotChartFilter", m_oShowPivotChartFilter);
WritingStringNullableAttrString(L"updateLinks", m_oUpdateLinks, m_oUpdateLinks->ToString());
writer.WriteString(_T("/>"));
}
virtual void fromXML(XmlUtils::CXmlLiteReader& oReader)
......
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