Lots of Unix/Unicode compile fixes, some of which

are just #ifdef 0 such as the wxExecute calls
    in gdcps.cpp.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16375 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2002-08-05 18:04:08 +00:00
parent d7a7bd6d27
commit 401eb3dec2
28 changed files with 121 additions and 48 deletions

View File

@@ -26,6 +26,8 @@
#if wxUSE_POSTSCRIPT
#include "wx/setup.h"
#include "wx/window.h"
#include "wx/dcmemory.h"
#include "wx/utils.h"
@@ -1577,7 +1579,7 @@ bool wxPostScriptDC::StartDoc( const wxString& message )
m_printData.SetFilename(filename);
}
m_pstream = wxFopen( m_printData.GetFilename().fn_str(), wxT("w+") );
m_pstream = wxFopen( m_printData.GetFilename().c_str(), wxT("w+") ); // FIXME: use fn_str() here under Unicode?
if (!m_pstream)
{
@@ -1748,7 +1750,10 @@ void wxPostScriptDC::EndDoc ()
argv[0] = WXSTRINGCAST previewCommand;
argv[1] = WXSTRINGCAST filename;
argv[2] = (wxChar*) NULL;
#if defined(__WXGTK20__) && wxUSE_UNICODE
#else
wxExecute( argv, TRUE );
#endif
wxRemoveFile( m_printData.GetFilename() );
}
break;
@@ -1766,7 +1771,10 @@ void wxPostScriptDC::EndDoc ()
argv[argc++] = WXSTRINGCAST filename;
argv[argc++] = (wxChar *) NULL;
#if defined(__WXGTK20__) && wxUSE_UNICODE
#else
wxExecute( argv, TRUE );
#endif
wxRemoveFile( filename );
}
break;