#include "wx/app.h"
#include "wx/utils.h"
#include "wx/frame.h"
+ #include "wx/bitmap.h"
#endif
-#include "wx/bitmap.h"
#include "wx/metafile.h"
#ifndef __DARWIN__
void wxClipboard::Clear()
{
+ if ( IsUsingPrimarySelection() )
+ return;
+
if (m_data != NULL)
{
delete m_data;
bool wxClipboard::SetData( wxDataObject *data )
{
+ if ( IsUsingPrimarySelection() )
+ return false;
+
wxCHECK_MSG( m_open, false, wxT("clipboard not open") );
wxCHECK_MSG( data, false, wxT("data is invalid") );
bool wxClipboard::AddData( wxDataObject *data )
{
+ if ( IsUsingPrimarySelection() )
+ return false;
+
wxCHECK_MSG( m_open, false, wxT("clipboard not open") );
wxCHECK_MSG( data, false, wxT("data is invalid") );
bool wxClipboard::IsSupported( const wxDataFormat &dataFormat )
{
+ if ( IsUsingPrimarySelection() )
+ return false;
+
if ( m_data )
return m_data->IsSupported( dataFormat );
bool wxClipboard::GetData( wxDataObject& data )
{
+ if ( IsUsingPrimarySelection() )
+ return false;
+
wxCHECK_MSG( m_open, false, wxT("clipboard not open") );
size_t formatcount = data.GetFormatCount() + 1;