- DECLARE_DYNAMIC_CLASS(wxMetafileDC)
-
- public:
- // Don't supply origin and extent
- // Supply them to wxMakeMetaFilePlaceable instead.
- wxMetafileDC(const wxString& file = "");
-
- // Supply origin and extent (recommended).
- // Then don't need to supply them to wxMakeMetaFilePlaceable.
- wxMetafileDC(const wxString& file, int xext, int yext, int xorg, int yorg);
-
- ~wxMetafileDC(void);
+public:
+ // Don't supply origin and extent
+ // Supply them to wxMakeMetaFilePlaceable instead.
+ wxMetafileDC(const wxString& file = wxEmptyString);
+
+ // Supply origin and extent (recommended).
+ // Then don't need to supply them to wxMakeMetaFilePlaceable.
+ wxMetafileDC(const wxString& file, int xext, int yext, int xorg, int yorg);
+
+ virtual ~wxMetafileDC();
+
+ // Should be called at end of drawing
+ 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; }