X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/034be8882cc091cf8ca1ccdf307190ac73adfe54..72dd34b5dc1a26dc86f1661c4bb2678a8d37ab85:/include/wx/gtk1/clipbrd.h diff --git a/include/wx/gtk1/clipbrd.h b/include/wx/gtk1/clipbrd.h index 508a3b0dd7..ebd46448d6 100644 --- a/include/wx/gtk1/clipbrd.h +++ b/include/wx/gtk1/clipbrd.h @@ -44,8 +44,6 @@ extern wxClipboard* wxTheClipboard; class wxClipboard : public wxObject { - DECLARE_DYNAMIC_CLASS(wxClipboard) - public: wxClipboard(); ~wxClipboard(); @@ -71,6 +69,10 @@ public: // clears wxTheClipboard and the system's clipboard if possible virtual void Clear(); + /// If primary == TRUE, use primary selection in all further ops, + /// primary=FALSE resets it. + inline void UsePrimarySelection(bool primary = TRUE) { m_usePrimary = primary; } + // implementation bool m_open; @@ -85,8 +87,11 @@ public: bool m_formatSupported; GdkAtom m_targetRequested; - + bool m_usePrimary; wxDataObject *m_receivedData; + +private: + DECLARE_DYNAMIC_CLASS(wxClipboard) }; //----------------------------------------------------------------------------- @@ -95,12 +100,13 @@ public: class wxClipboardModule: public wxModule { - DECLARE_DYNAMIC_CLASS(wxClipboardModule) - public: wxClipboardModule() {} bool OnInit(); void OnExit(); + +private: + DECLARE_DYNAMIC_CLASS(wxClipboardModule) }; #endif