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@61916 954022d7-b5bf-4e40-9824-e11837661b57
This commit is contained in:
committed by
Alexander Trofimov
parent
2c14c02d7e
commit
809065e725
49
ASCOfficeDocFile/DocFormatLib/DocFormatLib.h
Normal file
49
ASCOfficeDocFile/DocFormatLib/DocFormatLib.h
Normal file
@ -0,0 +1,49 @@
|
||||
#ifndef DOC_FORMAT_LIB
|
||||
#define DOC_FORMAT_LIB
|
||||
|
||||
#if defined(_WIN32) || defined(_WIN64)
|
||||
#include <atlbase.h>
|
||||
#include <atlstr.h>
|
||||
#else
|
||||
#include "../../DesktopEditor/common/ASCVariant.h"
|
||||
#include "../../Common/DocxFormat/Source/Base/ASCString.h"
|
||||
#endif
|
||||
|
||||
struct ProgressCallback;
|
||||
|
||||
class COfficeDocFile
|
||||
{
|
||||
public:
|
||||
COfficeDocFile()
|
||||
{
|
||||
m_strTempDirectory = L"";
|
||||
|
||||
}
|
||||
|
||||
virtual ~COfficeDocFile()
|
||||
{
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
CString m_strTempDirectory;
|
||||
|
||||
public:
|
||||
|
||||
HRESULT put_TempDirectory(CString sDir)
|
||||
{
|
||||
m_strTempDirectory = sDir;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CString get_TempDirectory()
|
||||
{
|
||||
return m_strTempDirectory;
|
||||
}
|
||||
|
||||
HRESULT LoadFromFile(CString sSrcFileName, CString sDstFileName, CString sXMLOptions, ProgressCallback *ffCallBack = NULL);
|
||||
HRESULT SaveToFile(CString sDstFileName, CString sSrcFileName, CString sXMLOptions, ProgressCallback *ffCallBack =NULL);
|
||||
|
||||
};
|
||||
|
||||
#endif //DOC_FORMAT_LIB
|
||||
Reference in New Issue
Block a user