mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-19 05:57:25 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@53593 954022d7-b5bf-4e40-9824-e11837661b57
59 lines
1.1 KiB
C++
59 lines
1.1 KiB
C++
|
|
// auto inserted precompiled begin
|
|
#include "precompiled_docxformat.h"
|
|
// auto inserted precompiled end
|
|
|
|
#include "EffectExtent.h"
|
|
|
|
|
|
namespace OOX
|
|
{
|
|
namespace Logic
|
|
{
|
|
|
|
EffectExtent::EffectExtent()
|
|
{
|
|
}
|
|
|
|
|
|
EffectExtent::~EffectExtent()
|
|
{
|
|
}
|
|
|
|
|
|
EffectExtent::EffectExtent(const XML::XNode& node)
|
|
{
|
|
fromXML(node);
|
|
}
|
|
|
|
|
|
const EffectExtent& EffectExtent::operator =(const XML::XNode& node)
|
|
{
|
|
fromXML(node);
|
|
return *this;
|
|
}
|
|
|
|
|
|
void EffectExtent::fromXML(const XML::XNode& node)
|
|
{
|
|
const XML::XElement element(node);
|
|
Left = element.attribute("l").value().ToString();
|
|
Top = element.attribute("t").value().ToString();
|
|
Right = element.attribute("r").value().ToString();
|
|
Bottom = element.attribute("b").value().ToString();
|
|
}
|
|
|
|
|
|
const XML::XNode EffectExtent::toXML() const
|
|
{
|
|
return
|
|
XML::XElement(ns.wp + "effectExtent",
|
|
XML::XAttribute("l", Left) +
|
|
XML::XAttribute("t", Top) +
|
|
XML::XAttribute("r", Right) +
|
|
XML::XAttribute("b", Bottom)
|
|
);
|
|
}
|
|
|
|
} // namespace Logic
|
|
} // namespace OOX
|