| 1 | /////////////////////////////////////////////////////////////////////////////// |
| 2 | // Name: wx/os2/dataobj.h |
| 3 | // Purpose: declaration of the wxDataObject |
| 4 | // Author: Stefan Csomor |
| 5 | // Modified by: |
| 6 | // Created: 10/21/99 |
| 7 | // RCS-ID: $Id$ |
| 8 | // Copyright: (c) 1998, 1999 Vadim Zeitlin, Robert Roebling |
| 9 | // Licence: wxWindows licence |
| 10 | /////////////////////////////////////////////////////////////////////////////// |
| 11 | |
| 12 | #ifndef _WX_OS2_DATAOBJ_H_ |
| 13 | #define _WX_OS2_DATAOBJ_H_ |
| 14 | |
| 15 | // ---------------------------------------------------------------------------- |
| 16 | // wxDataObject is the same as wxDataObjectBase under wxGTK |
| 17 | // ---------------------------------------------------------------------------- |
| 18 | |
| 19 | class WXDLLIMPEXP_CORE wxDataObject : public wxDataObjectBase |
| 20 | { |
| 21 | public: |
| 22 | wxDataObject(); |
| 23 | virtual ~wxDataObject(); |
| 24 | |
| 25 | virtual bool IsSupportedFormat( const wxDataFormat& eFormat |
| 26 | ,Direction eDir = Get |
| 27 | ) const |
| 28 | { |
| 29 | return(IsSupported( eFormat |
| 30 | ,eDir |
| 31 | )); |
| 32 | } |
| 33 | |
| 34 | PDRAGITEM GetInterface(void) const {return m_pDataObject;} |
| 35 | private: |
| 36 | PDRAGITEM m_pDataObject; |
| 37 | }; |
| 38 | |
| 39 | #endif // _WX_OS2_DATAOBJ_H_ |