mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-16 05:04:35 +08:00
72 lines
910 B
C++
72 lines
910 B
C++
|
|
// auto inserted precompiled begin
|
|
#include "precompiled_odtformat.h"
|
|
// auto inserted precompiled end
|
|
|
|
#include "Tab.h"
|
|
|
|
|
|
namespace Odt
|
|
{
|
|
namespace Content
|
|
{
|
|
|
|
Tab::Tab()
|
|
{
|
|
}
|
|
|
|
|
|
Tab::~Tab()
|
|
{
|
|
}
|
|
|
|
|
|
Tab::Tab(const XML::XNode& node)
|
|
{
|
|
fromXML(node);
|
|
}
|
|
|
|
|
|
Tab::Tab(const std::string& text)
|
|
{
|
|
fromTxt(text);
|
|
}
|
|
|
|
|
|
const Tab& Tab::operator =(const XML::XNode& node)
|
|
{
|
|
fromXML(node);
|
|
return *this;
|
|
}
|
|
|
|
|
|
const Tab& Tab::operator =(const std::string& text)
|
|
{
|
|
fromTxt(text);
|
|
return *this;
|
|
}
|
|
|
|
|
|
void Tab::fromXML(const XML::XNode& node)
|
|
{
|
|
}
|
|
|
|
|
|
void Tab::fromTxt(const std::string& text)
|
|
{
|
|
}
|
|
|
|
|
|
const XML::XNode Tab::toXML() const
|
|
{
|
|
return XML::XElement(ns.text + "tab");
|
|
}
|
|
|
|
|
|
const std::string Tab::toTxt() const
|
|
{
|
|
return "\t";
|
|
}
|
|
|
|
} // namespace Content
|
|
} // namespace Odt
|