]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/clipcmn.cpp
use CanSetValueAs() instead of CanGetValueAs() in wxGridCellBoolEditor::EndEdit
[wxWidgets.git] / src / common / clipcmn.cpp
index 6f380b5aaea65286eb49d1189a1668680da2e36c..09a62dc49664e49fb3dfef7d0cb7352f0d324e1a 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        common/clipcmn.cpp
+// Name:        src/common/clipcmn.cpp
 // Purpose:     common (to all ports) wxClipboard functions
 // Author:      Robert Roebling
 // Modified by:
     #pragma hdrstop
 #endif
 
+#if wxUSE_CLIPBOARD
+
 #include "wx/clipbrd.h"
-#include "wx/module.h"
 
-#if wxUSE_CLIPBOARD
+#ifndef WX_PRECOMP
+    #include "wx/dataobj.h"
+    #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<wxDataFormat>::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;