#include "helpers.h"
#include <wx/print.h>
#include <wx/printdlg.h>
+#include <wx/dcps.h>
#include "printfw.h"
+ // Put some wx default wxChar* values into wxStrings.
+ static const wxChar* wxPrintoutTitleStr = wxT("Printout");
+ DECLARE_DEF_STRING(PrintoutTitleStr);
+
+ DECLARE_DEF_STRING(FrameNameStr);
+
static PyObject* t_output_helper(PyObject* target, PyObject* o) {
PyObject* o2;
return target;
}
-#if PYTHON_API_VERSION >= 1009
- static char* wxStringErrorMsg = "String or Unicode type required";
-#else
- static char* wxStringErrorMsg = "String type required";
-#endif
-
// Since this one would be tough and ugly to do with the Macros...
bool hadErr = FALSE;
bool found;
- wxPyTState* state = wxPyBeginBlockThreads();
+ wxPyBeginBlockThreads();
if ((found = m_myInst.findCallback("GetPageInfo"))) {
PyObject* result = m_myInst.callCallbackObj(Py_BuildValue("()"));
if (result && PyTuple_Check(result) && PyTuple_Size(result) == 4) {
}
Py_DECREF(result);
}
- wxPyEndBlockThreads(state);
+ wxPyEndBlockThreads();
if (! found)
wxPrintout::GetPageInfo(minPage, maxPage, pageFrom, pageTo);
}
if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPrintData",_kwnames))
return NULL;
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPrintData *)new_wxPrintData();
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPrintData *)new_wxPrintData();
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintData_p");
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- delete_wxPrintData(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ delete_wxPrintData(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxPrintData_GetNoCopies(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxPrintData_GetNoCopies(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPrintData_GetCollate(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPrintData_GetCollate(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxPrintData_GetOrientation(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxPrintData_GetOrientation(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- const wxString & _result_ref = wxPrintData_GetPrinterName(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ const wxString & _result_ref = wxPrintData_GetPrinterName(_arg0);
_result = (wxString *) &_result_ref;
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}{
+#if wxUSE_UNICODE
+ _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
+#else
_resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
+#endif
}
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPrintData_GetColour(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPrintData_GetColour(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxDuplexMode )wxPrintData_GetDuplex(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxDuplexMode )wxPrintData_GetDuplex(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPaperSize )wxPrintData_GetPaperId(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPaperSize )wxPrintData_GetPaperId(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- const wxSize & _result_ref = wxPrintData_GetPaperSize(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ const wxSize & _result_ref = wxPrintData_GetPaperSize(_arg0);
_result = (wxSize *) &_result_ref;
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxSize_p");
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPrintQuality )wxPrintData_GetQuality(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPrintQuality )wxPrintData_GetQuality(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintData_SetNoCopies(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintData_SetNoCopies(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
_arg1 = (bool ) tempbool1;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintData_SetCollate(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintData_SetCollate(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintData_SetOrientation(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintData_SetOrientation(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
-#if PYTHON_API_VERSION >= 1009
- char* tmpPtr; int tmpSize;
- if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
- return NULL;
- _arg1 = new wxString(tmpPtr, tmpSize);
-#else
- if (!PyString_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
+ _arg1 = wxString_in_helper(_obj1);
+ if (_arg1 == NULL)
return NULL;
- }
- _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
-#endif
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintData_SetPrinterName(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintData_SetPrinterName(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
_arg1 = (bool ) tempbool1;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintData_SetColour(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintData_SetColour(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintData_SetDuplex(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintData_SetDuplex(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintData_SetPaperId(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintData_SetPaperId(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return NULL;
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintData_SetPaperSize(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintData_SetPaperSize(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintData_SetQuality(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintData_SetQuality(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- const wxString & _result_ref = wxPrintData_GetPrinterCommand(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ const wxString & _result_ref = wxPrintData_GetPrinterCommand(_arg0);
_result = (wxString *) &_result_ref;
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}{
+#if wxUSE_UNICODE
+ _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
+#else
_resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
+#endif
}
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- const wxString & _result_ref = wxPrintData_GetPrinterOptions(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ const wxString & _result_ref = wxPrintData_GetPrinterOptions(_arg0);
_result = (wxString *) &_result_ref;
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}{
+#if wxUSE_UNICODE
+ _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
+#else
_resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
+#endif
}
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- const wxString & _result_ref = wxPrintData_GetPreviewCommand(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ const wxString & _result_ref = wxPrintData_GetPreviewCommand(_arg0);
_result = (wxString *) &_result_ref;
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}{
+#if wxUSE_UNICODE
+ _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
+#else
_resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
+#endif
}
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- const wxString & _result_ref = wxPrintData_GetFilename(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ const wxString & _result_ref = wxPrintData_GetFilename(_arg0);
_result = (wxString *) &_result_ref;
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}{
+#if wxUSE_UNICODE
+ _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
+#else
_resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
+#endif
}
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- const wxString & _result_ref = wxPrintData_GetFontMetricPath(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ const wxString & _result_ref = wxPrintData_GetFontMetricPath(_arg0);
_result = (wxString *) &_result_ref;
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}{
+#if wxUSE_UNICODE
+ _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
+#else
_resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
+#endif
}
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (double )wxPrintData_GetPrinterScaleX(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (double )wxPrintData_GetPrinterScaleX(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("d",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (double )wxPrintData_GetPrinterScaleY(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (double )wxPrintData_GetPrinterScaleY(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("d",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (long )wxPrintData_GetPrinterTranslateX(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (long )wxPrintData_GetPrinterTranslateX(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("l",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (long )wxPrintData_GetPrinterTranslateY(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (long )wxPrintData_GetPrinterTranslateY(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("l",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = new wxPrintMode (wxPrintData_GetPrintMode(_arg0));
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxPrintMode (wxPrintData_GetPrintMode(_arg0));
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} SWIG_MakePtr(_ptemp, (void *) _result,"_wxPrintMode_p");
_resultobj = Py_BuildValue("s",_ptemp);
}
}
{
-#if PYTHON_API_VERSION >= 1009
- char* tmpPtr; int tmpSize;
- if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
+ _arg1 = wxString_in_helper(_obj1);
+ if (_arg1 == NULL)
return NULL;
- }
- if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
- return NULL;
- _arg1 = new wxString(tmpPtr, tmpSize);
-#else
- if (!PyString_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
-#endif
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintData_SetPrinterCommand(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintData_SetPrinterCommand(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
-#if PYTHON_API_VERSION >= 1009
- char* tmpPtr; int tmpSize;
- if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
+ _arg1 = wxString_in_helper(_obj1);
+ if (_arg1 == NULL)
return NULL;
- _arg1 = new wxString(tmpPtr, tmpSize);
-#else
- if (!PyString_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
-#endif
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintData_SetPrinterOptions(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintData_SetPrinterOptions(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
-#if PYTHON_API_VERSION >= 1009
- char* tmpPtr; int tmpSize;
- if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
- return NULL;
- _arg1 = new wxString(tmpPtr, tmpSize);
-#else
- if (!PyString_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
+ _arg1 = wxString_in_helper(_obj1);
+ if (_arg1 == NULL)
return NULL;
- }
- _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
-#endif
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintData_SetPreviewCommand(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintData_SetPreviewCommand(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
-#if PYTHON_API_VERSION >= 1009
- char* tmpPtr; int tmpSize;
- if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
+ _arg1 = wxString_in_helper(_obj1);
+ if (_arg1 == NULL)
return NULL;
- _arg1 = new wxString(tmpPtr, tmpSize);
-#else
- if (!PyString_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
-#endif
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintData_SetFilename(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintData_SetFilename(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
-#if PYTHON_API_VERSION >= 1009
- char* tmpPtr; int tmpSize;
- if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
- return NULL;
- _arg1 = new wxString(tmpPtr, tmpSize);
-#else
- if (!PyString_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
+ _arg1 = wxString_in_helper(_obj1);
+ if (_arg1 == NULL)
return NULL;
- }
- _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
-#endif
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintData_SetFontMetricPath(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintData_SetFontMetricPath(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintData_SetPrinterScaleX(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintData_SetPrinterScaleX(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintData_SetPrinterScaleY(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintData_SetPrinterScaleY(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintData_SetPrinterScaling(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintData_SetPrinterScaling(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintData_SetPrinterTranslateX(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintData_SetPrinterTranslateX(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintData_SetPrinterTranslateY(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintData_SetPrinterTranslateY(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintData_SetPrinterTranslation(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintData_SetPrinterTranslation(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintData_SetPrintMode(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintData_SetPrintMode(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPrinterDC *)new_wxPrinterDC(*_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPrinterDC *)new_wxPrinterDC(*_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrinterDC_p");
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|ii:new_wxPrinterDC2",_kwnames,&_obj0,&_obj1,&_obj2,&tempbool3,&_arg4))
return NULL;
{
-#if PYTHON_API_VERSION >= 1009
- char* tmpPtr; int tmpSize;
- if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
+ _arg0 = wxString_in_helper(_obj0);
+ if (_arg0 == NULL)
return NULL;
- }
- if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
- return NULL;
- _arg0 = new wxString(tmpPtr, tmpSize);
-#else
- if (!PyString_Check(_obj0)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
-#endif
}
{
-#if PYTHON_API_VERSION >= 1009
- char* tmpPtr; int tmpSize;
- if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
+ _arg1 = wxString_in_helper(_obj1);
+ if (_arg1 == NULL)
return NULL;
- _arg1 = new wxString(tmpPtr, tmpSize);
-#else
- if (!PyString_Check(_obj1)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
-#endif
}
{
-#if PYTHON_API_VERSION >= 1009
- char* tmpPtr; int tmpSize;
- if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
- return NULL;
- _arg2 = new wxString(tmpPtr, tmpSize);
-#else
- if (!PyString_Check(_obj2)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
+ _arg2 = wxString_in_helper(_obj2);
+ if (_arg2 == NULL)
return NULL;
- }
- _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
-#endif
}
_arg3 = (bool ) tempbool3;
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPrinterDC *)new_wxPrinterDC2(*_arg0,*_arg1,*_arg2,_arg3,_arg4);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPrinterDC *)new_wxPrinterDC2(*_arg0,*_arg1,*_arg2,_arg3,_arg4);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrinterDC_p");
return _resultobj;
}
+static void *SwigwxPostScriptDCTowxDC(void *ptr) {
+ wxPostScriptDC *src;
+ wxDC *dest;
+ src = (wxPostScriptDC *) ptr;
+ dest = (wxDC *) src;
+ return (void *) dest;
+}
+
+static void *SwigwxPostScriptDCTowxObject(void *ptr) {
+ wxPostScriptDC *src;
+ wxObject *dest;
+ src = (wxPostScriptDC *) ptr;
+ dest = (wxObject *) src;
+ return (void *) dest;
+}
+
+#define new_wxPostScriptDC(_swigarg0) (new wxPostScriptDC(_swigarg0))
+static PyObject *_wrap_new_wxPostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPostScriptDC * _result;
+ wxPrintData * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "printData", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPostScriptDC",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPostScriptDC. Expected _wxPrintData_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPostScriptDC *)new_wxPostScriptDC(*_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} if (_result) {
+ SWIG_MakePtr(_ptemp, (char *) _result,"_wxPostScriptDC_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ } else {
+ Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ }
+ return _resultobj;
+}
+
+#define new_wxPostScriptDC2(_swigarg0,_swigarg1,_swigarg2) (new wxPostScriptDC(_swigarg0,_swigarg1,_swigarg2))
+static PyObject *_wrap_new_wxPostScriptDC2(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPostScriptDC * _result;
+ wxString * _arg0;
+ bool _arg1 = (bool ) TRUE;
+ wxWindow * _arg2 = (wxWindow *) NULL;
+ PyObject * _obj0 = 0;
+ int tempbool1 = (int) TRUE;
+ PyObject * _argo2 = 0;
+ char *_kwnames[] = { "output","interactive","parent", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:new_wxPostScriptDC2",_kwnames,&_obj0,&tempbool1,&_argo2))
+ return NULL;
+{
+ _arg0 = wxString_in_helper(_obj0);
+ if (_arg0 == NULL)
+ return NULL;
+}
+ _arg1 = (bool ) tempbool1;
+ if (_argo2) {
+ if (_argo2 == Py_None) { _arg2 = NULL; }
+ else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxPostScriptDC2. Expected _wxWindow_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPostScriptDC *)new_wxPostScriptDC2(*_arg0,_arg1,_arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} if (_result) {
+ SWIG_MakePtr(_ptemp, (char *) _result,"_wxPostScriptDC_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ } else {
+ Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ }
+{
+ if (_obj0)
+ delete _arg0;
+}
+ return _resultobj;
+}
+
+#define wxPostScriptDC_GetPrintData(_swigobj) (_swigobj->GetPrintData())
+static PyObject *_wrap_wxPostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPrintData * _result;
+ wxPostScriptDC * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+ char _ptemp[128];
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPostScriptDC_GetPrintData",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPostScriptDC_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPostScriptDC_GetPrintData. Expected _wxPostScriptDC_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintData & _result_ref = wxPostScriptDC_GetPrintData(_arg0);
+ _result = (wxPrintData *) &_result_ref;
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} if (_result) {
+ SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintData_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
+ } else {
+ Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ }
+ return _resultobj;
+}
+
+#define wxPostScriptDC_SetPrintData(_swigobj,_swigarg0) (_swigobj->SetPrintData(_swigarg0))
+static PyObject *_wrap_wxPostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ wxPostScriptDC * _arg0;
+ wxPrintData * _arg1;
+ PyObject * _argo0 = 0;
+ PyObject * _argo1 = 0;
+ char *_kwnames[] = { "self","data", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPostScriptDC_SetPrintData",_kwnames,&_argo0,&_argo1))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPostScriptDC_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPostScriptDC_SetPrintData. Expected _wxPostScriptDC_p.");
+ return NULL;
+ }
+ }
+ if (_argo1) {
+ if (_argo1 == Py_None) { _arg1 = NULL; }
+ else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPrintData_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPostScriptDC_SetPrintData. Expected _wxPrintData_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPostScriptDC_SetPrintData(_arg0,*_arg1);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+static PyObject *_wrap_wxPostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ int _arg0;
+ char *_kwnames[] = { "ppi", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxPostScriptDC_SetResolution",_kwnames,&_arg0))
+ return NULL;
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPostScriptDC::SetResolution(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} Py_INCREF(Py_None);
+ _resultobj = Py_None;
+ return _resultobj;
+}
+
+static PyObject *_wrap_wxPostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ int _result;
+ char *_kwnames[] = { NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxPostScriptDC_GetResolution",_kwnames))
+ return NULL;
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxPostScriptDC::GetResolution();
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
static void *SwigwxPageSetupDialogDataTowxObject(void *ptr) {
wxPageSetupDialogData *src;
wxObject *dest;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPageSetupDialogData",_kwnames))
return NULL;
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPageSetupDialogData *)new_wxPageSetupDialogData();
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPageSetupDialogData *)new_wxPageSetupDialogData();
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxPageSetupDialogData_p");
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- delete_wxPageSetupDialogData(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ delete_wxPageSetupDialogData(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
_arg1 = (bool ) tempbool1;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPageSetupDialogData_EnableHelp(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPageSetupDialogData_EnableHelp(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
_arg1 = (bool ) tempbool1;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPageSetupDialogData_EnableMargins(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPageSetupDialogData_EnableMargins(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
_arg1 = (bool ) tempbool1;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPageSetupDialogData_EnableOrientation(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPageSetupDialogData_EnableOrientation(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
_arg1 = (bool ) tempbool1;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPageSetupDialogData_EnablePaper(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPageSetupDialogData_EnablePaper(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
_arg1 = (bool ) tempbool1;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPageSetupDialogData_EnablePrinter(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPageSetupDialogData_EnablePrinter(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPageSetupDialogData_GetDefaultMinMargins(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPageSetupDialogData_GetDefaultMinMargins(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPageSetupDialogData_GetEnableMargins(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPageSetupDialogData_GetEnableMargins(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPageSetupDialogData_GetEnableOrientation(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPageSetupDialogData_GetEnableOrientation(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPageSetupDialogData_GetEnablePaper(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPageSetupDialogData_GetEnablePaper(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPageSetupDialogData_GetEnablePrinter(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPageSetupDialogData_GetEnablePrinter(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPageSetupDialogData_GetEnableHelp(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPageSetupDialogData_GetEnableHelp(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPageSetupDialogData_GetDefaultInfo(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPageSetupDialogData_GetDefaultInfo(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = new wxPoint (wxPageSetupDialogData_GetMarginTopLeft(_arg0));
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxPoint (wxPageSetupDialogData_GetMarginTopLeft(_arg0));
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
_resultobj = Py_BuildValue("s",_ptemp);
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = new wxPoint (wxPageSetupDialogData_GetMarginBottomRight(_arg0));
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxPoint (wxPageSetupDialogData_GetMarginBottomRight(_arg0));
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
_resultobj = Py_BuildValue("s",_ptemp);
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = new wxPoint (wxPageSetupDialogData_GetMinMarginTopLeft(_arg0));
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxPoint (wxPageSetupDialogData_GetMinMarginTopLeft(_arg0));
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
_resultobj = Py_BuildValue("s",_ptemp);
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = new wxPoint (wxPageSetupDialogData_GetMinMarginBottomRight(_arg0));
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxPoint (wxPageSetupDialogData_GetMinMarginBottomRight(_arg0));
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
_resultobj = Py_BuildValue("s",_ptemp);
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPaperSize )wxPageSetupDialogData_GetPaperId(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPaperSize )wxPageSetupDialogData_GetPaperId(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = new wxSize (wxPageSetupDialogData_GetPaperSize(_arg0));
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = new wxSize (wxPageSetupDialogData_GetPaperSize(_arg0));
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
_resultobj = Py_BuildValue("s",_ptemp);
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPrintData *)wxPageSetupDialogData_GetPrintData(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPrintData *)wxPageSetupDialogData_GetPrintData(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintData_p");
}
_arg1 = (bool ) tempbool1;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPageSetupDialogData_SetDefaultInfo(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPageSetupDialogData_SetDefaultInfo(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
_arg1 = (bool ) tempbool1;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPageSetupDialogData_SetDefaultMinMargins(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPageSetupDialogData_SetDefaultMinMargins(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return NULL;
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPageSetupDialogData_SetMarginTopLeft(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPageSetupDialogData_SetMarginTopLeft(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return NULL;
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPageSetupDialogData_SetMarginBottomRight(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPageSetupDialogData_SetMarginBottomRight(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return NULL;
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPageSetupDialogData_SetMinMarginTopLeft(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPageSetupDialogData_SetMinMarginTopLeft(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return NULL;
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPageSetupDialogData_SetMinMarginBottomRight(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPageSetupDialogData_SetMinMarginBottomRight(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPageSetupDialogData_SetPaperId(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPageSetupDialogData_SetPaperId(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
return NULL;
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPageSetupDialogData_SetPaperSize(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPageSetupDialogData_SetPaperSize(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPageSetupDialogData_SetPrintData(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPageSetupDialogData_SetPrintData(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPageSetupDialog *)new_wxPageSetupDialog(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPageSetupDialog *)new_wxPageSetupDialog(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxPageSetupDialog_p");
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPageSetupDialogData & _result_ref = wxPageSetupDialog_GetPageSetupData(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPageSetupDialogData & _result_ref = wxPageSetupDialog_GetPageSetupData(_arg0);
_result = (wxPageSetupDialogData *) &_result_ref;
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxPageSetupDialogData_p");
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxPageSetupDialog_ShowModal(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxPageSetupDialog_ShowModal(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPrintDialogData",_kwnames))
return NULL;
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPrintDialogData *)new_wxPrintDialogData();
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPrintDialogData *)new_wxPrintDialogData();
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintDialogData_p");
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- delete_wxPrintDialogData(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ delete_wxPrintDialogData(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
_arg1 = (bool ) tempbool1;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintDialogData_EnableHelp(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintDialogData_EnableHelp(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
_arg1 = (bool ) tempbool1;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintDialogData_EnablePageNumbers(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintDialogData_EnablePageNumbers(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
_arg1 = (bool ) tempbool1;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintDialogData_EnablePrintToFile(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintDialogData_EnablePrintToFile(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
_arg1 = (bool ) tempbool1;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintDialogData_EnableSelection(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintDialogData_EnableSelection(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPrintDialogData_GetAllPages(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPrintDialogData_GetAllPages(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPrintDialogData_GetCollate(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPrintDialogData_GetCollate(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxPrintDialogData_GetFromPage(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxPrintDialogData_GetFromPage(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxPrintDialogData_GetMaxPage(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxPrintDialogData_GetMaxPage(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxPrintDialogData_GetMinPage(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxPrintDialogData_GetMinPage(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxPrintDialogData_GetNoCopies(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxPrintDialogData_GetNoCopies(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPrintData *)wxPrintDialogData_GetPrintData(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPrintData *)wxPrintDialogData_GetPrintData(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintData_p");
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPrintDialogData_GetPrintToFile(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPrintDialogData_GetPrintToFile(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxPrintDialogData_GetToPage(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxPrintDialogData_GetToPage(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_arg1 = (bool ) tempbool1;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintDialogData_SetCollate(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintDialogData_SetCollate(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintDialogData_SetFromPage(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintDialogData_SetFromPage(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintDialogData_SetMaxPage(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintDialogData_SetMaxPage(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintDialogData_SetMinPage(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintDialogData_SetMinPage(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintDialogData_SetNoCopies(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintDialogData_SetNoCopies(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintDialogData_SetPrintData(_arg0,*_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintDialogData_SetPrintData(_arg0,*_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
_arg1 = (bool ) tempbool1;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintDialogData_SetPrintToFile(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintDialogData_SetPrintToFile(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
_arg1 = (bool ) tempbool1;
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintDialogData_SetSetupDialog(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintDialogData_SetSetupDialog(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintDialogData_SetToPage(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintDialogData_SetToPage(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPrintDialog *)new_wxPrintDialog(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPrintDialog *)new_wxPrintDialog(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintDialog_p");
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintDialogData & _result_ref = wxPrintDialog_GetPrintDialogData(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintDialogData & _result_ref = wxPrintDialog_GetPrintDialogData(_arg0);
_result = (wxPrintDialogData *) &_result_ref;
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintDialogData_p");
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxDC *)wxPrintDialog_GetPrintDC(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxDC *)wxPrintDialog_GetPrintDC(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxPrintDialog_ShowModal(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxPrintDialog_ShowModal(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
static PyObject *_wrap_new_wxPrintout(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
wxPyPrintout * _result;
- char * _arg0 = (char *) "Printout";
+ wxString * _arg0 = (wxString *) &wxPyPrintoutTitleStr;
+ PyObject * _obj0 = 0;
char *_kwnames[] = { "title", NULL };
char _ptemp[128];
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|s:new_wxPrintout",_kwnames,&_arg0))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxPrintout",_kwnames,&_obj0))
return NULL;
+ if (_obj0)
+{
+ _arg0 = wxString_in_helper(_obj0);
+ if (_arg0 == NULL)
+ return NULL;
+}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPyPrintout *)new_wxPrintout(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPyPrintout *)new_wxPrintout(*_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPrintout_p");
Py_INCREF(Py_None);
_resultobj = Py_None;
}
+{
+ if (_obj0)
+ delete _arg0;
+}
return _resultobj;
}
_arg2 = _obj2;
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintout__setCallbackInfo(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintout__setCallbackInfo(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPyPrintout_Destroy(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPyPrintout_Destroy(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxDC *)wxPrintout_GetDC(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxDC *)wxPrintout_GetDC(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintout_GetPageSizeMM(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintout_GetPageSizeMM(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintout_GetPageSizePixels(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintout_GetPageSizePixels(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintout_GetPPIPrinter(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintout_GetPPIPrinter(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintout_GetPPIScreen(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintout_GetPPIScreen(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPrintout_IsPreview(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPrintout_IsPreview(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPrintout_base_OnBeginDocument(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPrintout_base_OnBeginDocument(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintout_base_OnEndDocument(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintout_base_OnEndDocument(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintout_base_OnBeginPrinting(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintout_base_OnBeginPrinting(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintout_base_OnEndPrinting(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintout_base_OnEndPrinting(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintout_base_OnPreparePrinting(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintout_base_OnPreparePrinting(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintout_base_GetPageInfo(_arg0,_arg1,_arg2,_arg3,_arg4);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintout_base_GetPageInfo(_arg0,_arg1,_arg2,_arg3,_arg4);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPrintout_base_HasPage(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPrintout_base_HasPage(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPrinter *)new_wxPrinter(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPrinter *)new_wxPrinter(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrinter_p");
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- delete_wxPrinter(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ delete_wxPrinter(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrinter_CreateAbortWindow(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrinter_CreateAbortWindow(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintDialogData & _result_ref = wxPrinter_GetPrintDialogData(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintDialogData & _result_ref = wxPrinter_GetPrintDialogData(_arg0);
_result = (wxPrintDialogData *) &_result_ref;
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintDialogData_p");
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPrinter_Print(_arg0,_arg1,_arg2,_arg3);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPrinter_Print(_arg0,_arg1,_arg2,_arg3);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxDC *)wxPrinter_PrintDialog(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxDC *)wxPrinter_PrintDialog(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
wxPrinter * _arg0;
wxWindow * _arg1;
wxPyPrintout * _arg2;
- char * _arg3;
+ wxString * _arg3;
PyObject * _argo0 = 0;
PyObject * _argo1 = 0;
PyObject * _argo2 = 0;
+ PyObject * _obj3 = 0;
char *_kwnames[] = { "self","parent","printout","message", NULL };
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOs:wxPrinter_ReportError",_kwnames,&_argo0,&_argo1,&_argo2,&_arg3))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxPrinter_ReportError",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrinter_ReportError(_arg0,_arg1,_arg2,_arg3);
+ _arg3 = wxString_in_helper(_obj3);
+ if (_arg3 == NULL)
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrinter_ReportError(_arg0,_arg1,_arg2,*_arg3);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
+{
+ if (_obj3)
+ delete _arg3;
+}
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPrinter_Setup(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPrinter_Setup(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPrintPreview *)new_wxPrintPreview(_arg0,_arg1,_arg2);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPrintPreview *)new_wxPrintPreview(_arg0,_arg1,_arg2);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintPreview_p");
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxWindow *)wxPrintPreview_GetCanvas(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxWindow *)wxPrintPreview_GetCanvas(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxPrintPreview_GetCurrentPage(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxPrintPreview_GetCurrentPage(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxFrame *)wxPrintPreview_GetFrame(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxFrame *)wxPrintPreview_GetFrame(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxPrintPreview_GetMaxPage(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxPrintPreview_GetMaxPage(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxPrintPreview_GetMinPage(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxPrintPreview_GetMinPage(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintDialogData & _result_ref = wxPrintPreview_GetPrintDialogData(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintDialogData & _result_ref = wxPrintPreview_GetPrintDialogData(_arg0);
_result = (wxPrintDialogData *) &_result_ref;
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintDialogData_p");
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPyPrintout *)wxPrintPreview_GetPrintout(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPyPrintout *)wxPrintPreview_GetPrintout(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPyPrintout *)wxPrintPreview_GetPrintoutForPrinting(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPyPrintout *)wxPrintPreview_GetPrintoutForPrinting(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
}{ _resultobj = wxPyMake_wxObject(_result); }
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (int )wxPrintPreview_GetZoom(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (int )wxPrintPreview_GetZoom(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPrintPreview_Ok(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPrintPreview_Ok(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
_arg1 = (bool ) tempbool1;
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (bool )wxPrintPreview_Print(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (bool )wxPrintPreview_Print(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} _resultobj = Py_BuildValue("i",_result);
return _resultobj;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintPreview_SetCanvas(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintPreview_SetCanvas(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintPreview_SetCurrentPage(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintPreview_SetCurrentPage(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintPreview_SetFrame(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintPreview_SetFrame(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintPreview_SetPrintout(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintPreview_SetPrintout(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPrintPreview_SetZoom(_arg0,_arg1);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPrintPreview_SetZoom(_arg0,_arg1);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
wxSize * _arg4 = (wxSize *) &wxDefaultSize;
long _arg5 = (long ) wxDEFAULT_FRAME_STYLE;
- char * _arg6 = (char *) "frame";
+ wxString * _arg6 = (wxString *) &wxPyFrameNameStr;
PyObject * _argo0 = 0;
PyObject * _argo1 = 0;
PyObject * _obj2 = 0;
PyObject * _obj3 = 0;
wxSize temp0;
PyObject * _obj4 = 0;
+ PyObject * _obj6 = 0;
char *_kwnames[] = { "preview","parent","title","pos","size","style","name", NULL };
char _ptemp[128];
self = self;
- if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|OOls:new_wxPreviewFrame",_kwnames,&_argo0,&_argo1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6))
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|OOlO:new_wxPreviewFrame",_kwnames,&_argo0,&_argo1,&_obj2,&_obj3,&_obj4,&_arg5,&_obj6))
return NULL;
if (_argo0) {
if (_argo0 == Py_None) { _arg0 = NULL; }
}
}
{
-#if PYTHON_API_VERSION >= 1009
- char* tmpPtr; int tmpSize;
- if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
- return NULL;
- }
- if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
- return NULL;
- _arg2 = new wxString(tmpPtr, tmpSize);
-#else
- if (!PyString_Check(_obj2)) {
- PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
+ _arg2 = wxString_in_helper(_obj2);
+ if (_arg2 == NULL)
return NULL;
- }
- _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
-#endif
}
if (_obj3)
{
if (! wxSize_helper(_obj4, &_arg4))
return NULL;
}
+ if (_obj6)
{
- wxPy_BEGIN_ALLOW_THREADS;
- _result = (wxPreviewFrame *)new_wxPreviewFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6);
+ _arg6 = wxString_in_helper(_obj6);
+ if (_arg6 == NULL)
+ return NULL;
+}
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (wxPreviewFrame *)new_wxPreviewFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} if (_result) {
SWIG_MakePtr(_ptemp, (char *) _result,"_wxPreviewFrame_p");
{
if (_obj2)
delete _arg2;
+}
+{
+ if (_obj6)
+ delete _arg6;
}
return _resultobj;
}
}
}
{
- wxPy_BEGIN_ALLOW_THREADS;
- wxPreviewFrame_Initialize(_arg0);
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ wxPreviewFrame_Initialize(_arg0);
- wxPy_END_ALLOW_THREADS;
+ wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None);
_resultobj = Py_None;
{ "wxPageSetupDialogData_EnableHelp", (PyCFunction) _wrap_wxPageSetupDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS },
{ "delete_wxPageSetupDialogData", (PyCFunction) _wrap_delete_wxPageSetupDialogData, METH_VARARGS | METH_KEYWORDS },
{ "new_wxPageSetupDialogData", (PyCFunction) _wrap_new_wxPageSetupDialogData, METH_VARARGS | METH_KEYWORDS },
+ { "wxPostScriptDC_GetResolution", (PyCFunction) _wrap_wxPostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
+ { "wxPostScriptDC_SetResolution", (PyCFunction) _wrap_wxPostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
+ { "wxPostScriptDC_SetPrintData", (PyCFunction) _wrap_wxPostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
+ { "wxPostScriptDC_GetPrintData", (PyCFunction) _wrap_wxPostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
+ { "new_wxPostScriptDC2", (PyCFunction) _wrap_new_wxPostScriptDC2, METH_VARARGS | METH_KEYWORDS },
+ { "new_wxPostScriptDC", (PyCFunction) _wrap_new_wxPostScriptDC, METH_VARARGS | METH_KEYWORDS },
{ "new_wxPrinterDC2", (PyCFunction) _wrap_new_wxPrinterDC2, METH_VARARGS | METH_KEYWORDS },
{ "new_wxPrinterDC", (PyCFunction) _wrap_new_wxPrinterDC, METH_VARARGS | METH_KEYWORDS },
{ "wxPrintData_SetPrintMode", (PyCFunction) _wrap_wxPrintData_SetPrintMode, METH_VARARGS | METH_KEYWORDS },
{ "_byte","_unsigned_char",0},
{ "_long","_unsigned_long",0},
{ "_long","_signed_long",0},
+ { "_wxDC","_wxPostScriptDC",SwigwxPostScriptDCTowxDC},
{ "_wxDC","_wxPrinterDC",SwigwxPrinterDCTowxDC},
{ "_size_t","_wxCoord",0},
{ "_size_t","_wxPrintQuality",0},
{ "_wxObject","_wxPrintDialogData",SwigwxPrintDialogDataTowxObject},
{ "_wxObject","_wxPageSetupDialog",SwigwxPageSetupDialogTowxObject},
{ "_wxObject","_wxPageSetupDialogData",SwigwxPageSetupDialogDataTowxObject},
+ { "_wxObject","_wxPostScriptDC",SwigwxPostScriptDCTowxObject},
{ "_wxObject","_wxPrinterDC",SwigwxPrinterDCTowxObject},
{ "_wxObject","_wxPrintData",SwigwxPrintDataTowxObject},
{ "_signed_short","_WXTYPE",0},