clipboard implementation generalized
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10450 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -25,31 +25,6 @@
|
|||||||
#include "wx/module.h"
|
#include "wx/module.h"
|
||||||
#include "wx/dataobj.h" // for wxDataFormat
|
#include "wx/dataobj.h" // for wxDataFormat
|
||||||
|
|
||||||
// These functions superceded by wxClipboard, but retained in order to
|
|
||||||
// implement wxClipboard, and for compatibility.
|
|
||||||
|
|
||||||
// open/close the clipboard
|
|
||||||
WXDLLEXPORT bool wxOpenClipboard();
|
|
||||||
WXDLLEXPORT bool wxIsClipboardOpened();
|
|
||||||
#define wxClipboardOpen wxIsClipboardOpened
|
|
||||||
WXDLLEXPORT bool wxCloseClipboard();
|
|
||||||
|
|
||||||
// get/set data
|
|
||||||
WXDLLEXPORT bool wxEmptyClipboard();
|
|
||||||
WXDLLEXPORT bool wxSetClipboardData(wxDataFormat dataFormat,
|
|
||||||
const void *data,
|
|
||||||
int width = 0, int height = 0);
|
|
||||||
WXDLLEXPORT void* wxGetClipboardData(wxDataFormat dataFormat,
|
|
||||||
long *len = NULL);
|
|
||||||
|
|
||||||
// clipboard formats
|
|
||||||
WXDLLEXPORT bool wxIsClipboardFormatAvailable(wxDataFormat dataFormat);
|
|
||||||
WXDLLEXPORT wxDataFormat wxEnumClipboardFormats(wxDataFormat dataFormat);
|
|
||||||
WXDLLEXPORT int wxRegisterClipboardFormat(wxChar *formatName);
|
|
||||||
WXDLLEXPORT bool wxGetClipboardFormatName(wxDataFormat dataFormat,
|
|
||||||
wxChar *formatName,
|
|
||||||
int maxCount);
|
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// wxClipboard
|
// wxClipboard
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
@@ -96,7 +71,8 @@ public:
|
|||||||
void UsePrimarySelection( bool WXUNUSED(primary) = FALSE ) { }
|
void UsePrimarySelection( bool WXUNUSED(primary) = FALSE ) { }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool m_clearOnExit;
|
wxDataObject *m_data;
|
||||||
|
bool m_open;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_CLIPBOARD
|
#endif // wxUSE_CLIPBOARD
|
||||||
|
@@ -120,10 +120,7 @@ bool WXDLLEXPORT wxMakeMetaFilePlaceable(const wxString& filename, int x1, int y
|
|||||||
// wxMetafileDataObject is a specialization of wxDataObject for metafile data
|
// wxMetafileDataObject is a specialization of wxDataObject for metafile data
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
// TODO: implement OLE side of things. At present, it's just for clipboard
|
#if wxUSE_DATAOBJ
|
||||||
// use.
|
|
||||||
|
|
||||||
#if wxUSE_DRAG_AND_DROP
|
|
||||||
class WXDLLEXPORT wxMetafileDataObject : public wxDataObject
|
class WXDLLEXPORT wxMetafileDataObject : public wxDataObject
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
Reference in New Issue
Block a user