Subversion Repositories Scribus

Compare Revisions

Regard whitespace Rev 470 → Rev 471

/trunk/Scribus/scribus/plugins/scriptplugin/cmdpage.cpp
40,7 → 40,6
if (!Carrier->HaveDoc)
return PyInt_FromLong(0L);
bool ret = Carrier->DoSaveAsEps(QString(Name));
// qApp->processEvents();
return PyInt_FromLong(static_cast<long>(ret));
}
 
54,12 → 53,18
}
Py_INCREF(Py_None);
if (!Carrier->HaveDoc)
{
Py_INCREF(Py_None);
return Py_None;
}
e--;
if ((e < 0) || (e > static_cast<int>(Carrier->view->Pages.count())-1))
return Py_None;
{
PyErr_SetString(PyExc_IndexError, "Page number out of range");
return NULL;
}
Carrier->DeletePage2(e);
// qApp->processEvents();
Py_INCREF(Py_None);
return Py_None;
}
 
71,14 → 76,19
PyErr_SetString(PyExc_Exception, ERRPARAM + QString("gotoPage(pagenumber)"));
return NULL;
}
if (!Carrier->HaveDoc)
{
Py_INCREF(Py_None);
if (!Carrier->HaveDoc)
return Py_None;
}
e--;
if ((e < 0) || (e > static_cast<int>(Carrier->view->Pages.count())-1))
return Py_None;
{
PyErr_SetString(PyExc_IndexError, "Page number out of range");
return NULL;
}
Carrier->view->GotoPage(e);
// qApp->processEvents();
Py_INCREF(Py_None);
return Py_None;
}
 
91,9 → 101,11
PyErr_SetString(PyExc_Exception, ERRPARAM + QString("newPage(pagenumber [, pagename])"));
return NULL;
}
if (!Carrier->HaveDoc)
{
Py_INCREF(Py_None);
if (!Carrier->HaveDoc)
return Py_None;
}
if (e < 0)
Carrier->slotNewPageP(Carrier->view->Pages.count(), QString(name));
else
100,10 → 112,13
{
e--;
if ((e < 0) || (e > static_cast<int>(Carrier->view->Pages.count())-1))
return Py_None;
{
PyErr_SetString(PyExc_IndexError, "Page number out of range");
return NULL;
}
Carrier->slotNewPageP(e, QString(name));
}
// qApp->processEvents();
Py_INCREF(Py_None);
return Py_None;
}
 
202,9 → 217,11
PyErr_SetString(PyExc_TypeError, QString("argument is not list: must be list of float values"));
return NULL;
}
if (!Carrier->HaveDoc)
{
Py_INCREF(Py_None);
if (!Carrier->HaveDoc)
return Py_None;
}
int i, n;
n = PyList_Size(l);
double guide;
218,6 → 235,7
}
Carrier->doc->ActPage->YGuides += ValueToPoint(guide);
}
Py_INCREF(Py_None);
return Py_None;
}
 
260,9 → 278,11
PyErr_SetString(PyExc_TypeError, QString("argument is not list: must be list of float values"));
return NULL;
}
if (!Carrier->HaveDoc)
{
Py_INCREF(Py_None);
if (!Carrier->HaveDoc)
return Py_None;
}
int i, n;
n = PyList_Size(l);
double guide;
276,6 → 296,7
}
Carrier->doc->ActPage->XGuides += ValueToPoint(guide);
}
Py_INCREF(Py_None);
return Py_None;
}