mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-19 12:24:53 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@53593 954022d7-b5bf-4e40-9824-e11837661b57
55 lines
870 B
C++
55 lines
870 B
C++
|
|
// auto inserted precompiled begin
|
|
#include "precompiled_docxformat.h"
|
|
// auto inserted precompiled end
|
|
|
|
#include "Zoom.h"
|
|
|
|
|
|
namespace OOX
|
|
{
|
|
namespace Settings
|
|
{
|
|
|
|
Zoom::Zoom()
|
|
{
|
|
}
|
|
|
|
|
|
Zoom::~Zoom()
|
|
{
|
|
}
|
|
|
|
|
|
Zoom::Zoom(const XML::XNode& node)
|
|
{
|
|
fromXML(node);
|
|
}
|
|
|
|
|
|
const Zoom& Zoom::operator =(const XML::XNode& node)
|
|
{
|
|
fromXML(node);
|
|
return *this;
|
|
}
|
|
|
|
|
|
void Zoom::fromXML(const XML::XNode& node)
|
|
{
|
|
const XML::XElement element(node);
|
|
m_value = element.attribute("val").value();
|
|
m_percent = element.attribute("percent").value();
|
|
}
|
|
|
|
|
|
const XML::XNode Zoom::toXML() const
|
|
{
|
|
return
|
|
XML::XElement(ns.w + "zoom",
|
|
XML::XAttribute(ns.w + "val", m_value) +
|
|
XML::XAttribute(ns.w + "percent", m_percent)
|
|
);
|
|
}
|
|
|
|
} // namespace Settings
|
|
} // namespace OOX
|