X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/12f5e1e78fe906050ff2fee9529476db332633f0..c29c95fe24973b94fd724db767193171ca7c513d:/interface/wx/clipbrd.h diff --git a/interface/wx/clipbrd.h b/interface/wx/clipbrd.h index 1af79ac1f1..2a51212c63 100644 --- a/interface/wx/clipbrd.h +++ b/interface/wx/clipbrd.h @@ -3,7 +3,7 @@ // Purpose: interface of wxClipboard // Author: wxWidgets team // RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** @@ -35,7 +35,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 +49,7 @@ wxTextDataObject data; wxTheClipboard->GetData( data ); wxMessageBox( data.GetText() ); - } + } wxTheClipboard->Close(); } @endcode @@ -70,7 +70,7 @@ public: /** Destructor. */ - ~wxClipboard(); + virtual ~wxClipboard(); /** Call this function to add the data object to the clipboard. You may @@ -82,19 +82,19 @@ public: @see SetData() */ - bool AddData(wxDataObject* data); + virtual bool AddData(wxDataObject* data); /** Clears the global clipboard object and the system's clipboard if possible. */ - void Clear(); + virtual void Clear(); /** Call this function to close the clipboard, having opened it with Open(). */ - void Close(); + virtual void Close(); /** Flushes the clipboard: this means that the data which is currently on @@ -104,18 +104,18 @@ public: @return @false if the operation is unsuccessful for any reason. */ - bool Flush(); + virtual bool Flush(); /** Call this function to fill @a data with data on the clipboard, if available in the required format. Returns @true on success. */ - bool GetData(wxDataObject& data); + virtual bool GetData(wxDataObject& data); /** Returns @true if the clipboard has been opened. */ - bool IsOpened() const; + virtual bool IsOpened() const; /** Returns @true if there is data which matches the data format of the @@ -124,7 +124,7 @@ public: @todo The name of this function is misleading. This should be renamed to something that more accurately indicates what it does. */ - bool IsSupported(const wxDataFormat& format); + virtual bool IsSupported(const wxDataFormat& format); /** Returns @true if we are using the primary selection, @false if @@ -144,7 +144,7 @@ public: @return @true on success. This should be tested (as in the sample shown above). */ - bool Open(); + virtual bool Open(); /** Call this function to set the data object to the clipboard. This @@ -156,7 +156,7 @@ public: @see AddData() */ - bool SetData(wxDataObject* data); + virtual bool SetData(wxDataObject* data); /** On platforms supporting it (all X11-based ports), wxClipboard uses the @@ -173,6 +173,6 @@ public: normal clipboard contents with the currently selected text on the other platforms. */ - void UsePrimarySelection(bool primary = true); + virtual void UsePrimarySelection(bool primary = false); };