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
70 lines
1.2 KiB
C++
70 lines
1.2 KiB
C++
|
|
// auto inserted precompiled begin
|
|
#include "precompiled_docxformat.h"
|
|
// auto inserted precompiled end
|
|
|
|
#include "Delete.h"
|
|
|
|
|
|
namespace OOX
|
|
{
|
|
namespace Logic
|
|
{
|
|
|
|
Delete::Delete()
|
|
{
|
|
}
|
|
|
|
|
|
Delete::~Delete()
|
|
{
|
|
}
|
|
|
|
|
|
Delete::Delete(const XML::XNode& node)
|
|
{
|
|
fromXML(node);
|
|
}
|
|
|
|
|
|
const Delete& Delete::operator =(const XML::XNode& node)
|
|
{
|
|
fromXML(node);
|
|
return *this;
|
|
}
|
|
|
|
|
|
void Delete::fromXML(const XML::XNode& node)
|
|
{
|
|
const XML::XElement element(node);
|
|
|
|
Id = element.attribute("id").value();
|
|
Author = element.attribute("author").value();
|
|
Date = element.attribute("date").value();
|
|
|
|
XML::Fill(Runs, element, "r");
|
|
}
|
|
|
|
|
|
const XML::XNode Delete::toXML() const
|
|
{
|
|
return
|
|
XML::XElement(ns.w + "del",
|
|
XML::XAttribute(ns.w + "id", Id) +
|
|
XML::XAttribute(ns.w + "author", Author) +
|
|
XML::XAttribute(ns.w + "date", Date) +
|
|
XML::Write(Runs)
|
|
);
|
|
}
|
|
|
|
|
|
const std::string Delete::toTxt() const
|
|
{
|
|
std::string text;
|
|
BOOST_FOREACH(const Run& run, *Runs)
|
|
text += run.toTxt();
|
|
return text;
|
|
}
|
|
|
|
} // namespace Logic
|
|
} // namespace OOX
|