Files
core/ASCOfficeOdtFile/Source/DocxFormat/Logic/Point2D.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

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