1 ///////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxMetaFile class declaration
4 // Author: wxWidgets team
8 // Copyright: (c) wxWidgets team
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_METAFILE_H_BASE_
13 #define _WX_METAFILE_H_BASE_
19 // provide synonyms for all metafile classes
20 #define wxMetaFile wxMetafile
21 #define wxMetaFileDC wxMetafileDC
22 #define wxMetaFileDataObject wxMetafileDataObject
24 #define wxMakeMetaFilePlaceable wxMakeMetafilePlaceable
26 #if defined(__WXMSW__)
27 #if wxUSE_ENH_METAFILE
28 #if defined(__WXPALMOS__)
29 #include "wx/palmos/enhmeta.h"
31 #include "wx/msw/enhmeta.h"
34 // map all metafile classes to enh metafile
35 #if !wxUSE_WIN_METAFILES_ALWAYS
36 typedef wxEnhMetaFile wxMetafile
;
37 typedef wxEnhMetaFileDC wxMetafileDC
;
38 #if wxUSE_DRAG_AND_DROP
39 typedef wxEnhMetaFileDataObject wxMetafileDataObject
;
41 // this flag will be set if wxMetafile class is wxEnhMetaFile
42 #define wxMETAFILE_IS_ENH
43 #endif // wxUSE_WIN_METAFILES_ALWAYS
44 #else // !wxUSE_ENH_METAFILE
45 #if defined(__WXPALMOS__)
46 #include "wx/palmos/metafile.h"
48 #include "wx/msw/metafile.h"
51 #elif defined(__WXPM__)
52 #include "wx/os2/metafile.h"
53 #elif defined(__WXMAC__)
54 #include "wx/mac/metafile.h"
57 #endif // wxUSE_METAFILE
59 // _WX_METAFILE_H_BASE_