- // Operators
- inline wxMetafile& operator = (const wxMetafile& metafile) { if (*this == metafile) return (*this); Ref(metafile); return *this; }
- inline bool operator == (const wxMetafile& metafile) { return m_refData == metafile.m_refData; }
- inline bool operator != (const wxMetafile& metafile) { return m_refData != metafile.m_refData; }
+class WXDLLIMPEXP_CORE wxMetafileDCImpl: public wxPMDCImpl
+{
+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(wxMappingMode 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; }