]>
Commit | Line | Data |
---|---|---|
1 | /////////////////////////////////////////////////////////////////////////////// | |
2 | // Name: wx/metafile.h | |
3 | // Purpose: wxMetaFile class declaration | |
4 | // Author: wxWidgets team | |
5 | // Modified by: | |
6 | // Created: 13.01.00 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) wxWidgets team | |
9 | // Licence: wxWindows licence | |
10 | /////////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifndef _WX_METAFILE_H_BASE_ | |
13 | #define _WX_METAFILE_H_BASE_ | |
14 | ||
15 | #include "wx/defs.h" | |
16 | ||
17 | #if wxUSE_METAFILE | |
18 | ||
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 | ||
26 | #if defined(__WXMSW__) | |
27 | #if wxUSE_ENH_METAFILE | |
28 | #if defined(__WXPALMOS__) | |
29 | #include "wx/palmos/enhmeta.h" | |
30 | #else | |
31 | #include "wx/msw/enhmeta.h" | |
32 | #endif | |
33 | ||
34 | #if wxUSE_WIN_METAFILES_ALWAYS | |
35 | // use normal metafiles as well | |
36 | #include "wx/msw/metafile.h" | |
37 | #else // also map all metafile classes to enh metafile | |
38 | typedef wxEnhMetaFile wxMetafile; | |
39 | typedef wxEnhMetaFileDC wxMetafileDC; | |
40 | #if wxUSE_DRAG_AND_DROP | |
41 | typedef wxEnhMetaFileDataObject wxMetafileDataObject; | |
42 | #endif | |
43 | ||
44 | // this flag will be set if wxMetafile class is wxEnhMetaFile | |
45 | #define wxMETAFILE_IS_ENH | |
46 | #endif // wxUSE_WIN_METAFILES_ALWAYS | |
47 | #else // !wxUSE_ENH_METAFILE | |
48 | #if defined(__WXPALMOS__) | |
49 | #include "wx/palmos/metafile.h" | |
50 | #else | |
51 | #include "wx/msw/metafile.h" | |
52 | #endif | |
53 | #endif | |
54 | #elif defined(__WXPM__) | |
55 | #include "wx/os2/metafile.h" | |
56 | #elif defined(__WXMAC__) | |
57 | #include "wx/osx/metafile.h" | |
58 | #endif | |
59 | ||
60 | #endif // wxUSE_METAFILE | |
61 | ||
62 | #endif // _WX_METAFILE_H_BASE_ |