]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/hyperlink.cpp
wxWinCE power build fixes.
[wxWidgets.git] / src / generic / hyperlink.cpp
index d6d2da46cf6c9c1e197616ad41eb571366bf13f9..c38f595f5250878868f64a4d3a547729954efa46 100644 (file)
 // Pre-compiled header stuff
 //---------------------------------------------------------------------------
 
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma implementation "hyperlink.h"
-#endif
-
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
 #if wxUSE_HYPERLINKCTRL
@@ -38,6 +34,9 @@
 
 #ifndef WX_PRECOMP
     #include "wx/utils.h" // for wxLaunchDefaultBrowser
+    #include "wx/dcclient.h"
+    #include "wx/menu.h"
+    #include "wx/log.h"
 #endif
 
 #include "wx/clipbrd.h"
@@ -218,12 +217,14 @@ void wxHyperlinkCtrl::OnLeaveWindow(wxMouseEvent& WXUNUSED(event))
 
 void wxHyperlinkCtrl::OnPopUpCopy( wxCommandEvent& WXUNUSED(event) )
 {
+#if wxUSE_CLIPBOARD
     if (!wxTheClipboard->Open())
         return;
 
     wxTextDataObject *data = new wxTextDataObject( m_url );
     wxTheClipboard->SetData( data );
     wxTheClipboard->Close();
+#endif // wxUSE_CLIPBOARD
 }
 
 #endif // wxUSE_HYPERLINKCTRL