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