#pragma hdrstop
#endif
+#include <wx/defs.h>
+
+#if defined(__WIN32__) && !defined(__GNUWIN32__)
+
#include <wx/log.h>
#include <wx/msw/ole/oleutils.h>
#include <wx/msw/ole/dataobj.h>
// functions
// ----------------------------------------------------------------------------
-#ifdef __DEBUG__
- static const char *GetTymedName(DWORD tymed);
-#else
- #define GetTymedName(tymed) ""
-#endif
+static const char *GetTymedName(DWORD tymed);
// ----------------------------------------------------------------------------
// wxIEnumFORMATETC interface implementation
}
// and now check the type of data requested
- if ( m_pDataObject->IsSupportedFormat(pformatetc->cfFormat) ) {
+ if ( m_pDataObject->IsSupportedFormat((wxDataFormat) pformatetc->cfFormat) ) {
wxLogTrace("wxIDataObject::QueryGetData: %s ok",
- wxDataObject::GetFormatName(pformatetc->cfFormat));
+ wxDataObject::GetFormatName((wxDataFormat) pformatetc->cfFormat));
return S_OK;
}
else {
wxLogTrace("wxIDataObject::QueryGetData: %s unsupported",
- wxDataObject::GetFormatName(pformatetc->cfFormat));
+ wxDataObject::GetFormatName((wxDataFormat) pformatetc->cfFormat));
return DV_E_FORMATETC;
}
}
m_pIDataObject->Release();
}
-#ifdef __DEBUG__
-
const char *wxDataObject::GetFormatName(wxDataFormat format)
{
+#ifdef __WXDEBUG__
+ // case 'xxx' is not a valid value for switch of enum 'wxDataFormat'
+ #ifdef _MSC_VER
+ #pragma warning(disable:4063)
+ #endif // VC++
+
static char s_szBuf[128];
switch ( format ) {
case CF_TEXT: return "CF_TEXT";
sprintf(s_szBuf, "clipboard format %d (unknown)", format);
return s_szBuf;
}
+
+ #ifdef _MSC_VER
+ #pragma warning(default:4063)
+ #endif // VC++
+
+#else // !Debug
+ return "";
+#endif // Debug
}
// ----------------------------------------------------------------------------
}
}
-#endif //DEBUG
\ No newline at end of file
+// TODO: OLE parts of wxBitmap/File/MetafileDataObject
+
+#endif
+