Files
DocumentServer-v-9.2.0/core/Fb2File/Fb2File.h
Yajbir Singh f1b860b25c
Some checks failed
check / markdownlint (push) Has been cancelled
check / spellchecker (push) Has been cancelled
updated
2025-12-11 19:03:17 +05:30

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& sDst, const std::wstring& sInpTitle);
};
#endif // _FB2FILE_FB2FILE_H