Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 421 → Rev 420

/trunk/Scribus/scribus/plugins/scriptplugin/cmdpage.cpp
7,7 → 7,7
{
if (!PyArg_ParseTuple(args, ""))
{
PyErr_SetString(PyExc_Exception, ERRPARAM + QString("currentPage()"));
PyErr_SetString(PyExc_Exception, ERRPARAM + QString("CurrentPage()"));
return NULL;
}
if (!Carrier->HaveDoc)
19,7 → 19,7
{
if (!PyArg_ParseTuple(args, ""))
{
PyErr_SetString(PyExc_Exception, ERRPARAM + QString("redrawAll()"));
PyErr_SetString(PyExc_Exception, ERRPARAM + QString("RedrawAll()"));
return NULL;
}
Py_INCREF(Py_None);
34,7 → 34,7
char *Name;
if (!PyArg_ParseTuple(args, "s", &Name))
{
PyErr_SetString(PyExc_Exception, ERRPARAM + QString("savePageAsEPS(filename)"));
PyErr_SetString(PyExc_Exception, ERRPARAM + QString("SavePageAsEPS(filename)"));
return NULL;
}
if (!Carrier->HaveDoc)
49,7 → 49,7
int e;
if (!PyArg_ParseTuple(args, "i", &e))
{
PyErr_SetString(PyExc_Exception, ERRPARAM + QString("deletePage(pagenumber)"));
PyErr_SetString(PyExc_Exception, ERRPARAM + QString("DeletePage(pagenumber)"));
return NULL;
}
Py_INCREF(Py_None);
68,7 → 68,7
int e;
if (!PyArg_ParseTuple(args, "i", &e))
{
PyErr_SetString(PyExc_Exception, ERRPARAM + QString("gotoPage(pagenumber)"));
PyErr_SetString(PyExc_Exception, ERRPARAM + QString("GotoPage(pagenumber)"));
return NULL;
}
Py_INCREF(Py_None);
88,7 → 88,7
char *name = "Normal";
if (!PyArg_ParseTuple(args, "i|s", &e, &name))
{
PyErr_SetString(PyExc_Exception, ERRPARAM + QString("newPage(pagenumber [, pagename])"));
PyErr_SetString(PyExc_Exception, ERRPARAM + QString("NewPage(pagenumber [, pagename])"));
return NULL;
}
Py_INCREF(Py_None);
111,7 → 111,7
{
if (!PyArg_ParseTuple(args, ""))
{
PyErr_SetString(PyExc_Exception, ERRPARAM + QString("pageCount()"));
PyErr_SetString(PyExc_Exception, ERRPARAM + QString("PageCount()"));
return NULL;
}
if (!Carrier->HaveDoc)
123,7 → 123,7
{
if (!PyArg_ParseTuple(args, ""))
{
PyErr_SetString(PyExc_Exception, ERRPARAM + QString("getPageSize()"));
PyErr_SetString(PyExc_Exception, ERRPARAM + QString("PageDimension()"));
return NULL;
}
if (!Carrier->HaveDoc)
144,7 → 144,7
{
if (!PyArg_ParseTuple(args, ""))
{
PyErr_SetString(PyExc_Exception, ERRPARAM + QString("getPageItems()"));
PyErr_SetString(PyExc_Exception, ERRPARAM + QString("GetPageItems()"));
return NULL;
}
if ((!Carrier->HaveDoc) || (Carrier->doc->ActPage->Items.count() == 0))
167,7 → 167,7
{
if (!PyArg_ParseTuple(args, ""))
{
PyErr_SetString(PyExc_Exception, ERRPARAM + QString("getHGuides()"));
PyErr_SetString(PyExc_Exception, ERRPARAM + QString("GetHGuides()"));
return NULL;
}
int n;
194,7 → 194,7
PyObject *l;
if (!PyArg_ParseTuple(args, "O", &l))
{
PyErr_SetString(PyExc_Exception, ERRPARAM + QString("setHGuides(guides)"));
PyErr_SetString(PyExc_Exception, ERRPARAM + QString("SetHGuides(guides)"));
return NULL;
}
if (!PyList_Check(l))
225,7 → 225,7
{
if (!PyArg_ParseTuple(args, ""))
{
PyErr_SetString(PyExc_Exception, ERRPARAM + QString("getVGuides()"));
PyErr_SetString(PyExc_Exception, ERRPARAM + QString("GetVGuides()"));
return NULL;
}
int n;
252,7 → 252,7
PyObject *l;
if (!PyArg_ParseTuple(args, "O", &l))
{
PyErr_SetString(PyExc_Exception, ERRPARAM + QString("setVGuides(guides)"));
PyErr_SetString(PyExc_Exception, ERRPARAM + QString("SetVGuides(guides)"));
return NULL;
}
if (!PyList_Check(l))
284,7 → 284,7
PyObject *margins = NULL;
if (!PyArg_ParseTuple(args, ""))
{
PyErr_SetString(PyExc_Exception, ERRPARAM + QString("getPageMargins()"));
PyErr_SetString(PyExc_Exception, ERRPARAM + QString("GetPageMargins()"));
return NULL;
}
if (!Carrier->HaveDoc)