1 ///////////////////////////////////////////////////////////////////////////////
2 // Name:        wx/metafile.h
3 // Purpose:     wxMetaFile class declaration
4 // Author:      wxWidgets team
5 // Modified by:
6 // Created:     13.01.00
7 // Copyright:   (c) wxWidgets team
8 // Licence:     wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
10 
11 #ifndef _WX_METAFILE_H_BASE_
12 #define _WX_METAFILE_H_BASE_
13 
14 #include "wx/defs.h"
15 
16 #if wxUSE_METAFILE
17 
18 // provide synonyms for all metafile classes
19 #define wxMetaFile wxMetafile
20 #define wxMetaFileDC wxMetafileDC
21 #define wxMetaFileDataObject wxMetafileDataObject
22 
23 #define wxMakeMetaFilePlaceable wxMakeMetafilePlaceable
24 
25 #if defined(__WXMSW__)
26     #if wxUSE_ENH_METAFILE
27         #include "wx/msw/enhmeta.h"
28 
29         #if wxUSE_WIN_METAFILES_ALWAYS
30             // use normal metafiles as well
31             #include "wx/msw/metafile.h"
32         #else // also map all metafile classes to enh metafile
33             typedef wxEnhMetaFile wxMetafile;
34             typedef wxEnhMetaFileDC wxMetafileDC;
35             #if wxUSE_DATAOBJ
36                 typedef wxEnhMetaFileDataObject wxMetafileDataObject;
37             #endif
38 
39             // this flag will be set if wxMetafile class is wxEnhMetaFile
40             #define wxMETAFILE_IS_ENH
41         #endif // wxUSE_WIN_METAFILES_ALWAYS
42     #else // !wxUSE_ENH_METAFILE
43         #include "wx/msw/metafile.h"
44     #endif
45 #elif defined(__WXMAC__)
46     #include "wx/osx/metafile.h"
47 #endif
48 
49 #endif // wxUSE_METAFILE
50 
51 #endif // _WX_METAFILE_H_BASE_
52