mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-19 07:07:15 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@53593 954022d7-b5bf-4e40-9824-e11837661b57
70 lines
1.5 KiB
C++
70 lines
1.5 KiB
C++
|
|
// auto inserted precompiled begin
|
|
#include "precompiled_docxformat.h"
|
|
// auto inserted precompiled end
|
|
|
|
#include "Shadow.h"
|
|
|
|
|
|
namespace OOX
|
|
{
|
|
namespace Logic
|
|
{
|
|
|
|
Shadow::Shadow()
|
|
{
|
|
}
|
|
|
|
|
|
Shadow::~Shadow()
|
|
{
|
|
}
|
|
|
|
|
|
Shadow::Shadow(const XML::XNode& node)
|
|
{
|
|
fromXML(node);
|
|
}
|
|
|
|
|
|
const Shadow& Shadow::operator = (const XML::XNode& node)
|
|
{
|
|
fromXML(node);
|
|
return *this;
|
|
}
|
|
|
|
|
|
void Shadow::fromXML(const XML::XNode& node)
|
|
{
|
|
const XML::XElement element(node);
|
|
On = element.attribute("on").value();
|
|
Type = element.attribute("type").value();
|
|
Color = element.attribute("color").value();
|
|
Color2 = element.attribute("color2").value();
|
|
Offset = element.attribute("offset").value();
|
|
Offset2 = element.attribute("offset2").value();
|
|
Opacity = element.attribute("opacity").value();
|
|
Origin = element.attribute("origin").value();
|
|
Matrix = element.attribute("matrix").value();
|
|
}
|
|
|
|
|
|
const XML::XNode Shadow::toXML() const
|
|
{
|
|
return
|
|
XML::XElement(ns.v + "shadow",
|
|
XML::XAttribute("on", On) +
|
|
XML::XAttribute("type", Type) +
|
|
XML::XAttribute("color", Color) +
|
|
XML::XAttribute("color2", Color2) +
|
|
XML::XAttribute("offset", Offset) +
|
|
XML::XAttribute("offset2", Offset2) +
|
|
XML::XAttribute("opacity", Opacity) +
|
|
XML::XAttribute("origin", Origin) +
|
|
XML::XAttribute("matrix", Matrix)
|
|
);
|
|
}
|
|
|
|
} // namespace Logic
|
|
} // namespace OOX
|