Files
core/DesktopEditor/raster/Metafile/MetaFile.h
Elen.Subbotina f40b7538ef смена кодировки файлов на utf8
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@62738 954022d7-b5bf-4e40-9824-e11837661b57
2016-05-21 00:06:29 +03:00

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