X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/831dd3a1e8b8d8e21518a1344b736524692f5fb7..f196316400fd247a760b2ef77d5064b4e10e5471:/include/wx/msw/clipbrd.h diff --git a/include/wx/msw/clipbrd.h b/include/wx/msw/clipbrd.h index 377a8ffea9..ee04acf8f7 100644 --- a/include/wx/msw/clipbrd.h +++ b/include/wx/msw/clipbrd.h @@ -12,21 +12,14 @@ #ifndef _WX_CLIPBRD_H_ #define _WX_CLIPBRD_H_ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma interface "clipbrd.h" -#endif - #if wxUSE_CLIPBOARD #include "wx/list.h" #include "wx/module.h" #include "wx/dataobj.h" // for wxDataFormat -#if WXWIN_COMPATIBILITY_2_4 - // These functions superceded by wxClipboard, but retained in order to -// implement wxClipboard (and exported from DLL to preserve compatibility - -// - otherwise they are only implementation details of src/msw/clipbrd.cpp). +// implement wxClipboard, and for compatibility. // open/close the clipboard WXDLLEXPORT bool wxOpenClipboard(); @@ -50,20 +43,18 @@ WXDLLEXPORT bool wxGetClipboardFormatName(wxDataFormat dataFormat, wxChar *formatName, int maxCount); -#endif // WXWIN_COMPATIBILITY_2_4 - //----------------------------------------------------------------------------- // wxClipboard //----------------------------------------------------------------------------- -class WXDLLEXPORT wxDataObject; +class WXDLLIMPEXP_FWD_CORE wxDataObject; class WXDLLEXPORT wxClipboard : public wxClipboardBase { DECLARE_DYNAMIC_CLASS(wxClipboard) public: wxClipboard(); - ~wxClipboard(); + virtual ~wxClipboard(); // open the clipboard before SetData() and GetData() virtual bool Open(); @@ -94,14 +85,11 @@ public: // eating memory), otherwise the clipboard will be emptied on exit virtual bool Flush(); - // X11 has two clipboards which get selected by this call. Empty on MSW. - void UsePrimarySelection( bool WXUNUSED(primary) = FALSE ) { } - private: - bool m_clearOnExit; + IDataObject *m_lastDataObject; bool m_isOpened; }; #endif // wxUSE_CLIPBOARD -#endif - // _WX_CLIPBRD_H_ + +#endif // _WX_CLIPBRD_H_