Files
core/ASCOfficeOdtFile/Source/XML/Private/Text.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

74 lines
1.1 KiB
C++

// auto inserted precompiled begin
#include "precompiled_xml.h"
// auto inserted precompiled end
#include "Text.h"
#include "Lexigraph.h"
#include "Encoding.h"
namespace XML
{
namespace Private
{
Text::Text()
{
}
Text::Text(const std::string& value)
: Value(value)
{
}
Text::~Text()
{
}
const bool Text::isElement() const
{
return false;
}
const bool Text::isText() const
{
return true;
}
const bool Text::isComment() const
{
return false;
}
const std::string Text::ToString() const
{
return Private::Lexigraph::toSource(Value.ToString());
}
const std::wstring Text::ToWString() const
{
return Private::Lexigraph::toSource(Value.ToWString());
}
void Text::SaveToStringList(std::list<std::string>& strList)const
{
strList.push_back(Private::Lexigraph::toSource(Value.ToString()));
}
void Text::SaveToWStringList(std::list<std::wstring>& strList)const
{
strList.push_back(Private::Lexigraph::toSource(Value.ToWString()));
}
} // namespace Private
} // namespace XML