X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e1ee679c2e3f48bc4f2607e35033ed5505ed6665..465de0be705e52c7f97e9bb6169af9d20a7f72a8:/include/wx/gtk1/clipbrd.h diff --git a/include/wx/gtk1/clipbrd.h b/include/wx/gtk1/clipbrd.h index b6d2583e84..b75f628605 100644 --- a/include/wx/gtk1/clipbrd.h +++ b/include/wx/gtk1/clipbrd.h @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: clipboard.h +// Name: wx/gtk1/clipbrd.h // Purpose: // Author: Robert Roebling // Id: $Id$ @@ -11,10 +11,6 @@ #ifndef __GTKCLIPBOARDH__ #define __GTKCLIPBOARDH__ -#ifdef __GNUG__ -#pragma interface -#endif - #if wxUSE_CLIPBOARD #include "wx/object.h" @@ -27,11 +23,11 @@ // wxClipboard // ---------------------------------------------------------------------------- -class wxClipboard : public wxClipboardBase +class WXDLLIMPEXP_CORE wxClipboard : public wxClipboardBase { public: wxClipboard(); - ~wxClipboard(); + virtual ~wxClipboard(); // open the clipboard before SetData() and GetData() virtual bool Open(); @@ -39,6 +35,9 @@ public: // close the clipboard after SetData() and GetData() virtual void Close(); + // query whether the clipboard is opened + virtual bool IsOpened() const; + // set the clipboard data. all other formats will be deleted. virtual bool SetData( wxDataObject *data ); @@ -54,11 +53,6 @@ public: // clears wxTheClipboard and the system's clipboard if possible virtual void Clear(); - // If primary == TRUE, use primary selection in all further ops, - // primary == FALSE resets it. - virtual void UsePrimarySelection(bool primary = TRUE) - { m_usePrimary = primary; } - // implementation from now on bool m_open; bool m_ownsClipboard; @@ -71,7 +65,6 @@ public: bool m_formatSupported; GdkAtom m_targetRequested; - bool m_usePrimary; wxDataObject *m_receivedData; private: