1 ///////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxMetaFile class declaration
4 // Author: wxWidgets team
7 // Copyright: (c) wxWidgets team
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_METAFILE_H_BASE_
12 #define _WX_METAFILE_H_BASE_
18 // provide synonyms for all metafile classes
19 #define wxMetaFile wxMetafile
20 #define wxMetaFileDC wxMetafileDC
21 #define wxMetaFileDataObject wxMetafileDataObject
23 #define wxMakeMetaFilePlaceable wxMakeMetafilePlaceable
25 #if defined(__WXMSW__)
26 #if wxUSE_ENH_METAFILE
27 #include "wx/msw/enhmeta.h"
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_DRAG_AND_DROP
36 typedef wxEnhMetaFileDataObject wxMetafileDataObject
;
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"
45 #elif defined(__WXPM__)
46 #include "wx/os2/metafile.h"
47 #elif defined(__WXMAC__)
48 #include "wx/osx/metafile.h"
51 #endif // wxUSE_METAFILE
53 #endif // _WX_METAFILE_H_BASE_