]>
Commit | Line | Data |
---|---|---|
d9317fd4 VZ |
1 | /////////////////////////////////////////////////////////////////////////////// |
2 | // Name: wx/metafile.h | |
3 | // Purpose: wxMetaFile class declaration | |
77ffb593 | 4 | // Author: wxWidgets team |
d9317fd4 VZ |
5 | // Modified by: |
6 | // Created: 13.01.00 | |
7 | // RCS-ID: $Id$ | |
77ffb593 | 8 | // Copyright: (c) wxWidgets team |
65571936 | 9 | // Licence: wxWindows licence |
d9317fd4 VZ |
10 | /////////////////////////////////////////////////////////////////////////////// |
11 | ||
34138703 JS |
12 | #ifndef _WX_METAFILE_H_BASE_ |
13 | #define _WX_METAFILE_H_BASE_ | |
c801d85f | 14 | |
f2555abd MW |
15 | #include "wx/defs.h" |
16 | ||
17 | #if wxUSE_METAFILE | |
18 | ||
d9317fd4 VZ |
19 | // provide synonyms for all metafile classes |
20 | #define wxMetaFile wxMetafile | |
21 | #define wxMetaFileDC wxMetafileDC | |
22 | #define wxMetaFileDataObject wxMetafileDataObject | |
23 | ||
24 | #define wxMakeMetaFilePlaceable wxMakeMetafilePlaceable | |
25 | ||
2049ba38 | 26 | #if defined(__WXMSW__) |
3a5bcc4d | 27 | #if wxUSE_ENH_METAFILE |
bd362275 | 28 | #include "wx/msw/enhmeta.h" |
d9317fd4 | 29 | |
547ceb38 VZ |
30 | #if wxUSE_WIN_METAFILES_ALWAYS |
31 | // use normal metafiles as well | |
32 | #include "wx/msw/metafile.h" | |
33 | #else // also map all metafile classes to enh metafile | |
d9317fd4 VZ |
34 | typedef wxEnhMetaFile wxMetafile; |
35 | typedef wxEnhMetaFileDC wxMetafileDC; | |
547ceb38 VZ |
36 | #if wxUSE_DRAG_AND_DROP |
37 | typedef wxEnhMetaFileDataObject wxMetafileDataObject; | |
38 | #endif | |
39 | ||
d9317fd4 VZ |
40 | // this flag will be set if wxMetafile class is wxEnhMetaFile |
41 | #define wxMETAFILE_IS_ENH | |
42 | #endif // wxUSE_WIN_METAFILES_ALWAYS | |
3a5bcc4d | 43 | #else // !wxUSE_ENH_METAFILE |
bd362275 | 44 | #include "wx/msw/metafile.h" |
ffecfa5a | 45 | #endif |
d9317fd4 VZ |
46 | #elif defined(__WXPM__) |
47 | #include "wx/os2/metafile.h" | |
a02bb143 | 48 | #elif defined(__WXMAC__) |
ef0e9220 | 49 | #include "wx/osx/metafile.h" |
1777b9bb | 50 | #endif |
c801d85f | 51 | |
f2555abd | 52 | #endif // wxUSE_METAFILE |
547ceb38 VZ |
53 | |
54 | #endif // _WX_METAFILE_H_BASE_ |