mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-19 11:08:18 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@53593 954022d7-b5bf-4e40-9824-e11837661b57
54 lines
912 B
C++
54 lines
912 B
C++
|
|
// auto inserted precompiled begin
|
|
#include "precompiled_docxformat.h"
|
|
// auto inserted precompiled end
|
|
|
|
#include "TCMar.h"
|
|
|
|
namespace OOX
|
|
{
|
|
namespace Logic
|
|
{
|
|
TCMar::TCMar()
|
|
{
|
|
|
|
}
|
|
|
|
TCMar::~TCMar()
|
|
{
|
|
|
|
}
|
|
|
|
TCMar::TCMar(const XML::XNode& node)
|
|
{
|
|
fromXML(node);
|
|
}
|
|
|
|
const TCMar& TCMar::operator =(const XML::XNode& node)
|
|
{
|
|
fromXML(node);
|
|
return *this;
|
|
}
|
|
|
|
void TCMar::fromXML(const XML::XNode& node)
|
|
{
|
|
const XML::XElement element(node);
|
|
|
|
Top = element.element("top");
|
|
Left = element.element("left");
|
|
Bottom = element.element("bottom");
|
|
Right = element.element("right");
|
|
}
|
|
|
|
const XML::XNode TCMar::toXML() const
|
|
{
|
|
return
|
|
XML::XElement(ns.w + "tcMar",
|
|
XML::Write(Top) +
|
|
XML::Write(Left) +
|
|
XML::Write(Bottom) +
|
|
XML::Write(Right));
|
|
}
|
|
|
|
} // namespace Logic
|
|
} // namespace OOX
|