]> git.saurik.com Git - wxWidgets.git/blame - include/wx/metafile.h
only define globals when wxUSE_BASE to avoid duplicate definitions in wxBase and...
[wxWidgets.git] / include / wx / metafile.h
CommitLineData
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
d9317fd4
VZ
15// provide synonyms for all metafile classes
16#define wxMetaFile wxMetafile
17#define wxMetaFileDC wxMetafileDC
18#define wxMetaFileDataObject wxMetafileDataObject
19
20#define wxMakeMetaFilePlaceable wxMakeMetafilePlaceable
21
2049ba38 22#if defined(__WXMSW__)
3a5bcc4d 23 #if wxUSE_ENH_METAFILE
4055ed82 24 #if defined(__WXPALMOS__)
ffecfa5a
JS
25 #include "wx/palmos/enhmeta.h"
26 #else
d9317fd4 27 #include "wx/msw/enhmeta.h"
ffecfa5a 28 #endif
d9317fd4
VZ
29
30 // map all metafile classes to enh metafile
31 #if !wxUSE_WIN_METAFILES_ALWAYS
32 typedef wxEnhMetaFile wxMetafile;
33 typedef wxEnhMetaFileDC wxMetafileDC;
a2327a9f 34#if wxUSE_DRAG_AND_DROP
d9317fd4 35 typedef wxEnhMetaFileDataObject wxMetafileDataObject;
a2327a9f 36#endif
d9317fd4
VZ
37 // this flag will be set if wxMetafile class is wxEnhMetaFile
38 #define wxMETAFILE_IS_ENH
39 #endif // wxUSE_WIN_METAFILES_ALWAYS
3a5bcc4d 40 #else // !wxUSE_ENH_METAFILE
4055ed82 41 #if defined(__WXPALMOS__)
ffecfa5a
JS
42 #include "wx/palmos/metafile.h"
43 #else
d9317fd4
VZ
44 #include "wx/msw/metafile.h"
45 #endif
ffecfa5a 46 #endif
d9317fd4
VZ
47#elif defined(__WXPM__)
48 #include "wx/os2/metafile.h"
a02bb143
SC
49#elif defined(__WXMAC__)
50 #include "wx/mac/metafile.h"
1777b9bb 51#endif
c801d85f
KB
52
53#endif
34138703 54 // _WX_METAFILE_H_BASE_