Files
core/Fb2File/Fb2File.h
ElenaSubbotina 328ca886c7 Revert "Merge pull request #528 from ONLYOFFICE/feature/ppt_4"
This reverts commit ff0f58cc3c, reversing
changes made to cb6c9838d3.
2021-03-10 15:33:50 +03:00

38 lines
912 B
C++

#ifndef _FB2FILE_FB2FILE_H
#define _FB2FILE_FB2FILE_H
#include <string>
#include "../DesktopEditor/common/Types.h"
#ifndef FB2FILE_USE_DYNAMIC_LIBRARY
#define FB2FILE_DECL_EXPORT
#else
#include "../DesktopEditor/common/base_export.h"
#define FB2FILE_DECL_EXPORT Q_DECL_EXPORT
#endif
struct CFb2Params
{
bool bNeedDocx;
bool bNeedContents;
CFb2Params() : bNeedDocx(false), bNeedContents(false) {}
};
class CFb2File_Private;
class FB2FILE_DECL_EXPORT CFb2File
{
private:
CFb2File_Private* m_internal;
public:
CFb2File();
~CFb2File();
bool IsFb2File(const std::wstring& sFile);
void SetTmpDirectory(const std::wstring& sFolder);
HRESULT Open(const std::wstring& sPath, const std::wstring& sDirectory, CFb2Params* oParams = NULL);
HRESULT FromHtml(const std::wstring& sHtmlFile, const std::wstring& sCoreFile, const std::wstring& sDst);
};
#endif // _FB2FILE_FB2FILE_H