#define XtDisplay XTDISPLAY
#endif
-#include "wx/defs.h"
-
#if wxUSE_CLIPBOARD
-#include "wx/app.h"
-#include "wx/bitmap.h"
-#include "wx/utils.h"
#include "wx/clipbrd.h"
-#include "wx/dataobj.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/app.h"
+ #include "wx/utils.h"
+ #include "wx/bitmap.h"
+ #include "wx/dataobj.h"
+#endif
+
#include "wx/ptr_scpd.h"
#ifdef __VMS__
#include "wx/listimpl.cpp"
-WX_DEFINE_LIST(wxDataObjectList);
-WX_DEFINE_LIST(wxDataIdToDataObjectList);
+WX_DEFINE_LIST(wxDataObjectList)
+WX_DEFINE_LIST(wxDataIdToDataObjectList)
extern "C"
{
return AddData( data );
}
-wxDECLARE_SCOPED_ARRAY( wxDataFormat, wxDataFormatScopedArray );
-wxDEFINE_SCOPED_ARRAY( wxDataFormat, wxDataFormatScopedArray );
+wxDECLARE_SCOPED_ARRAY( wxDataFormat, wxDataFormatScopedArray )
+wxDEFINE_SCOPED_ARRAY( wxDataFormat, wxDataFormatScopedArray )
#if wxCHECK_LESSTIF()
void wxClipboardCallback( Widget xwidget, int* data_id,
Display* xdisplay = wxGlobalDisplay();
Widget xwidget = (Widget)wxTheApp->GetTopLevelRealizedWidget();
Window xwindow = XtWindow( xwidget );
- wxXmString label( wxTheApp->GetAppName() );
+ wxXmString label( wxTheApp->GetAppDisplayName() );
Time timestamp = XtLastTimestampProcessed( xdisplay );
long itemId;
wxString id = dfarr[i].GetId();
while( ( retval = XmClipboardCopy( xdisplay, xwindow, itemId,
- wxConstCast(id.c_str(), char),
+ id.char_str(),
NULL, size, i, &data_id ) )
== XmClipboardLocked );
wxString id = chosenFormat.GetId();
while( ( retval = XmClipboardInquireLength( xdisplay, xwindow,
- wxConstCast(id.c_str(), char),
+ id.char_str(),
&length ) )
== XmClipboardLocked );
if( retval != XmClipboardSuccess )
wxCharBuffer buf(length);
while( ( retval = XmClipboardRetrieve( xdisplay, xwindow,
- wxConstCast(id.c_str(), char),
+ id.char_str(),
(XtPointer)buf.data(),
length, &dummy1, &dummy2 ) )
== XmClipboardLocked );