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
55 lines
860 B
C++
55 lines
860 B
C++
|
|
// auto inserted precompiled begin
|
|
#include "precompiled_docxformat.h"
|
|
// auto inserted precompiled end
|
|
|
|
#include "Point2D.h"
|
|
|
|
|
|
namespace OOX
|
|
{
|
|
namespace Logic
|
|
{
|
|
|
|
Point2D::Point2D()
|
|
{
|
|
}
|
|
|
|
|
|
Point2D::~Point2D()
|
|
{
|
|
}
|
|
|
|
|
|
Point2D::Point2D(const XML::XNode& node)
|
|
{
|
|
fromXML(node);
|
|
}
|
|
|
|
|
|
const Point2D& Point2D::operator =(const XML::XNode& node)
|
|
{
|
|
fromXML(node);
|
|
return *this;
|
|
}
|
|
|
|
|
|
void Point2D::fromXML(const XML::XNode& node)
|
|
{
|
|
const XML::XElement element(node);
|
|
|
|
name = element.XName->Name;
|
|
x = element.attribute("x").value();
|
|
y = element.attribute("y").value();
|
|
}
|
|
|
|
|
|
const XML::XNode Point2D::toXML() const
|
|
{
|
|
return XML::XElement(ns.wp + *name,
|
|
XML::XAttribute("x", x) +
|
|
XML::XAttribute("y", y)
|
|
);
|
|
}
|
|
} // namespace Logic
|
|
} // namespace OOX
|