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
64 lines
1.2 KiB
C++
64 lines
1.2 KiB
C++
|
|
// auto inserted precompiled begin
|
|
#include "precompiled_docxformat.h"
|
|
// auto inserted precompiled end
|
|
|
|
#include "TextPath.h"
|
|
|
|
|
|
namespace OOX
|
|
{
|
|
namespace Logic
|
|
{
|
|
|
|
TextPath::TextPath()
|
|
{
|
|
}
|
|
|
|
|
|
TextPath::~TextPath()
|
|
{
|
|
}
|
|
|
|
|
|
TextPath::TextPath(const XML::XNode& node)
|
|
{
|
|
fromXML(node);
|
|
}
|
|
|
|
|
|
const TextPath& TextPath::operator = (const XML::XNode& node)
|
|
{
|
|
fromXML(node);
|
|
return *this;
|
|
}
|
|
|
|
|
|
void TextPath::fromXML(const XML::XNode& node)
|
|
{
|
|
const XML::XElement element(node);
|
|
On = element.attribute("on").value();
|
|
FitShape = element.attribute("fitshape").value();
|
|
Trim = element.attribute("trim").value();
|
|
String = element.attribute("string").value();
|
|
Style = element.attribute("style").value();
|
|
FitPath = element.attribute("fitpath").value();
|
|
}
|
|
|
|
|
|
const XML::XNode TextPath::toXML() const
|
|
{
|
|
return
|
|
XML::XElement(ns.v + "textpath",
|
|
XML::XAttribute("style", Style) +
|
|
XML::XAttribute("on", On) +
|
|
XML::XAttribute("fitshape", FitShape) +
|
|
XML::XAttribute("trim", Trim) +
|
|
XML::XAttribute("fitpath", FitPath) +
|
|
XML::XAttribute("string", String)
|
|
);
|
|
}
|
|
|
|
} // namespace Logic
|
|
} // namespace OOX
|