mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-20 01:04:34 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@53593 954022d7-b5bf-4e40-9824-e11837661b57
55 lines
996 B
C++
55 lines
996 B
C++
|
|
// auto inserted precompiled begin
|
|
#include "precompiled_docxformat.h"
|
|
// auto inserted precompiled end
|
|
|
|
#include "DocPartObj.h"
|
|
|
|
|
|
namespace OOX
|
|
{
|
|
namespace Logic
|
|
{
|
|
|
|
DocPartObj::DocPartObj()
|
|
{
|
|
}
|
|
|
|
|
|
DocPartObj::~DocPartObj()
|
|
{
|
|
}
|
|
|
|
|
|
DocPartObj::DocPartObj(const XML::XNode& node)
|
|
{
|
|
fromXML(node);
|
|
}
|
|
|
|
|
|
const DocPartObj& DocPartObj::operator =(const XML::XNode& node)
|
|
{
|
|
fromXML(node);
|
|
return *this;
|
|
}
|
|
|
|
|
|
void DocPartObj::fromXML(const XML::XNode& node)
|
|
{
|
|
const XML::XElement element(node);
|
|
Gallery = element.element("docPartGallery").attribute("val").value();
|
|
Unique = element.element("docPartUnique").exist();
|
|
}
|
|
|
|
|
|
const XML::XNode DocPartObj::toXML() const
|
|
{
|
|
return
|
|
XML::XElement(ns.w + "docPartObj",
|
|
XML::Write(ns.w + "docPartGallery", ns.w + "val", Gallery) +
|
|
XML::WriteIf(XML::XElement(ns.w + "docPartUnique"), Unique)
|
|
);
|
|
}
|
|
|
|
} // namespace Logic
|
|
} // namespace OOX
|