Files
core/ASCOfficeOdtFile/Source/DocxFormat/Logic/Shadow.cpp
Elen.Subbotina 6138139c4e исправлен проект - подключен "старый" DocxFormat (тот который с AVS - без вытирания буста)
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@53593 954022d7-b5bf-4e40-9824-e11837661b57
2016-05-20 22:37:54 +03:00

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