// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-
-#ifndef __GTKCLIPBOARDH__
-#define __GTKCLIPBOARDH__
-
-#ifdef __GNUG__
-#pragma interface
-#endif
-
-#if wxUSE_CLIPBOARD
-
-#include "wx/object.h"
-#include "wx/list.h"
-#include "wx/dataobj.h"
-#include "wx/control.h"
-#include "wx/module.h"
+#ifndef _WX_GTK_CLIPBOARD_H_
+#define _WX_GTK_CLIPBOARD_H_
// ----------------------------------------------------------------------------
// 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();
// 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 );
DECLARE_DYNAMIC_CLASS(wxClipboard)
};
-#endif
- // wxUSE_CLIPBOARD
-
-#endif
- // __GTKCLIPBOARDH__
+#endif // _WX_GTK_CLIPBOARD_H_