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