Allow build wxDataObject without OLE support (when wxUSE_OLE==0)
Reorganize the code by putting OLE-dependent code into the blocks controlled by wxUSE_OLE and by sharing remaining code (like implementation of wxDataFormat, wxBitmapDataObject, wxFileDataObject, etc.) to allow building wxDataObject and its specializations also without OLE support. Since wxDataObject no longer requires OLE support, corresponding check in checkconf.h can be removed. Thanks to this additional flexibility, it is possible to use wxClipboard whether OLE support (wxUSE_OLE) is enabled or not, either with OLE-based wxDataObject (OLE clipboard) or with wxDataObject decoupled from OLE (Win clipboard API).
This commit is contained in:
@@ -355,15 +355,6 @@
|
||||
# endif
|
||||
# endif
|
||||
|
||||
# if wxUSE_DATAOBJ
|
||||
# ifdef wxABORT_ON_CONFIG_ERROR
|
||||
# error "wxUSE_DATAOBJ requires wxUSE_OLE"
|
||||
# else
|
||||
# undef wxUSE_DATAOBJ
|
||||
# define wxUSE_DATAOBJ 0
|
||||
# endif
|
||||
# endif
|
||||
|
||||
# if wxUSE_OLE_AUTOMATION
|
||||
# ifdef wxABORT_ON_CONFIG_ERROR
|
||||
# error "wxAutomationObject requires wxUSE_OLE"
|
||||
|
Reference in New Issue
Block a user