X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/02761f6cd478e3c2c97cf6f93442747f7b029833..4b5e178a4c22caac92952131632641c63821fc0c:/src/common/clipcmn.cpp diff --git a/src/common/clipcmn.cpp b/src/common/clipcmn.cpp index 4b9225b042..afdd300f30 100644 --- a/src/common/clipcmn.cpp +++ b/src/common/clipcmn.cpp @@ -32,6 +32,31 @@ #include "wx/module.h" #endif +// --------------------------------------------------------- +// wxClipboardEvent +// --------------------------------------------------------- + +IMPLEMENT_DYNAMIC_CLASS(wxClipboardEvent,wxEvent) + +DEFINE_EVENT_TYPE(wxEVT_CLIPBOARD_CHANGED) + +bool wxClipboardEvent::SupportsFormat( const wxDataFormat &format ) const +{ + wxVector::size_type n; + for (n = 0; n < m_formats.size(); n++) + { if (m_formats[n] == format) return true; } + return false; +} + +void wxClipboardEvent::AddFormat( const wxDataFormat &format ) +{ + m_formats.push_back( format ); +} + +// --------------------------------------------------------- +// wxClipboardBase +// --------------------------------------------------------- + static wxClipboard *gs_clipboard = NULL; /*static*/ wxClipboard *wxClipboardBase::Get()