virtual bool AddData( wxDataObject *data );
// ask if data in correct format is available
- virtual bool IsSupported( wxDataObject &data );
+ virtual bool IsSupported( wxDataFormat format );
// fill data with data on the clipboard (if available)
- virtual bool GetData( wxDataObject &data );
+ virtual bool GetData( wxDataObject *data );
// clears wxTheClipboard and the system's clipboard if possible
virtual void Clear();
virtual bool AddData( wxDataObject *data );
// ask if data in correct format is available
- virtual bool IsSupported( wxDataObject &data );
+ virtual bool IsSupported( wxDataFormat format );
// fill data with data on the clipboard (if available)
- virtual bool GetData( wxDataObject &data );
+ virtual bool GetData( wxDataObject *data );
// clears wxTheClipboard and the system's clipboard if possible
virtual void Clear();
m_open = FALSE;
}
-bool wxClipboard::IsSupported( wxDataObject &data )
+bool wxClipboard::IsSupported( wxDataFormat format )
{
wxCHECK_MSG( m_open, FALSE, "clipboard not open" );
/* store requested format to be asked for by callbacks */
- m_targetRequested = data.GetFormat().GetAtom();
+ m_targetRequested = format.GetAtom();
wxCHECK_MSG( m_targetRequested, FALSE, "invalid clipboard format" );
return TRUE;
}
-bool wxClipboard::GetData( wxDataObject &data )
+bool wxClipboard::GetData( wxDataObject *data )
{
wxCHECK_MSG( m_open, FALSE, "clipboard not open" );
/* is data supported by clipboard ? */
- if (!IsSupported( data )) return FALSE;
+ if (!IsSupported( data->GetFormat() )) return FALSE;
/* store pointer to data object to be filled up by callbacks */
- m_receivedData = &data;
+ m_receivedData = data;
/* store requested format to be asked for by callbacks */
- m_targetRequested = data.GetFormat().GetAtom();
+ m_targetRequested = data->GetFormat().GetAtom();
wxCHECK_MSG( m_targetRequested, FALSE, "invalid clipboard format" );
m_open = FALSE;
}
-bool wxClipboard::IsSupported( wxDataObject &data )
+bool wxClipboard::IsSupported( wxDataFormat format )
{
wxCHECK_MSG( m_open, FALSE, "clipboard not open" );
/* store requested format to be asked for by callbacks */
- m_targetRequested = data.GetFormat().GetAtom();
+ m_targetRequested = format.GetAtom();
wxCHECK_MSG( m_targetRequested, FALSE, "invalid clipboard format" );
return TRUE;
}
-bool wxClipboard::GetData( wxDataObject &data )
+bool wxClipboard::GetData( wxDataObject *data )
{
wxCHECK_MSG( m_open, FALSE, "clipboard not open" );
/* is data supported by clipboard ? */
- if (!IsSupported( data )) return FALSE;
+ if (!IsSupported( data->GetFormat() )) return FALSE;
/* store pointer to data object to be filled up by callbacks */
- m_receivedData = &data;
+ m_receivedData = data;
/* store requested format to be asked for by callbacks */
- m_targetRequested = data.GetFormat().GetAtom();
+ m_targetRequested = data->GetFormat().GetAtom();
wxCHECK_MSG( m_targetRequested, FALSE, "invalid clipboard format" );