Files
core/ASCOfficeOdtFile/Source/DocxFormat/Settings/Zoom.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
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