#include "wx/clipbrd.h"
#include "wx/dataobj.h"
+#include "wx/listimpl.cpp"
+WX_DEFINE_LIST(wxDataObjectList);
+
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <Xm/Xm.h>
#include <Xm/CutPaste.h>
+#ifdef __VMS__
+#pragma message enable nosimpint
+#endif
#include <string.h>
-#if !USE_SHARED_LIBRARY
// IMPLEMENT_DYNAMIC_CLASS(wxClipboard, wxObject)
// IMPLEMENT_ABSTRACT_CLASS(wxClipboardClient, wxObject)
-#endif
static bool gs_clipboardIsOpen = FALSE;
return TRUE;
}
-bool wxSetClipboardData(wxDataFormat dataFormat, wxObject *obj, int width, int height)
+bool wxSetClipboardData(wxDataFormat dataFormat, wxObject *obj, int WXUNUSED(width), int WXUNUSED(height))
{
if (dataFormat != wxDF_TEXT)
return FALSE;
return wxDF_INVALID;
}
-wxDataFormat wxRegisterClipboardFormat(char *formatName)
+wxDataFormat wxRegisterClipboardFormat(char *WXUNUSED(formatName))
{
// Not supported
return (wxDataFormat) wxDF_INVALID;
}
-bool wxGetClipboardFormatName(wxDataFormat dataFormat, char *formatName, int maxCount)
+bool wxGetClipboardFormatName(wxDataFormat dataFormat, char *formatName, int WXUNUSED(maxCount))
{
// Only wxDF_TEXT supported
if (dataFormat == wxDF_TEXT)
IMPLEMENT_DYNAMIC_CLASS(wxClipboard,wxObject)
-wxClipboard* wxTheClipboard = (wxClipboard*) NULL;
-
wxClipboard::wxClipboard()
{
m_open = FALSE;
void wxClipboard::Clear()
{
- wxNode* node = m_data.First();
+ wxDataObjectList::Node* node = m_data.GetFirst();
while (node)
{
- wxDataObject* data = (wxDataObject*) node->Data();
+ wxDataObject* data = node->GetData();
delete data;
- node = node->Next();
+ node = node->GetNext();
}
m_data.Clear();
}
*/
default:
{
- return FALSE;
+#ifndef __VMS
+ // VMS complains that this statement is/causes unreachability
+ return FALSE;
+#endif
}
}
- return FALSE;
+
+ return FALSE;
}
#if 0