Files
core/HtmlFile/HtmlFile.h
Oleg.Korshul a2e009dd20 Epub file realize
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@63917 954022d7-b5bf-4e40-9824-e11837661b57
2016-05-21 00:21:01 +03:00

49 lines
1.7 KiB
C++

#ifndef _HTMLFILE_HTMLFILE_H_
#define _HTMLFILE_HTMLFILE_H_
#include <string>
#ifndef HTMLFILE_USE_DYNAMIC_LIBRARY
#define HTMLFILE_DECL_EXPORT
#else
#include "../DesktopEditor/common/base_export.h"
#define HTMLFILE_DECL_EXPORT Q_DECL_EXPORT
#endif
class HTMLFILE_DECL_EXPORT CHtmlFile
{
private:
public:
CHtmlFile();
~CHtmlFile();
///
/// \brief Convert
/// \param sXml -
/// <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>
/// <file>file://192.168.3.208/allusers/Files/HTML/AllHTML/cars.html</file>
/// <destination>D:/test/Document/</destination> (end /!!!)
/// </html>\
/// \param sPathInternal - path (subprocesspath = path + HtmlFileInternal.exe) ("" -> GetProcessDirectory()/HtmlFileInternal/HtmlFileInternal.exe)
/// \return 1 error, 0 - success
///
int Convert(const std::wstring& sXml, const std::wstring& sPathInternal = L"");
///
/// \brief ConvertEpub
/// \param sFolder - unzip folder (slash or without slash)
/// \param sMetaInfo - epub meta data
/// \param sXmlPart - <sdk>file:///D:/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb/Word/sdk-all.js</sdk><destination>D:/test/Document/</destination> (end /!!!)
/// \param sPathInternal - like Convert html
/// \return 1 error, 0 - success
///
int ConvertEpub(const std::wstring& sFolder, std::wstring& sMetaInfo, const std::wstring& sXmlPart, const std::wstring& sPathInternal = L"");
};
#endif // _HTMLFILE_HTMLFILE_H_