Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 103 → Rev 104

/trunk/Scribus/scribus/plugins/scriptplugin/cmddoc.h
1,7 → 1,6
#ifndef CMDDOC_H
#define CMDDOC_H
 
#include <Python.h>
 
/** Document related Commands */
PyObject *scribus_newdoc(PyObject *self, PyObject* args);
/trunk/Scribus/scribus/plugins/scriptplugin/cmdobj.cpp
1,3 → 1,5
#include <Python.h>
 
#include "cmdobj.h"
#include "cmdutil.h"
#include "cmdvar.h"
/trunk/Scribus/scribus/plugins/scriptplugin/cmdpage.cpp
1,3 → 1,4
#include <Python.h>
#include "cmdpage.h"
#include "cmdvar.h"
 
/trunk/Scribus/scribus/plugins/scriptplugin/cmdgetprop.cpp
1,3 → 1,4
#include <Python.h>
#include "cmdgetprop.h"
#include "cmdutil.h"
#include "cmdvar.h"
/trunk/Scribus/scribus/plugins/scriptplugin/cmdcolor.h
1,7 → 1,6
#ifndef CMDCOLOR_H
#define CMDCOLOR_H
 
#include <Python.h>
 
/** Managing Colors */
PyObject *scribus_colornames(PyObject *self, PyObject* args);
/trunk/Scribus/scribus/plugins/scriptplugin/cmdtext.cpp
1,3 → 1,4
#include <Python.h>
#include "cmdtext.h"
#include "cmdutil.h"
#include "cmdvar.h"
/trunk/Scribus/scribus/plugins/scriptplugin/cmdmani.cpp
1,3 → 1,4
#include <Python.h>
#include "cmdmani.h"
#include "cmdutil.h"
#include "cmdvar.h"
/trunk/Scribus/scribus/plugins/scriptplugin/cmdsetprop.cpp
1,3 → 1,4
#include <Python.h>
#include "cmdsetprop.h"
#include "cmdutil.h"
#include "cmdvar.h"
/trunk/Scribus/scribus/plugins/scriptplugin/cmdmisc.h
1,7 → 1,6
#ifndef CMDMISC_H
#define CMDMISC_H
 
#include <Python.h>
 
/** Other Commands */
PyObject *scribus_setredraw(PyObject *self, PyObject* args);
/trunk/Scribus/scribus/plugins/scriptplugin/scriptplugin.h
1,7 → 1,6
#ifndef SCRIPTPLUG_H
#define SCRIPTPLUG_H
 
#include "Python.h"
#include "scribus.h"
#include "pconsole.h"
 
/trunk/Scribus/scribus/plugins/scriptplugin/cmddialog.h
1,7 → 1,6
#ifndef CMDDIALOG_H
#define CMDDIALOG_H
 
#include <Python.h>
 
/** Calling Dialogs from Scribus */
PyObject *scribus_newdocdia(PyObject *self, PyObject* args);
/trunk/Scribus/scribus/plugins/scriptplugin/cmddoc.cpp
1,3 → 1,4
#include <Python.h>
#include "cmddoc.h"
#include "cmdutil.h"
#include "cmdvar.h"
/trunk/Scribus/scribus/plugins/scriptplugin/cmdcolor.cpp
1,31 → 1,8
#include <Python.h>
#include "cmdcolor.h"
#include "cmdutil.h"
#include "cmdvar.h"
#include "cmdutil.h"
#include "cmdcolor.h"
 
void ReplaceColor(QString col, QString rep)
{
for (uint b = 0; b < Carrier->view->Pages.count(); b++)
{
for (uint c = 0; c < Carrier->view->Pages.at(b)->Items.count(); c++)
{
if (Carrier->view->Pages.at(b)->Items.at(c)->PType == 4)
{
for (uint d = 0; d < Carrier->view->Pages.at(b)->Items.at(c)->Ptext.count(); d++)
{
if (col == Carrier->view->Pages.at(b)->Items.at(c)->Ptext.at(d)->ccolor)
{
Carrier->view->Pages.at(b)->Items.at(c)->Ptext.at(d)->ccolor = rep;
}
}
}
if (col == Carrier->view->Pages.at(b)->Items.at(c)->Pcolor)
Carrier->view->Pages.at(b)->Items.at(c)->Pcolor = rep;
if (col == Carrier->view->Pages.at(b)->Items.at(c)->Pcolor2)
Carrier->view->Pages.at(b)->Items.at(c)->Pcolor2 = rep;
}
}
}
 
PyObject *scribus_colornames(PyObject *self, PyObject* args)
{
CListe edc;
/trunk/Scribus/scribus/plugins/scriptplugin/cmdobj.h
1,7 → 1,6
#ifndef CMDOBJ_H
#define CMDOBJ_H
 
#include <Python.h>
 
/** Object related Commands */
PyObject *scribus_newrect(PyObject *self, PyObject* args);
/trunk/Scribus/scribus/plugins/scriptplugin/cmdpage.h
1,7 → 1,6
#ifndef CMDPAGE_H
#define CMDPAGE_H
 
#include <Python.h>
 
/** Page related Commands */
PyObject *scribus_newpage(PyObject *self, PyObject* args);
/trunk/Scribus/scribus/plugins/scriptplugin/cmdgetprop.h
1,7 → 1,6
#ifndef CMDGETPROP_H
#define CMDGETPROP_H
 
#include <Python.h>
 
/** Query-Functions */
PyObject *scribus_getfillcolor(PyObject *self, PyObject* args);
/trunk/Scribus/scribus/plugins/scriptplugin/cmdtext.h
1,7 → 1,6
#ifndef CMDTEXT_H
#define CMDTEXT_H
 
#include <Python.h>
 
PyObject *scribus_getfontsize(PyObject *self, PyObject* args);
PyObject *scribus_getfont(PyObject *self, PyObject* args);
/trunk/Scribus/scribus/plugins/scriptplugin/cmdmani.h
1,7 → 1,6
#ifndef CMDMANI_H
#define CMDMANI_H
 
#include <Python.h>
 
/** Manipulating Objects */
PyObject *scribus_moveobjrel(PyObject *self, PyObject* args);
/trunk/Scribus/scribus/plugins/scriptplugin/cmdmisc.cpp
1,3 → 1,4
#include <Python.h>
#include "cmdmisc.h"
#include "cmdutil.h"
#include "cmdvar.h"
/trunk/Scribus/scribus/plugins/scriptplugin/scriptplugin.cpp
14,6 → 14,7
* (at your option) any later version. *
* *
***************************************************************************/
#include "Python.h"
#include "cmddialog.h"
#include "cmddoc.h"
#include "cmdpage.h"
/trunk/Scribus/scribus/plugins/scriptplugin/cmddialog.cpp
1,3 → 1,4
#include <Python.h>
#include "cmddialog.h"
#include "cmdvar.h"
 
/trunk/Scribus/scribus/plugins/scriptplugin/cmdsetprop.h
1,7 → 1,6
#ifndef CMDSETPROP_H
#define CMDSETPROP_H
 
#include <Python.h>
 
/** Setting Object Properties */
PyObject *scribus_setgradfill(PyObject *self, PyObject* args);