mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@62348 954022d7-b5bf-4e40-9824-e11837661b57
50 lines
887 B
C++
50 lines
887 B
C++
#ifndef DOC_FORMAT_LIB
|
|
#define DOC_FORMAT_LIB
|
|
|
|
#include <string>
|
|
|
|
#if defined(_WIN32) || defined(_WIN64)
|
|
#include <windows.h>
|
|
#else
|
|
#include "../../DesktopEditor/common/ASCVariant.h"
|
|
#endif
|
|
|
|
struct ProgressCallback;
|
|
|
|
class COfficeDocFile
|
|
{
|
|
public:
|
|
COfficeDocFile()
|
|
{
|
|
m_strTempDirectory = L"";
|
|
|
|
}
|
|
|
|
virtual ~COfficeDocFile()
|
|
{
|
|
}
|
|
|
|
private:
|
|
|
|
std::wstring m_strTempDirectory;
|
|
|
|
public:
|
|
|
|
HRESULT put_TempDirectory(std::wstring sDir)
|
|
{
|
|
m_strTempDirectory = sDir;
|
|
return S_OK;
|
|
}
|
|
|
|
std::wstring get_TempDirectory()
|
|
{
|
|
return m_strTempDirectory;
|
|
}
|
|
|
|
HRESULT LoadFromFile(std::wstring sSrcFileName, std::wstring sDstFileName, ProgressCallback *ffCallBack = NULL);
|
|
HRESULT SaveToFile(std::wstring sDstFileName, std::wstring sSrcFileName, ProgressCallback *ffCallBack = NULL);
|
|
|
|
};
|
|
|
|
#endif //DOC_FORMAT_LIB
|