]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/clipbrd.h
SmartPhone windows are always maximized: Patch 942118
[wxWidgets.git] / include / wx / clipbrd.h
index 0870a03d296243cebaff4555deea26fd0d04f3d7..ca72949a5c9a85d8746e7d3841fab0de0915c2a1 100644 (file)
@@ -12,7 +12,7 @@
 #ifndef _WX_CLIPBRD_H_BASE_
 #define _WX_CLIPBRD_H_BASE_
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
     #pragma interface "clipboardbase.h"
 #endif
 
@@ -88,14 +88,16 @@ public:
     #include "wx/motif/clipbrd.h"
 #elif defined(__WXGTK__)
     #include "wx/gtk/clipbrd.h"
-#elif defined(__WXQT__)
-    #include "wx/gtk/clipbrd.h"
+#elif defined(__WXX11__)
+    #include "wx/x11/clipbrd.h"
+#elif defined(__WXMGL__)
+    #include "wx/mgl/clipbrd.h"
 #elif defined(__WXMAC__)
     #include "wx/mac/clipbrd.h"
+#elif defined(__WXCOCOA__)
+    #include "wx/cocoa/clipbrd.h"
 #elif defined(__WXPM__)
     #include "wx/os2/clipbrd.h"
-#elif defined(__WXSTUBS__)
-    #include "wx/stubs/clipbrd.h"
 #endif
 
 // ----------------------------------------------------------------------------
@@ -121,7 +123,7 @@ public:
         }
     }
 
-    bool IsOk() const { return m_clipboard->IsOpened(); }
+    bool operator!() const { return !m_clipboard->IsOpened(); }
 
     ~wxClipboardLocker()
     {
@@ -133,6 +135,8 @@ public:
 
 private:
     wxClipboard *m_clipboard;
+
+    DECLARE_NO_COPY_CLASS(wxClipboardLocker)
 };
 
 #endif // wxUSE_CLIPBOARD