X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/37f214d588b02079a3ddf64c2e46585ca1657c1b..f97d84a63b21fffcc830390e5bc3fe0eedb6e15b:/src/os2/clipbrd.cpp diff --git a/src/os2/clipbrd.cpp b/src/os2/clipbrd.cpp index ca6319b54f..fc902957b4 100644 --- a/src/os2/clipbrd.cpp +++ b/src/os2/clipbrd.cpp @@ -37,10 +37,6 @@ #include -#define INCL_DOS -#define INCL_PM -#include - #include "wx/os2/private.h" // wxDataObject is tied to OLE/drag and drop implementation, @@ -436,8 +432,6 @@ bool wxGetClipboardFormatName(wxDataFormat dataFormat, IMPLEMENT_DYNAMIC_CLASS(wxClipboard, wxObject) -wxClipboard* wxTheClipboard = (wxClipboard *)NULL; - wxClipboard::wxClipboard() { } @@ -451,11 +445,22 @@ void wxClipboard::Clear() { } +bool wxClipboard::Flush() +{ + // TODO: + return FALSE; +} + bool wxClipboard::Open() { return wxOpenClipboard(); } +bool wxClipboard::IsOpened() const +{ + return wxIsClipboardOpened(); +} + bool wxClipboard::SetData( wxDataObject *data ) { (void)wxEmptyClipboard(); @@ -604,25 +609,6 @@ bool wxClipboard::GetData( wxDataObject *data ) #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