-// in order to keep the binary interface the same this class
-// serves just to have a few additional member variables inside
-// the clipboard class
-
-class wxMacBinaryCompatHelper : public wxDataObject
-{
-public :
- wxMacBinaryCompatHelper()
- {
- m_trueData = NULL;
- }
-
- ~wxMacBinaryCompatHelper()
- {
- if (m_trueData != NULL)
- {
- delete m_trueData;
- m_trueData = NULL;
- }
- }
-
- virtual wxDataFormat GetPreferredFormat(Direction dir = Get) const
- {
- return wxDataFormat();
- }
-
- virtual size_t GetFormatCount(Direction dir = Get) const
- {
- return 0;
- }
-
- virtual void GetAllFormats(wxDataFormat *formats,
- Direction dir = Get) const
- {
- }
-
- virtual size_t GetDataSize(const wxDataFormat& format) const
- {
- return 0;
- }
-
- virtual bool GetDataHere(const wxDataFormat& format, void *buf) const
- {
- return false;
- }
-
- // only relevant from here on
-
- wxDataObject* m_trueData;
- wxCFRef<PasteboardRef> m_pasteboard;
-};
-
-#define M_CLIPBOARD ((wxMacBinaryCompatHelper*)m_data)
-