// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "clipbrd.h"
#endif
// data
//-----------------------------------------------------------------------------
+#if !wxUSE_NANOX
Atom g_clipboardAtom = 0;
Atom g_targetsAtom = 0;
+#endif
// the trace mask we use with wxLogTrace() - call
// wxLog::AddTraceMask(TRACE_CLIPBOARD) to enable the trace messages from here
/* we use m_targetsWidget to query what formats are available */
/* we use m_clipboardWidget to get and to offer data */
-
+#if !wxUSE_NANOX
if (!g_clipboardAtom) g_clipboardAtom = XInternAtom( (Display*) wxGetDisplay(), "CLIPBOARD", False );
if (!g_targetsAtom) g_targetsAtom = XInternAtom( (Display*) wxGetDisplay(), "TARGETS", False );
-
+#endif
+
m_formatSupported = FALSE;
m_targetRequested = 0;
bool wxClipboard::AddData( wxDataObject *data )
{
+#if wxUSE_NANOX
+ return FALSE;
+#else
wxCHECK_MSG( m_open, FALSE, wxT("clipboard not open") );
wxCHECK_MSG( data, FALSE, wxT("data is invalid") );
wxDataFormat *array = new wxDataFormat[ m_data->GetFormatCount() ];
m_data->GetAllFormats( array );
+#if 0
/* primary selection or clipboard */
Atom clipboard = m_usePrimary ? (Atom) 1 // 1 = primary selection
: g_clipboardAtom;
+#endif // 0
for (size_t i = 0; i < m_data->GetFormatCount(); i++)
#endif
return res;
+#endif
}
void wxClipboard::Close()