1 /* 2 * GdiPlusMetaFile.h 3 * 4 * Windows GDI+ 5 * 6 * This file is part of the w32api package. 7 * 8 * THIS SOFTWARE IS NOT COPYRIGHTED 9 * 10 * This source code is offered for use in the public domain. You may 11 * use, modify or distribute it freely. 12 * 13 * This code is distributed in the hope that it will be useful but 14 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY 15 * DISCLAIMED. This includes but is not limited to warranties of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 17 */ 18 19 #ifndef _GDIPLUSMETAFILE_H 20 #define _GDIPLUSMETAFILE_H 21 22 class Metafile : public Image 23 { 24 public: 25 Metafile(HDC referenceHdc, EmfType type, const WCHAR *description) 26 { 27 } 28 29 Metafile(const WCHAR *filename) 30 { 31 } 32 33 Metafile(HDC referenceHdc, const RectF &frameRect, MetafileFrameUnit frameUnit, EmfType type, const WCHAR *description) 34 { 35 } 36 37 Metafile(HMETAFILE hWmf, const WmfPlaceableFileHeader *wmfPlaceableFileHeader, BOOL deleteWmf) 38 { 39 } 40 41 Metafile(const WCHAR *fileName, HDC referenceHdc, const Rect &frameRect, MetafileFrameUnit frameUnit, EmfType type, const WCHAR *description) 42 { 43 } 44 45 Metafile(IStream *stream, HDC referenceHdc, const RectF &frameRect, MetafileFrameUnit frameUnit, EmfType type, const WCHAR *description) 46 { 47 } 48 49 Metafile(IStream *stream, HDC referenceHdc, EmfType type, const WCHAR *description) 50 { 51 } 52 53 Metafile(IStream *stream, HDC referenceHdc, const Rect &frameRect, MetafileFrameUnit frameUnit, EmfType type, const WCHAR *description) 54 { 55 } 56 57 Metafile(const WCHAR *fileName, HDC referenceHdc, const RectF &frameRect, MetafileFrameUnit frameUnit, EmfType type, const WCHAR *description) 58 { 59 } 60 61 Metafile(const WCHAR *fileName, HDC referenceHdc, EmfType type, const WCHAR *description) 62 { 63 } 64 65 Metafile(IStream *stream) 66 { 67 } 68 69 Metafile(HENHMETAFILE hEmf, BOOL deleteEmf) 70 { 71 } 72 73 Metafile(HDC referenceHdc, const Rect &frameRect, MetafileFrameUnit frameUnit, EmfType type, const WCHAR *description) 74 { 75 } 76 77 static UINT EmfToWmfBits(HENHMETAFILE hemf, UINT cbData16, LPBYTE pData16, INT iMapMode, EmfToWmfBitsFlags eFlags) 78 { 79 return 0; 80 } 81 82 UINT GetDownLevelRasterizationLimit(VOID) 83 { 84 return 0; 85 } 86 87 HENHMETAFILE GetHENHMETAFILE(VOID) 88 { 89 return NULL; 90 } 91 92 static Status GetMetafileHeader(const WCHAR *filename, MetafileHeader *header) 93 { 94 return NotImplemented; 95 } 96 97 static Status GetMetafileHeader(HENHMETAFILE *hEmf, MetafileHeader *header) 98 { 99 return NotImplemented; 100 } 101 102 static Status GetMetafileHeader(HMETAFILE hWmf, const WmfPlaceableFileHeader *wmfPlaceableFileHeader, MetafileHeader *header) 103 { 104 return NotImplemented; 105 } 106 107 Status GetMetafileHeader(MetafileHeader *header) const 108 { 109 return NotImplemented; 110 } 111 112 static Status GetMetafileHeader(IStream *stream, MetafileHeader *header) 113 { 114 return NotImplemented; 115 } 116 117 Status PlayRecord(EmfPlusRecordType recordType, UINT flags, UINT dataSize, const BYTE *data) 118 { 119 return NotImplemented; 120 } 121 122 Status SetDownLevelRasterizationLimit(UINT metafileRasterizationLimitDpi) 123 { 124 return NotImplemented; 125 } 126 }; 127 128 #endif /* _GDIPLUSMETAFILE_H */ 129