#include <string.h>
-#define INCL_DOS
-#define INCL_PM
-#include <os2.h>
-
#include "wx/os2/private.h"
// wxDataObject is tied to OLE/drag and drop implementation,
IMPLEMENT_DYNAMIC_CLASS(wxClipboard, wxObject)
-wxClipboard* wxTheClipboard = (wxClipboard *)NULL;
-
wxClipboard::wxClipboard()
{
}
{
}
+bool wxClipboard::Flush()
+{
+ // TODO:
+ return FALSE;
+}
+
bool wxClipboard::Open()
{
return wxOpenClipboard();
}
+bool wxClipboard::IsOpened() const
+{
+ return wxIsClipboardOpened();
+}
+
bool wxClipboard::SetData( wxDataObject *data )
{
(void)wxEmptyClipboard();
#endif
}
-//-----------------------------------------------------------------------------
-// wxClipboardModule
-//-----------------------------------------------------------------------------
-
-IMPLEMENT_DYNAMIC_CLASS(wxClipboardModule,wxModule)
-
-bool wxClipboardModule::OnInit()
-{
- wxTheClipboard = new wxClipboard();
-
- return TRUE;
-}
-
-void wxClipboardModule::OnExit()
-{
- if (wxTheClipboard) delete wxTheClipboard;
- wxTheClipboard = (wxClipboard*) NULL;
-}
-
#else
#error "Please turn wxUSE_CLIPBOARD on to compile this file."
#endif // wxUSE_CLIPBOARD