mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-19 18:20:58 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@53593 954022d7-b5bf-4e40-9824-e11837661b57
62 lines
1.2 KiB
C++
62 lines
1.2 KiB
C++
|
|
// auto inserted precompiled begin
|
|
#include "precompiled_docxformat.h"
|
|
// auto inserted precompiled end
|
|
|
|
#include "OuterShdw.h"
|
|
|
|
|
|
namespace OOX
|
|
{
|
|
namespace Theme
|
|
{
|
|
|
|
OuterShdw::OuterShdw()
|
|
{
|
|
}
|
|
|
|
|
|
OuterShdw::~OuterShdw()
|
|
{
|
|
}
|
|
|
|
|
|
OuterShdw::OuterShdw(const XML::XNode& node)
|
|
{
|
|
fromXML(node);
|
|
}
|
|
|
|
|
|
const OuterShdw& OuterShdw::operator =(const XML::XNode& node)
|
|
{
|
|
fromXML(node);
|
|
return *this;
|
|
}
|
|
|
|
|
|
void OuterShdw::fromXML(const XML::XNode& node)
|
|
{
|
|
const XML::XElement element(node);
|
|
m_blurRad = element.attribute("blurRad").value();
|
|
m_dist = element.attribute("dist").value();
|
|
m_dir = element.attribute("dir").value();
|
|
m_rotWithShare = element.attribute("rotWithShape").value();
|
|
m_srgbClr = element.element("srgbClr");
|
|
|
|
}
|
|
|
|
|
|
const XML::XNode OuterShdw::toXML() const
|
|
{
|
|
return
|
|
XML::XElement(ns.a + "outerShdw",
|
|
XML::XAttribute("blurRad", m_blurRad) +
|
|
XML::XAttribute("dist", m_dist) +
|
|
XML::XAttribute("dir", m_dir) +
|
|
XML::XAttribute("rotWithShape", m_rotWithShare) +
|
|
XML::Write(m_srgbClr)
|
|
);
|
|
}
|
|
|
|
} // namespace Theme
|
|
} // namespace OOX
|