Files
core/HtmlFile/test/main.cpp
Oleg.Korshul 5c70d631de linux work version
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@63894 954022d7-b5bf-4e40-9824-e11837661b57
2016-05-21 00:20:34 +03:00

34 lines
950 B
C++

#include "../HtmlFile.h"
#include "../../DesktopEditor/common/File.h"
int main(int argc, char *argv[])
{
#if 0
std::wstring sPath = NSFile::GetProcessDirectory() + L"/../../Internal/windows/Debug/";
std::wstring sXml = L"\
<html>\
<sdk>file:///D:/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb/Word/sdk-all.js</sdk>\
<file>file:///C:/Users/oleg.korshul/Desktop/original_message%20(5).html</file>\
<destination>D:/test/Document/</destination>\
</html>\
";
#else
std::wstring sPath = NSFile::GetProcessDirectory() + L"/../../Internal/linux/Debug/";
std::wstring sXml = L"\
<html>\
<sdk>file:///home/oleg/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb/Word/sdk-all.js</sdk>\
<file>file:///home/oleg/activex/test.html</file>\
<destination>/home/oleg/activex/1/</destination>\
</html>\
";
#endif
CHtmlFile oFile;
int nResult = oFile.Convert(sXml, sPath);
nResult;
return 0;
}