X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/265b0c070b7531a31d79e79fd44142f5a807b23d..8183307507e8f19ddafa8c6e656dfa383e472678:/include/wx/msw/metafile.h diff --git a/include/wx/msw/metafile.h b/include/wx/msw/metafile.h index f6381d489e..8b8afe2bd3 100644 --- a/include/wx/msw/metafile.h +++ b/include/wx/msw/metafile.h @@ -12,7 +12,7 @@ #ifndef _WX_METAFIILE_H_ #define _WX_METAFIILE_H_ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "metafile.h" #endif @@ -27,13 +27,6 @@ #include "wx/dataobj.h" #endif -// provide synonyms for all metafile classes -#define wxMetaFile wxMetafile -#define wxMetaFileDC wxMetafileDC -#define wxMetaFileDataObject wxMetafileDataObject - -#define wxMakeMetaFilePlaceable wxMakeMetafilePlaceable - // ---------------------------------------------------------------------------- // Metafile and metafile device context classes // ---------------------------------------------------------------------------- @@ -70,6 +63,7 @@ public: bool Ok() const { return (M_METAFILEDATA && (M_METAFILEDATA->m_metafile != 0)); }; // set/get the size of metafile for clipboard operations + wxSize GetSize() const { return wxSize(GetWidth(), GetHeight()); } int GetWidth() const { return M_METAFILEDATA->m_width; } int GetHeight() const { return M_METAFILEDATA->m_height; } @@ -99,7 +93,7 @@ class WXDLLEXPORT wxMetafileDC: public wxDC public: // Don't supply origin and extent // Supply them to wxMakeMetaFilePlaceable instead. - wxMetafileDC(const wxString& file = ""); + wxMetafileDC(const wxString& file = wxEmptyString); // Supply origin and extent (recommended). // Then don't need to supply them to wxMakeMetaFilePlaceable.