+public:
+ wxMetafileDCImpl(wxDC *owner, const wxString& file = wxEmptyString);
+ wxMetafileDCImpl(wxDC *owner, const wxString& file,
+ int xext, int yext, int xorg, int yorg);
+ virtual ~wxMetafileDCImpl();
+
+ virtual wxMetafile *Close();
+ virtual void SetMapMode(int mode);
+ virtual void DoGetTextExtent(const wxString& string,
+ wxCoord *x, wxCoord *y,
+ wxCoord *descent = NULL,
+ wxCoord *externalLeading = NULL,
+ const wxFont *theFont = NULL) const;
+
+ // Implementation
+ wxMetafile *GetMetaFile() const { return m_metaFile; }
+ void SetMetaFile(wxMetafile *mf) { m_metaFile = mf; }
+ int GetWindowsMappingMode() const { return m_windowsMappingMode; }
+ void SetWindowsMappingMode(int mm) { m_windowsMappingMode = mm; }
+
+protected:
+ virtual void DoGetSize(int *width, int *height) const;
+
+ int m_windowsMappingMode;
+ wxMetafile* m_metaFile;