- const wxString& description = wxEmptyString);
-
- ~wxMetafileDC(void);
-
- // Should be called at end of drawing
- virtual wxMetafile *Close(void);
- virtual void DoGetSize(int *width, int *height) const ;
-
- // Implementation
- inline wxMetafile *GetMetaFile(void) const { return m_metaFile; }
- inline void SetMetaFile(wxMetafile *mf) { m_metaFile = mf; }
-
-protected:
- wxMetafile* m_metaFile;
+ const wxString& description = wxEmptyString ) :
+ wxDC( new wxMetafileDCImpl( this, filename, width, height, description) )
+ { }
+
+ wxMetafile *GetMetafile() const
+ { return ((wxMetafileDCImpl*)m_pimpl)->GetMetaFile(); }
+
+ wxMetafile *Close()
+ { return ((wxMetafileDCImpl*)m_pimpl)->Close(); }
+
+private:
+ DECLARE_CLASS(wxMetafileDC)
+ DECLARE_NO_COPY_CLASS(wxMetafileDC)