Files
core/ASCOfficeOdtFile/Source/DocxFormat/Logic/TableStyleProperties.cpp
Elen.Subbotina 6138139c4e исправлен проект - подключен "старый" DocxFormat (тот который с AVS - без вытирания буста)
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@53593 954022d7-b5bf-4e40-9824-e11837661b57
2016-05-20 22:37:54 +03:00

57 lines
1.3 KiB
C++

// auto inserted precompiled begin
#include "precompiled_docxformat.h"
// auto inserted precompiled end
#include "TableStyleProperties.h"
namespace OOX
{
namespace Logic
{
TableStyleProperties::TableStyleProperties()
{
}
TableStyleProperties::~TableStyleProperties()
{
}
TableStyleProperties::TableStyleProperties(const XML::XNode& node)
{
fromXML(node);
}
const TableStyleProperties& TableStyleProperties::operator =(const XML::XNode& node)
{
fromXML(node);
return *this;
}
void TableStyleProperties::fromXML(const XML::XNode& node)
{
const XML::XElement element(node);
Type = element.attribute("type").value();
ParagraphProperty = element.element("pPr");
RunProperty = element.element("rPr");
TableProperty = element.element("tblPr");
TableRowProperties = element.element("trPr");
tcPr = element.element("tcPr");
}
const XML::XNode TableStyleProperties::toXML() const
{
return XML::XElement(ns.w + "tblStylePr",
XML::XAttribute(ns.w + "type", Type) +
XML::Write(ParagraphProperty) +
XML::Write(RunProperty) +
XML::Write(TableProperty) +
XML::Write(TableRowProperties) +
XML::Write(tcPr));
}
} // namespace Logic
} // namespace OOX