mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-19 11:42:05 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@53593 954022d7-b5bf-4e40-9824-e11837661b57
76 lines
2.0 KiB
C++
76 lines
2.0 KiB
C++
|
|
// auto inserted precompiled begin
|
|
#include "precompiled_docxformat.h"
|
|
// auto inserted precompiled end
|
|
|
|
#include "ClrSchemeMapping.h"
|
|
|
|
|
|
namespace OOX
|
|
{
|
|
namespace Settings
|
|
{
|
|
|
|
ClrSchemeMapping::ClrSchemeMapping()
|
|
{
|
|
}
|
|
|
|
|
|
ClrSchemeMapping::~ClrSchemeMapping()
|
|
{
|
|
}
|
|
|
|
|
|
ClrSchemeMapping::ClrSchemeMapping(const XML::XNode& node)
|
|
{
|
|
fromXML(node);
|
|
}
|
|
|
|
|
|
const ClrSchemeMapping& ClrSchemeMapping::operator =(const XML::XNode& node)
|
|
{
|
|
fromXML(node);
|
|
return *this;
|
|
}
|
|
|
|
|
|
void ClrSchemeMapping::fromXML(const XML::XNode& node)
|
|
{
|
|
const XML::XElement element(node);
|
|
m_bg1 = element.attribute("bg1").value();
|
|
m_t1 = element.attribute("t1").value();
|
|
m_bg2 = element.attribute("bg2").value();
|
|
m_t2 = element.attribute("t2").value();
|
|
m_accent1 = element.attribute("accent1").value();
|
|
m_accent2 = element.attribute("accent2").value();
|
|
m_accent3 = element.attribute("accent3").value();
|
|
m_accent4 = element.attribute("accent4").value();
|
|
m_accent5 = element.attribute("accent5").value();
|
|
m_accent6 = element.attribute("accent6").value();
|
|
m_hyperlink = element.attribute("hyperlink").value();
|
|
m_followedHyperlink = element.attribute("followedHyperlink").value();
|
|
|
|
}
|
|
|
|
|
|
const XML::XNode ClrSchemeMapping::toXML() const
|
|
{
|
|
return
|
|
XML::XElement(ns.w + "clrSchemeMapping",
|
|
XML::XAttribute(ns.w + "bg1", m_bg1) +
|
|
XML::XAttribute(ns.w + "t1", m_t1) +
|
|
XML::XAttribute(ns.w + "bg2", m_bg2) +
|
|
XML::XAttribute(ns.w + "t2", m_t2) +
|
|
XML::XAttribute(ns.w + "accent1", m_accent1) +
|
|
XML::XAttribute(ns.w + "accent2", m_accent2) +
|
|
XML::XAttribute(ns.w + "accent3", m_accent3) +
|
|
XML::XAttribute(ns.w + "accent4", m_accent4) +
|
|
XML::XAttribute(ns.w + "accent5", m_accent5) +
|
|
XML::XAttribute(ns.w + "accent6", m_accent6) +
|
|
XML::XAttribute(ns.w + "hyperlink", m_hyperlink) +
|
|
XML::XAttribute(ns.w + "followedHyperlink", m_followedHyperlink)
|
|
);
|
|
}
|
|
|
|
} // namespace Settings
|
|
} // namespace OOX
|