mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-19 07:38:47 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@53593 954022d7-b5bf-4e40-9824-e11837661b57
58 lines
1.3 KiB
C++
58 lines
1.3 KiB
C++
|
|
// auto inserted precompiled begin
|
|
#include "precompiled_docxformat.h"
|
|
// auto inserted precompiled end
|
|
|
|
#include "./../Styles.h"
|
|
|
|
|
|
namespace OOX
|
|
{
|
|
|
|
Styles::LsdException::LsdException()
|
|
{
|
|
}
|
|
|
|
|
|
Styles::LsdException::~LsdException()
|
|
{
|
|
}
|
|
|
|
|
|
Styles::LsdException::LsdException(const XML::XNode& node)
|
|
{
|
|
fromXML(node);
|
|
}
|
|
|
|
|
|
const Styles::LsdException& Styles::LsdException::operator =(const XML::XNode& node)
|
|
{
|
|
fromXML(node);
|
|
return *this;
|
|
}
|
|
|
|
|
|
void Styles::LsdException::fromXML(const XML::XNode& node)
|
|
{
|
|
const XML::XElement element(node);
|
|
Name = element.attribute("name").value();
|
|
SemiHidden = element.attribute("semiHidden").value();
|
|
UiPriority = element.attribute("uiPriority").value();
|
|
UnhideWhenUsed = element.attribute("unhideWhenUsed").value();
|
|
QFormat = element.attribute("qFormat").value();
|
|
}
|
|
|
|
|
|
const XML::XNode Styles::LsdException::toXML() const
|
|
{
|
|
return
|
|
XML::XElement(ns.w + "lsdException",
|
|
XML::XAttribute(ns.w + "name", Name) +
|
|
XML::XAttribute(ns.w + "semiHidden", SemiHidden) +
|
|
XML::XAttribute(ns.w + "uiPriority", UiPriority) +
|
|
XML::XAttribute(ns.w + "unhideWhenUsed", UnhideWhenUsed) +
|
|
XML::XAttribute(ns.w + "qFormat", QFormat)
|
|
);
|
|
}
|
|
|
|
} // namespace OOX
|