]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/ole/dataobj.h
test
[wxWidgets.git] / include / wx / msw / ole / dataobj.h
CommitLineData
1737035f 1///////////////////////////////////////////////////////////////////////////////
e1ee679c 2// Name: msw/ole/dataobj.h
1737035f
VZ
3// Purpose: declaration of the wxDataObject class
4// Author: Vadim Zeitlin
e1ee679c 5// Modified by:
1737035f
VZ
6// Created: 10.05.98
7// RCS-ID: $Id$
8// Copyright: (c) 1998 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
bbcdf8bc 9// Licence: wxWindows licence
1737035f
VZ
10///////////////////////////////////////////////////////////////////////////////
11
e1ee679c
VZ
12#ifndef _WX_MSW_OLE_DATAOBJ_H
13#define _WX_MSW_OLE_DATAOBJ_H
da175b2c 14
1737035f
VZ
15// ----------------------------------------------------------------------------
16// forward declarations
17// ----------------------------------------------------------------------------
d59ceba5 18
1737035f
VZ
19struct IDataObject;
20
21// ----------------------------------------------------------------------------
22// wxDataObject is a "smart" and polymorphic piece of data.
1737035f
VZ
23// ----------------------------------------------------------------------------
24
9e2896e5 25class WXDLLEXPORT wxDataObject : public wxDataObjectBase
1737035f
VZ
26{
27public:
8e193f38
VZ
28 // ctor & dtor
29 wxDataObject();
30 virtual ~wxDataObject();
31
9e2896e5 32 // retrieve IDataObject interface (for other OLE related classes)
8e193f38 33 IDataObject *GetInterface() const { return m_pIDataObject; }
d59ceba5
VZ
34
35 // tell the object that it should be now owned by IDataObject - i.e. when
36 // it is deleted, it should delete us as well
37 void SetAutoDelete();
38
9e2896e5
VZ
39 // return TRUE if we support this format in "Get" direction
40 bool IsSupportedFormat(const wxDataFormat& format) const;
41
1e8335b0 42#ifdef __WXDEBUG__
8e193f38
VZ
43 // function to return symbolic name of clipboard format (for debug messages)
44 static const char *GetFormatName(wxDataFormat format);
06e43511 45
1e8335b0
VZ
46 #define wxGetFormatName(format) wxDataObject::GetFormatName(format)
47#else // !Debug
48 #define wxGetFormatName(format) ""
49#endif // Debug/!Debug
50
1737035f 51private:
8e193f38 52 IDataObject *m_pIDataObject; // pointer to the COM interface
1737035f
VZ
53};
54
e1ee679c 55#endif //_WX_MSW_OLE_DATAOBJ_H