2000-01-13 18:39:48 -05:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/metafile.h
|
|
|
|
// Purpose: wxMetaFile class declaration
|
2004-05-23 10:56:36 -04:00
|
|
|
// Author: wxWidgets team
|
2000-01-13 18:39:48 -05:00
|
|
|
// Modified by:
|
|
|
|
// Created: 13.01.00
|
|
|
|
// RCS-ID: $Id$
|
2004-05-23 10:56:36 -04:00
|
|
|
// Copyright: (c) wxWidgets team
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
2000-01-13 18:39:48 -05:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-08-14 20:23:28 -04:00
|
|
|
#ifndef _WX_METAFILE_H_BASE_
|
|
|
|
#define _WX_METAFILE_H_BASE_
|
1998-05-20 10:01:55 -04:00
|
|
|
|
2005-08-19 09:48:24 -04:00
|
|
|
#include "wx/defs.h"
|
|
|
|
|
|
|
|
#if wxUSE_METAFILE
|
|
|
|
|
2000-01-13 18:39:48 -05:00
|
|
|
// provide synonyms for all metafile classes
|
|
|
|
#define wxMetaFile wxMetafile
|
|
|
|
#define wxMetaFileDC wxMetafileDC
|
|
|
|
#define wxMetaFileDataObject wxMetafileDataObject
|
|
|
|
|
|
|
|
#define wxMakeMetaFilePlaceable wxMakeMetafilePlaceable
|
|
|
|
|
1998-07-10 10:15:17 -04:00
|
|
|
#if defined(__WXMSW__)
|
2004-03-28 08:10:14 -05:00
|
|
|
#if wxUSE_ENH_METAFILE
|
2004-12-20 07:44:22 -05:00
|
|
|
#if defined(__WXPALMOS__)
|
2004-10-19 09:40:30 -04:00
|
|
|
#include "wx/palmos/enhmeta.h"
|
|
|
|
#else
|
2000-01-13 18:39:48 -05:00
|
|
|
#include "wx/msw/enhmeta.h"
|
2004-10-19 09:40:30 -04:00
|
|
|
#endif
|
2000-01-13 18:39:48 -05:00
|
|
|
|
|
|
|
// map all metafile classes to enh metafile
|
|
|
|
#if !wxUSE_WIN_METAFILES_ALWAYS
|
|
|
|
typedef wxEnhMetaFile wxMetafile;
|
|
|
|
typedef wxEnhMetaFileDC wxMetafileDC;
|
2000-02-08 14:14:50 -05:00
|
|
|
#if wxUSE_DRAG_AND_DROP
|
2000-01-13 18:39:48 -05:00
|
|
|
typedef wxEnhMetaFileDataObject wxMetafileDataObject;
|
2000-02-08 14:14:50 -05:00
|
|
|
#endif
|
2000-01-13 18:39:48 -05:00
|
|
|
// this flag will be set if wxMetafile class is wxEnhMetaFile
|
|
|
|
#define wxMETAFILE_IS_ENH
|
|
|
|
#endif // wxUSE_WIN_METAFILES_ALWAYS
|
2004-03-28 08:10:14 -05:00
|
|
|
#else // !wxUSE_ENH_METAFILE
|
2004-12-20 07:44:22 -05:00
|
|
|
#if defined(__WXPALMOS__)
|
2004-10-19 09:40:30 -04:00
|
|
|
#include "wx/palmos/metafile.h"
|
|
|
|
#else
|
2000-01-13 18:39:48 -05:00
|
|
|
#include "wx/msw/metafile.h"
|
|
|
|
#endif
|
2004-10-19 09:40:30 -04:00
|
|
|
#endif
|
2000-01-13 18:39:48 -05:00
|
|
|
#elif defined(__WXPM__)
|
|
|
|
#include "wx/os2/metafile.h"
|
2000-08-09 07:14:15 -04:00
|
|
|
#elif defined(__WXMAC__)
|
|
|
|
#include "wx/mac/metafile.h"
|
1999-07-27 23:38:12 -04:00
|
|
|
#endif
|
1998-05-20 10:01:55 -04:00
|
|
|
|
2005-08-19 09:48:24 -04:00
|
|
|
#endif // wxUSE_METAFILE
|
1998-05-20 10:01:55 -04:00
|
|
|
#endif
|
1998-08-14 20:23:28 -04:00
|
|
|
// _WX_METAFILE_H_BASE_
|