]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/gtk1/clipbrd.h
don't try to build shared library on platforms not supporting it
[wxWidgets.git] / include / wx / gtk1 / clipbrd.h
index 508a3b0dd7fe2c5237dfd7fe7417a5d7aac4e9ab..ebd46448d6008c2ad7ae8c6dc3ba512866555f0b 100644 (file)
@@ -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