Files
core/ASCOfficeOdtFile/Source/DocxFormat/Logic/TabProperty.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

62 lines
1.2 KiB
C++

// auto inserted precompiled begin
#include "precompiled_docxformat.h"
// auto inserted precompiled end
#include "TabProperty.h"
namespace OOX
{
namespace Logic
{
TabProperty::TabProperty()
{
}
TabProperty::~TabProperty()
{
}
TabProperty::TabProperty(const XML::XNode& node)
{
fromXML(node);
}
const TabProperty& TabProperty::operator =(const XML::XNode& node)
{
fromXML(node);
return *this;
}
void TabProperty::fromXML(const XML::XNode& node)
{
const XML::XElement element(node);
Val = element.attribute("val").value();
Leader = element.attribute("leader").value();
//Pos = element.attribute("pos").value().ToString();
if (element.attribute("pos").exist())
{
int pos = element.attribute("pos").value();
UniversalUnit value(pos, UniversalUnit::Dx);
Pos = value;
}
}
const XML::XNode TabProperty::toXML() const
{
return
XML::XElement(ns.w + "tab",
XML::XAttribute(ns.w + "val", Val) +
XML::XAttribute(ns.w + "leader", Leader) +
XML::XAttribute(ns.w + "pos", Pos)
);
}
} // namespace Logic
} // namespace OOX