Files
core/ASCOfficeOdtFile/Source/DocxFormat/Theme/Ln.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

63 lines
1.2 KiB
C++

// auto inserted precompiled begin
#include "precompiled_docxformat.h"
// auto inserted precompiled end
#include "Ln.h"
namespace OOX
{
namespace Theme
{
Ln::Ln()
{
}
Ln::~Ln()
{
}
Ln::Ln(const XML::XNode& node)
{
fromXML(node);
}
const Ln& Ln::operator =(const XML::XNode& node)
{
fromXML(node);
return *this;
}
void Ln::fromXML(const XML::XNode& node)
{
const XML::XElement element(node);
m_w = element.attribute("w").value();
m_cap = element.attribute("cap").value();
m_cmpd = element.attribute("cmpd").value();
m_algn = element.attribute("algn").value();
m_solidFill = element.element("solidFill");
m_prstDash = element.element("prstDash").attribute("val").value();
}
const XML::XNode Ln::toXML() const
{
return
XML::XElement(ns.a + "ln",
XML::XAttribute("w", m_w) +
XML::XAttribute("cap", m_cap) +
XML::XAttribute("cmpd", m_cmpd) +
XML::XAttribute("algn", m_algn) +
XML::Write(m_solidFill) +
XML::Write(ns.a + "prstDash", "val", m_prstDash)
);
}
} // namespace Theme
} // namespace OOX