mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-11 13:03:11 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@62738 954022d7-b5bf-4e40-9824-e11837661b57
44 lines
1.1 KiB
C++
44 lines
1.1 KiB
C++
#ifndef _METAFILE_H
|
|
#define _METAFILE_H
|
|
|
|
#include "../../fontengine/ApplicationFonts.h"
|
|
#include "../../graphics/IRenderer.h"
|
|
|
|
#include "Wmf/WmfFile.h"
|
|
#include "Emf/EmfFile.h"
|
|
#include "StarView/SvmFile.h"
|
|
|
|
namespace MetaFile
|
|
{
|
|
const int c_lMetaWmf = 0x01;
|
|
const int c_lMetaEmf = 0x02;
|
|
const int c_lMetaSvg = 0x04;
|
|
const int c_lMetaSvm = 0x05;
|
|
|
|
class CMetaFile
|
|
{
|
|
public:
|
|
CMetaFile(CApplicationFonts *pAppFonts);
|
|
~CMetaFile();
|
|
|
|
bool LoadFromFile(const wchar_t* wsFilePath);
|
|
bool DrawOnRenderer(IRenderer* pRenderer, double dX, double dY, double dWidth, double dHeight);
|
|
void Close();
|
|
void GetBounds(double* pdX, double* pdY, double* pdW, double* pdH);
|
|
int GetType();
|
|
void ConvertToRaster(const wchar_t* wsOutFilePath, unsigned int unFileType, int nWidth, int nHeight = -1);
|
|
CFontManager* get_FontManager();
|
|
|
|
private:
|
|
|
|
CApplicationFonts* m_pAppFonts;
|
|
CFontManager* m_pFontManager;
|
|
CWmfFile m_oWmfFile;
|
|
CEmfFile m_oEmfFile;
|
|
CSvmFile m_oSvmFile;
|
|
int m_lType;
|
|
};
|
|
}
|
|
|
|
#endif //_METAFILE_H
|