Fixes for GNUPro 00r1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13372 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
a4e2b27676
commit
7fc0bd1c05
@ -12,7 +12,7 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxDirDialogDefaultFolderStr;
|
||||
WXDLLEXPORT_DATA(extern const wxChar*) wxEmptyString;
|
||||
|
||||
#if defined(__WXMSW__)
|
||||
#if defined(__WIN16__) || (defined(__GNUWIN32__) && !wxUSE_NORLANDER_HEADERS) || defined(__SALFORDC__)
|
||||
#if defined(__WIN16__) || (defined(__GNUWIN32__) && !wxUSE_NORLANDER_HEADERS) || defined(__SALFORDC__) || !wxUSE_OLE
|
||||
#include "wx/generic/dirdlgg.h"
|
||||
#else
|
||||
#include "wx/msw/dirdlg.h"
|
||||
|
@ -69,6 +69,7 @@
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#elif defined(__CYGWIN__)
|
||||
#define HAVE_WCSLEN
|
||||
#include <stddef.h>
|
||||
#include <wchar.h>
|
||||
#endif
|
||||
|
@ -242,7 +242,7 @@ void *wxDynamicLibrary::GetSymbol(const wxString &name, bool *success) const
|
||||
symbol = NSAddressOfSymbol( NSLookupAndBindSymbol( name.c_str() ) );
|
||||
|
||||
#elif defined(__WINDOWS__)
|
||||
symbol = ::GetProcAddress( m_handle, name.mb_str() );
|
||||
symbol = (void*) ::GetProcAddress( m_handle, name.mb_str() );
|
||||
|
||||
#else
|
||||
#error "runtime shared lib support not implemented"
|
||||
|
@ -169,6 +169,8 @@ typedef short INT16;
|
||||
#ifdef XMD_H
|
||||
/* X11/xmd.h correctly defines INT32 */
|
||||
#define INT32_DEFINED
|
||||
/* Note: GnuPRO 00r1 should be tested because it does NOT define INT32 in windows.h */
|
||||
/* For this compiler, set the following test to 0. */
|
||||
#elif (_MSC_VER >= 1200) || (__BORLANDC__ >= 0x550) \
|
||||
|| wxCHECK_W32API_VERSION( 0, 5 ) \
|
||||
|| ((defined(__MINGW32__) || defined(__CYGWIN__)) \
|
||||
|
@ -565,7 +565,7 @@ bool wxClipboard::AddData( wxDataObject *data )
|
||||
#elif wxUSE_DATAOBJ
|
||||
wxCHECK_MSG( wxIsClipboardOpened(), FALSE, wxT("clipboard not open") );
|
||||
|
||||
wxDataFormat format = data->GetFormat();
|
||||
wxDataFormat format = data->GetPreferredFormat();
|
||||
|
||||
switch ( format )
|
||||
{
|
||||
@ -582,23 +582,35 @@ bool wxClipboard::AddData( wxDataObject *data )
|
||||
{
|
||||
wxBitmapDataObject* bitmapDataObject = (wxBitmapDataObject*) data;
|
||||
wxBitmap bitmap(bitmapDataObject->GetBitmap());
|
||||
return wxSetClipboardData(data->GetFormat(), &bitmap);
|
||||
return wxSetClipboardData(data->GetPreferredFormat(), &bitmap);
|
||||
}
|
||||
|
||||
#if wxUSE_METAFILE
|
||||
case wxDF_METAFILE:
|
||||
{
|
||||
#if 1
|
||||
// TODO
|
||||
wxLogError("Not implemented because wxMetafileDataObject does not contain width and height values.");
|
||||
return FALSE;
|
||||
#else
|
||||
wxMetafileDataObject* metaFileDataObject =
|
||||
(wxMetafileDataObject*) data;
|
||||
wxMetafile metaFile = metaFileDataObject->GetMetafile();
|
||||
return wxSetClipboardData(wxDF_METAFILE, &metaFile,
|
||||
metaFileDataObject->GetWidth(),
|
||||
metaFileDataObject->GetHeight());
|
||||
#endif
|
||||
}
|
||||
#endif // wxUSE_METAFILE
|
||||
|
||||
default:
|
||||
return wxSetClipboardData(data);
|
||||
{
|
||||
// This didn't compile, of course
|
||||
// return wxSetClipboardData(data);
|
||||
// TODO
|
||||
wxLogError("Not implemented.");
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
#else // !wxUSE_DATAOBJ
|
||||
return FALSE;
|
||||
@ -776,7 +788,7 @@ bool wxClipboard::GetData( wxDataObject& data )
|
||||
#elif wxUSE_DATAOBJ
|
||||
wxCHECK_MSG( wxIsClipboardOpened(), FALSE, wxT("clipboard not open") );
|
||||
|
||||
wxDataFormat format = data.GetFormat();
|
||||
wxDataFormat format = data.GetPreferredFormat();
|
||||
switch ( format )
|
||||
{
|
||||
case wxDF_TEXT:
|
||||
@ -797,7 +809,7 @@ bool wxClipboard::GetData( wxDataObject& data )
|
||||
case wxDF_DIB:
|
||||
{
|
||||
wxBitmapDataObject& bitmapDataObject = (wxBitmapDataObject &)data;
|
||||
wxBitmap* bitmap = (wxBitmap *)wxGetClipboardData(data->GetFormat());
|
||||
wxBitmap* bitmap = (wxBitmap *)wxGetClipboardData(data.GetPreferredFormat());
|
||||
if ( !bitmap )
|
||||
return FALSE;
|
||||
|
||||
|
@ -28,9 +28,11 @@
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/setup.h"
|
||||
|
||||
#if wxUSE_DIRDLG
|
||||
|
||||
#if defined(__WIN95__) && !defined(__GNUWIN32_OLD__)
|
||||
#if defined(__WIN95__) && !defined(__GNUWIN32_OLD__) && wxUSE_OLE
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/utils.h"
|
||||
|
@ -146,7 +146,7 @@ bool wxFontEnumeratorHelper::SetEncoding(wxFontEncoding encoding)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
#if defined(__GNUWIN32__) && !defined(__CYGWIN10__)
|
||||
#if 0 // defined(__GNUWIN32__) && !defined(__CYGWIN10__)
|
||||
#if wxUSE_NORLANDER_HEADERS
|
||||
#define wxFONTENUMPROC int(*)(const LOGFONT *, const TEXTMETRIC *, long unsigned int, LPARAM)
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user