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
58 lines
1.1 KiB
C++
58 lines
1.1 KiB
C++
|
|
// auto inserted precompiled begin
|
|
#include "precompiled_docxformat.h"
|
|
// auto inserted precompiled end
|
|
|
|
#include "ParagraphPropertyChange.h"
|
|
|
|
|
|
namespace OOX
|
|
{
|
|
namespace Logic
|
|
{
|
|
|
|
ParagraphPropertyChange::ParagraphPropertyChange()
|
|
{
|
|
}
|
|
|
|
|
|
ParagraphPropertyChange::~ParagraphPropertyChange()
|
|
{
|
|
}
|
|
|
|
|
|
ParagraphPropertyChange::ParagraphPropertyChange(const XML::XNode& node)
|
|
{
|
|
fromXML(node);
|
|
}
|
|
|
|
|
|
const ParagraphPropertyChange& ParagraphPropertyChange::operator =(const XML::XNode& node)
|
|
{
|
|
fromXML(node);
|
|
return *this;
|
|
}
|
|
|
|
|
|
void ParagraphPropertyChange::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();
|
|
}
|
|
|
|
|
|
const XML::XNode ParagraphPropertyChange::toXML() const
|
|
{
|
|
return
|
|
XML::XElement(ns.w + "pPrChange",
|
|
XML::XAttribute(ns.w + "id", Id) +
|
|
XML::XAttribute(ns.w + "author", Author) +
|
|
XML::XAttribute(ns.w + "date", Date)
|
|
);
|
|
}
|
|
|
|
} // namespace Logic
|
|
} // namespace OOX
|