CString Blip::toXML() const { XmlUtils::CAttribute oAttr; if (embed.IsInit()) oAttr.Write(_T("r:embed"), embed->ToString()); if (link.IsInit()) oAttr.Write(_T("r:link"), link->ToString()); oAttr.WriteLimitNullable(_T("cstate"), cstate); XmlUtils::CNodeValue oValue; oValue.WriteArray(Effects); CString strName = (_T("") == m_namespace) ? _T("blip") : (m_namespace + _T(":blip")); return XmlUtils::CreateNode(strName, oAttr, oValue); }
CString CNvGrpSpPr::toXML() const { XmlUtils::CAttribute oAttr; oAttr.Write(_T("noChangeAspect"), noChangeAspect); oAttr.Write(_T("noGrp"), noGrp); oAttr.Write(_T("noMove"), noMove); oAttr.Write(_T("noResize"), noResize); oAttr.Write(_T("noRot"), noRot); oAttr.Write(_T("noSelect"), noSelect); oAttr.Write(_T("noUngrp"), noUngrp); if (_T("") == oAttr.m_strValue) return _T("<p:cNvGrpSpPr/>"); return _T("<p:cNvGrpSpPr>") + XmlUtils::CreateNode(_T("a:grpSpLocks"), oAttr) + _T("</p:cNvGrpSpPr>"); }