mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
Merge pull request #397 from ONLYOFFICE/feature/metafile
Feature/metafile
This commit is contained in:
@ -34,6 +34,7 @@
|
|||||||
#ifndef __FT2BUILD_H__
|
#ifndef __FT2BUILD_H__
|
||||||
#define __FT2BUILD_H__
|
#define __FT2BUILD_H__
|
||||||
|
|
||||||
|
#include <internal/internal.h>
|
||||||
#include <config/ftheader.h>
|
#include <config/ftheader.h>
|
||||||
|
|
||||||
#endif /* __FT2BUILD_H__ */
|
#endif /* __FT2BUILD_H__ */
|
||||||
|
|||||||
@ -39,6 +39,25 @@
|
|||||||
#include "../../../HtmlRenderer/include/ASCSVGWriter.h"
|
#include "../../../HtmlRenderer/include/ASCSVGWriter.h"
|
||||||
#include "MetaFile.h"
|
#include "MetaFile.h"
|
||||||
|
|
||||||
|
#if defined(_WIN64)
|
||||||
|
#if defined(_DEBUG)
|
||||||
|
#pragma comment(lib, "../../../build/lib/win_64/DEBUG/kernel.lib")
|
||||||
|
#pragma comment(lib, "../../../build/lib/win_64/DEBUG/UnicodeConverter.lib")
|
||||||
|
#else
|
||||||
|
#pragma comment(lib, "../../../build/lib/win_64/kernel.lib")
|
||||||
|
#pragma comment(lib, "../../../build/lib/win_64/UnicodeConverter.lib")
|
||||||
|
#endif
|
||||||
|
#pragma comment(lib, "../../build/bin/icu/win_64/icuuc.lib")
|
||||||
|
#elif defined (_WIN32)
|
||||||
|
#if defined(_DEBUG)
|
||||||
|
#pragma comment(lib, "../../../build/lib/win_32/DEBUG/kernel.lib")
|
||||||
|
#pragma comment(lib, "../../../build/lib/win_32/DEBUG/UnicodeConverter.lib")
|
||||||
|
#else
|
||||||
|
#pragma comment(lib, "../../../build/lib/win_32/kernel.lib")
|
||||||
|
#pragma comment(lib, "../../../build/lib/win_32/UnicodeConverter.lib")
|
||||||
|
#endif
|
||||||
|
#pragma comment(lib, "../../../build/bin/icu/win_32/icuuc.lib")
|
||||||
|
#endif
|
||||||
|
|
||||||
std::vector<std::wstring> GetAllFilesInFolder(std::wstring wsFolder, std::wstring wsExt)
|
std::vector<std::wstring> GetAllFilesInFolder(std::wstring wsFolder, std::wstring wsExt)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -760,7 +760,7 @@ namespace MetaFile
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
RegisterPoint(nX, nY);
|
RegisterPoint(nX, nY);
|
||||||
RegisterPoint(nX + nW, nY + nH);
|
RegisterPoint(nX + nW, nY + nH);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void UpdateOutputDC()
|
void UpdateOutputDC()
|
||||||
@ -1568,7 +1568,7 @@ namespace MetaFile
|
|||||||
{
|
{
|
||||||
short shX, shY;
|
short shX, shY;
|
||||||
m_oStream >> shY >> shX;
|
m_oStream >> shY >> shX;
|
||||||
m_pDC->SetWindowExt(shX, shY);
|
m_pDC->SetWindowExt(fabs(shX), fabs(shY));
|
||||||
UpdateOutputDC();
|
UpdateOutputDC();
|
||||||
}
|
}
|
||||||
void Read_META_SETWINDOWORG()
|
void Read_META_SETWINDOWORG()
|
||||||
|
|||||||
Reference in New Issue
Block a user