- IDataObject *GetInterface() const { return m_pIDataObject; }
-
-private:
- IDataObject *m_pIDataObject; // pointer to the COM interface
-};
-
-// ----------------------------------------------------------------------------
-// wxTextDataObject is a specialization of wxDataObject for text data
-// ----------------------------------------------------------------------------
-class wxTextDataObject : public wxDataObject
-{
+ IDataObject *GetInterface() const { return m_pIDataObject; }
+
+ // tell the object that it should be now owned by IDataObject - i.e. when
+ // it is deleted, it should delete us as well
+ void SetAutoDelete();
+
+ // return TRUE if we support this format in "Get" direction
+ bool IsSupportedFormat(const wxDataFormat& format) const
+ { return wxDataObjectBase::IsSupported(format, Get); }
+
+ // function to return symbolic name of clipboard format (for debug messages)
+#ifdef __WXDEBUG__
+ static const wxChar *GetFormatName(wxDataFormat format);
+
+ #define wxGetFormatName(format) wxDataObject::GetFormatName(format)
+#else // !Debug
+ #define wxGetFormatName(format) _T("")
+#endif // Debug/!Debug
+ // they need to be accessed from wxIDataObject, so made them public,
+ // or wxIDataObject friend