*/
-#ifdef __GNUG__
-# pragma implementation "wxllist.h"
-#endif
-
#include "wx/wxprec.h"
#ifdef __BORLANDC__
&width, &height, &descent);
offs++;
}
- /* We have to substract 1 to compensate for the offs++, and another
+ /* We have to subtract 1 to compensate for the offs++, and another
one because we don't want to position the cursor behind the
object what we clicked on, but before - otherwise it looks
funny. */
CoordType moveDelta = p - start - offset;
if ( (n < 0) && (offset == tobj->GetLength() - 1) )
{
- // because we substracted 1 from offset in this case above, now
+ // because we subtracted 1 from offset in this case above, now
// compensate for it
moveDelta--;
}
/* We allocate a temporary wxDC for printing, so that we can
determine the correct paper size and scaling. We don't actually
print anything on it. */
-#if defined(__WXMSW__)
+#if defined(__WXMSW__) || defined(__WXMAC__)
wxPrinterDC *psdc = new wxPrinterDC(wxEmptyString,wxEmptyString,_T(WXLLIST_TEMPFILE),false);
#else
- wxPostScriptDC *psdc = new wxPostScriptDC(WXLLIST_TEMPFILE,false);
+ wxPrintData data;
+ data.SetFilename(WXLLIST_TEMPFILE);
+ wxPostScriptDC *psdc = new wxPostScriptDC(data);
#endif
psdc->StartDoc(m_title);