X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8b53e5a2261d192bce49d40f0019f52f73b1557a..c84c52de6f534df50dc6348b839c98029fa3f8ee:/include/wx/gtk/clipbrd.h diff --git a/include/wx/gtk/clipbrd.h b/include/wx/gtk/clipbrd.h index 5f7a92eead..55a9e8f462 100644 --- a/include/wx/gtk/clipbrd.h +++ b/include/wx/gtk/clipbrd.h @@ -16,6 +16,9 @@ #endif #include "wx/defs.h" + +#if wxUSE_CLIPBOARD + #include "wx/object.h" #include "wx/list.h" #include "wx/dataobj.h" @@ -48,35 +51,29 @@ public: wxClipboard(); ~wxClipboard(); - // open the clipboard before SetData() and GetData() + /* open the clipboard before SetData() and GetData() */ virtual bool Open(); - // close the clipboard after SetData() and GetData() + /* close the clipboard after SetData() and GetData() */ virtual void Close(); - // can be called several times - virtual bool SetData( wxDataObject *data ); + /* set the clipboard data. the clipboard will delete the broker later */ + virtual bool SetData( wxDataBroker *data ); - // format available on the clipboard ? - // supply ID if private format, the same as wxPrivateDataObject::SetId() - virtual bool IsSupportedFormat( wxDataFormat format, const wxString &id = "" ); - - // fill data with data on the clipboard (if available) + /* fill data with data on the clipboard (if available) */ virtual bool GetData( wxDataObject *data ); - // clears wxTheClipboard and the system's clipboard if possible + /* clears wxTheClipboard and the system's clipboard if possible */ virtual void Clear(); - // implementation - - GdkAtom GetTargetAtom( wxDataFormat format, const wxString &id = "" ); + /* implementation */ bool m_open; - wxList m_dataObjects; - char *m_sentString, - *m_receivedString; - void *m_receivedTargets; + bool m_ownsClipboard; + bool m_ownsPrimarySelection; + + wxDataBroker *m_dataBroker; GtkWidget *m_clipboardWidget; bool m_formatSupported; @@ -99,6 +96,9 @@ public: void OnExit(); }; +#endif + + // wxUSE_CLIPBOARD #endif // __GTKCLIPBOARDH__