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

78 lines
1.3 KiB
C++

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