X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b7e94bd7ebc205ffba5e2729b0d465778d4e48c6..92c0fc34c104c8d7c12d6a3b78ea232690fc23f4:/interface/wx/clipbrd.h?ds=sidebyside diff --git a/interface/wx/clipbrd.h b/interface/wx/clipbrd.h index ca3dec1783..3b1ca4d83e 100644 --- a/interface/wx/clipbrd.h +++ b/interface/wx/clipbrd.h @@ -2,8 +2,7 @@ // Name: clipbrd.h // Purpose: interface of wxClipboard // Author: wxWidgets team -// RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** @@ -35,7 +34,7 @@ // Write some text to the clipboard if (wxTheClipboard->Open()) { - // This data objects are held by the clipboard, + // This data objects are held by the clipboard, // so do not delete them in the app. wxTheClipboard->SetData( new wxTextDataObject("Some text") ); wxTheClipboard->Close(); @@ -49,7 +48,7 @@ wxTextDataObject data; wxTheClipboard->GetData( data ); wxMessageBox( data.GetText() ); - } + } wxTheClipboard->Close(); } @endcode @@ -102,6 +101,9 @@ public: (possibly eating memory), otherwise the clipboard will be emptied on exit. + Currently this method is not implemented in X11-based ports, i.e. + wxGTK, wxX11 and wxMotif and always returns @false there. + @return @false if the operation is unsuccessful for any reason. */ virtual bool Flush(); @@ -173,6 +175,12 @@ public: normal clipboard contents with the currently selected text on the other platforms. */ - void UsePrimarySelection(bool primary = true); + virtual void UsePrimarySelection(bool primary = false); + + /** + Returns the global instance (wxTheClipboard) of the clipboard object. + */ + static wxClipboard *Get(); + };