Files
DocumentServer-v-9.2.0/core/HwpFile/HWPFile.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
977 B
C++

#ifndef HWPFILE_H
#define HWPFILE_H
#include <string>
#ifndef HWPFILE_USE_DYNAMIC_LIBRARY
#define HWP_FILE_DECL_EXPORT
#else
#include "../DesktopEditor/common/base_export.h"
#define HWP_FILE_DECL_EXPORT Q_DECL_EXPORT
#endif
namespace HWP { class CWriterContext; }
class HWP_FILE_DECL_EXPORT CHWPFile
{
HWP::CWriterContext *m_pInternal;
std::wstring m_wsFileName;
std::wstring m_wsTempDirectory;
public:
CHWPFile();
~CHWPFile();
void SetTempDirectory(const std::wstring& wsTempDirectory);
bool OpenHWP(const std::wstring& wsFilePath);
bool OpenHWPX(const std::wstring& wsFilePath);
bool OpenHWPML(const std::wstring& wsFilePath);
void Close();
bool ConvertToOOXML(const std::wstring& wsFilePath);
bool ConvertToOOXML_Dir(const std::wstring& wsDirectoryPath);
static bool IsHWPFormat(const std::wstring& wsFilePath);
static bool IsHWPXFormat(const std::wstring& wsFilePath);
static bool IsHWPMLFormat(const std::wstring& wsFilePath);
};
#endif // HWPFILE_H