-public:
-
- wxClipboard();
- ~wxClipboard();
-
- virtual void SetData( wxDataObject *data );
- virtual void *GetData( wxDataFormat format, size_t *length );
- virtual bool IsAvailable( wxDataFormat format );
-
- // implementation
-
- wxDataObject *m_data;
- char *m_sentString,
- *m_receivedString;
- void *m_receivedTargets;
- size_t m_receivedLength;
- GtkWidget *m_clipboardWidget;
+ // fill data with data on the clipboard (if available)
+ virtual bool GetData( wxDataObject& data );
+
+ // clears wxTheClipboard and the system's clipboard if possible
+ virtual void Clear();
+
+ // implementation from now on
+ bool m_open;
+ bool m_ownsClipboard;
+ bool m_ownsPrimarySelection;
+ wxDataObject *m_data;
+
+ GtkWidget *m_clipboardWidget; /* for getting and offering data */
+ GtkWidget *m_targetsWidget; /* for getting list of supported formats */
+ bool m_waiting; /* querying data or formats is asynchronous */
+
+ bool m_formatSupported;
+ GdkAtom m_targetRequested;
+ wxDataObject *m_receivedData;
+
+private:
+ DECLARE_DYNAMIC_CLASS(wxClipboard)