00001 /* 00002 * EMF: A library for generating ECMA-234 Enhanced Metafiles 00003 * Copyright (C) 2002 lignum Computing, Inc. <libemf@lignumcomputing.com> 00004 * $Id: emf_8h-source.html 43 2002-02-04 20:57:04Z allen $ 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Lesser General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2.1 of the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with this library; if not, write to the Free Software 00018 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 * 00020 */ 00021 #ifndef _EMF_H 00022 #define _EMF_H 00023 00024 #include <stdio.h> 00025 #include <string.h> 00026 00027 #include <wine/windef.h> 00028 #include <wine/winbase.h> 00029 #include <wine/wingdi.h> 00030 #include <wine/winuser.h> 00031 #include <wine/winerror.h> 00032 00033 #ifdef __cplusplus 00034 extern "C" { 00035 #endif 00036 /* 00037 * Here are additional, non-"standard" routines which the author deems useful. 00038 */ 00039 HDC CreateEnhMetaFileWithFILEA( HDC context, FILE* fp, const RECT* size, 00040 LPCSTR description ); 00041 HDC CreateEnhMetaFileWithFILEW( HDC context, FILE* fp, const RECT* size, 00042 LPCWSTR description ); 00043 HENHMETAFILE CloseEnhMetaFileWithFILE( HDC context ); 00044 /* 00045 * This function will only produce output if the library has been compiled with 00046 * editing enabled (e.g., ./configure --enable-editing). 00047 */ 00048 void EditEnhMetaFile ( HENHMETAFILE metafile ); 00049 #ifdef __cplusplus 00050 } 00051 #endif 00052 00053 #endif /* _EMF_H */