X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e75491071dbefcada61175e3eb89ce4edf335983..79f585d90388128f9d245f7c92d3013b98b9ed14:/src/mac/clipbrd.cpp diff --git a/src/mac/clipbrd.cpp b/src/mac/clipbrd.cpp index 828b8984fc..36f4c0f4d9 100644 --- a/src/mac/clipbrd.cpp +++ b/src/mac/clipbrd.cpp @@ -23,6 +23,7 @@ #include +// open/close bool wxOpenClipboard() { return TRUE; @@ -30,54 +31,52 @@ bool wxOpenClipboard() bool wxCloseClipboard() { - return FALSE; + return TRUE; } -bool wxEmptyClipboard() +bool wxIsClipboardOpened() { - ZeroScrap() ; - return FALSE; + return TRUE; } -bool wxClipboardOpen() +// get/set data + +bool wxEmptyClipboard() { - // TODO - return FALSE; + ZeroScrap() ; + return TRUE; } -bool wxIsClipboardFormatAvailable(int dataFormat) +bool wxSetClipboardData(wxDataFormat dataFormat,const void *data,int width , int height) { - // TODO return FALSE; } -bool wxSetClipboardData(int dataFormat, wxObject *obj, int width, int height) +void *wxGetClipboardData(wxDataFormat dataFormat, long *len) { - // TODO - return FALSE; + return NULL; } -wxObject *wxGetClipboardData(int dataFormat, long *len) + +// clipboard formats + +bool wxIsClipboardFormatAvailable(wxDataFormat dataFormat) { - // TODO - return NULL; + return FALSE; } -int wxEnumClipboardFormats(int dataFormat) +wxDataFormat wxEnumClipboardFormats(wxDataFormat dataFormat) { - // TODO - return 0; + return wxDataFormat(); } -int wxRegisterClipboardFormat(char *formatName) +int wxRegisterClipboardFormat(wxChar *formatName) { - // TODO return 0; } -bool wxGetClipboardFormatName(int dataFormat, char *formatName, int maxCount) +bool wxGetClipboardFormatName(wxDataFormat dataFormat, wxChar *formatName, int maxCount) { - // TODO return FALSE; } @@ -85,6 +84,8 @@ bool wxGetClipboardFormatName(int dataFormat, char *formatName, int maxCount) * Generalized clipboard implementation by Matthew Flatt */ +IMPLEMENT_DYNAMIC_CLASS(wxClipboard, wxObject) + wxClipboard::wxClipboard() { m_clearOnExit = FALSE;