mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-19 04:36:10 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@53593 954022d7-b5bf-4e40-9824-e11837661b57
70 lines
1.6 KiB
C++
70 lines
1.6 KiB
C++
|
|
// auto inserted precompiled begin
|
|
#include "precompiled_docxformat.h"
|
|
// auto inserted precompiled end
|
|
|
|
#include "Extrusion.h"
|
|
|
|
|
|
namespace OOX
|
|
{
|
|
namespace Logic
|
|
{
|
|
|
|
Extrusion::Extrusion()
|
|
{
|
|
}
|
|
|
|
|
|
Extrusion::~Extrusion()
|
|
{
|
|
}
|
|
|
|
|
|
Extrusion::Extrusion(const XML::XNode& node)
|
|
{
|
|
fromXML(node);
|
|
}
|
|
|
|
|
|
const Extrusion& Extrusion::operator = (const XML::XNode& node)
|
|
{
|
|
fromXML(node);
|
|
return *this;
|
|
}
|
|
|
|
|
|
void Extrusion::fromXML(const XML::XNode& node)
|
|
{
|
|
const XML::XElement element(node);
|
|
On = element.attribute("on").value();
|
|
Ext = element.attribute("ext").value();
|
|
BackDepth = element.attribute("backdepth").value();
|
|
ViewPoint = element.attribute("viewpoint").value();
|
|
ViewPointOrigin = element.attribute("viewpointorigin").value();
|
|
SkewAngle = element.attribute("skewangle").value();
|
|
LightPosition = element.attribute("lightposition").value();
|
|
LightPosition2 = element.attribute("lightposition2").value();
|
|
Type = element.attribute("type").value();
|
|
}
|
|
|
|
|
|
const XML::XNode Extrusion::toXML() const
|
|
{
|
|
return
|
|
XML::XElement(ns.o + "extrusion",
|
|
XML::XAttribute("on", On) +
|
|
XML::XAttribute(ns.v + "ext", Ext) +
|
|
XML::XAttribute("backdepth", BackDepth) +
|
|
XML::XAttribute("viewpoint", ViewPoint) +
|
|
XML::XAttribute("viewpointorigin", ViewPointOrigin) +
|
|
XML::XAttribute("skewangle", SkewAngle) +
|
|
XML::XAttribute("lightposition", LightPosition) +
|
|
XML::XAttribute("lightposition2", LightPosition2) +
|
|
XML::XAttribute("type", Type)
|
|
);
|
|
}
|
|
|
|
} // namespace Logic
|
|
} // namespace OOX
|