Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 81 → Rev 82

/trunk/Scribus/configure.in
105,7 → 105,7
fi
LIBTIFF=""
hastif=
AC_CHECK_LIB(tiff, TIFFOpen, [LIBTIFF="-ltiff";hastif=yes],[LIBTIFF="";hastif=no])
AC_CHECK_LIB(tiff, TIFFOpen, [LIBTIFF="-ltiff";hastif=yes],[LIBTIFF="";hastif=no],[-lm])
AC_SUBST(LIBTIFF)
if test $hastif = yes; then
AC_DEFINE_UNQUOTED(HAVE_TIFF, 1, [Tifflib])
123,6 → 123,7
AC_ENABLE_SHARED(yes)
AC_ENABLE_STATIC(no)
KDE_PROG_LIBTOOL
KDE_CHECK_PYTHON(1.5)
 
AC_CHECK_HEADER(cups/cups.h, [foo=""],[hacups=no])
if test $hacups = yes; then
146,6 → 147,10
AC_CONFIG_FILES([scribus/plugins/svgexplugin/Makefile])
AC_CONFIG_FILES([scribus/plugins/svgimplugin/Makefile])
AC_CONFIG_FILES([scribus/plugins/printpreview/Makefile])
AC_CONFIG_FILES([scribus/plugins/scriptplugin/Makefile])
AC_CONFIG_FILES([scribus/plugins/scriptplugin/doc/Makefile])
AC_CONFIG_FILES([scribus/plugins/scriptplugin/doc/en/Makefile])
AC_CONFIG_FILES([scribus/plugins/scriptplugin/samples/Makefile])
AC_CONFIG_FILES([scribus/plugins/Makefile])
AC_CONFIG_FILES([scribus/libpostscript/Makefile])
AC_CONFIG_FILES([scribus/profiles/Makefile])
/trunk/Scribus/config.h.in
43,6 → 43,9
*/
#undef HAVE_PTHREAD_LINUXTHREADS_PTHREAD_H
 
/* Define if you have the development files for python */
#undef HAVE_PYTHON
 
/* Define if you have the res_init function */
#undef HAVE_RES_INIT
 
/trunk/Scribus/ChangeLogCVS
1,4 → 1,12
Changes since Version 1.1.1
20.10.2003 Included the Scripter Plugin into the main Package.
Fixed the ./configure script that libtiff is recognized
on a stock RH9 installation.
 
18.10.2003 Fixed some Bug when saving files under RH9.
Adjusted the Code for the Rulers to work with
Luxi Fonts from RH9.
 
17.10.2003 The AutoSave Option is now working again.
 
16.10.2003 Included Paul patches with only one small correction.
/trunk/Scribus/scribus/scfonts.cpp
384,7 → 384,7
{
t->cached_RealName = QString(FT_Get_Postscript_Name(face));
t->Font = qApp->font();
t->Font.setPointSize(12);
t->Font.setPointSize(qApp->font().pointSize());
if (ext == "otf")
{
t->isOTF = true;
/trunk/Scribus/scribus/vruler.h
43,9 → 43,9
int Markp;
int oldMark;
bool Mpressed;
QFont rfont;
private: // Private attributes
/** Zeichensatz des Lineals */
QFont rfont;
ScribusDoc *doku;
public slots: // Public slots
/** Zeichnet den Pfeil */
/trunk/Scribus/scribus/scribusview.cpp
134,6 → 134,8
while (fom.height() > LE->ed->height());
LA->setFont(ff);
LY->setFont(ff);
HR->rfont = ff;
VR->rfont = ff;
}
QRect forec = fom.boundingRect("3200.00 %");
int sadj = forec.width() - LE->ed->width();
/trunk/Scribus/scribus/libabout/about.cpp
32,7 → 32,7
tabLayout1->addWidget( PixmapLabel1 );
BuildID = new QLabel( tab, "BB" );
BuildID->setAlignment(Qt::AlignCenter);
QString bu = "17. October 2003 ";
QString bu = "20. October 2003 ";
#ifdef HAVE_CMS
bu += "C";
#else
/trunk/Scribus/scribus/hruler.cpp
24,7 → 24,7
setEraseColor(QColor(255,255,255));
doku = doc;
rfont = font();
rfont.setPointSize(9);
rfont.setPointSize(rfont.pointSize()-1);
offs = -10;
Markp = 0;
repX = false;
/trunk/Scribus/scribus/plugins/scriptplugin/cmddoc.h
0,0 → 1,19
#ifndef CMDDOC_H
#define CMDDOC_H
 
#include <Python.h>
 
/** Document related Commands */
PyObject *scribus_newdoc(PyObject *self, PyObject* args);
PyObject *scribus_closedoc(PyObject *self, PyObject* args);
PyObject *scribus_havedoc(PyObject *self, PyObject* args);
PyObject *scribus_opendoc(PyObject *self, PyObject* args);
PyObject *scribus_savedoc(PyObject *self, PyObject* args);
PyObject *scribus_savedocas(PyObject *self, PyObject* args);
PyObject *scribus_setinfo(PyObject *self, PyObject* args);
PyObject *scribus_setmargins(PyObject *self, PyObject* args);
PyObject *scribus_setunit(PyObject *self, PyObject* args);
PyObject *scribus_getunit(PyObject *self, PyObject* args);
 
#endif
 
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/cmdobj.cpp
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdobj.cpp (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdobj.cpp (revision 82)
@@ -0,0 +1,354 @@
+#include "cmdvar.h"
+#include "cmdutil.h"
+#include "cmdobj.h"
+
+PyObject *scribus_newrect(PyObject *self, PyObject* args)
+{
+ double x, y, b, h;
+ int i;
+ char *Name = "";
+ if (!PyArg_ParseTuple(args, "dddd|s", &x, &y, &b, &h, &Name))
+ return NULL;
+ if (!Carrier->HaveDoc)
+ return PyString_FromString("");
+ i = doc->ActPage->PaintRect(ValueToPoint(x), ValueToPoint(y),
+ ValueToPoint(b), ValueToPoint(h),
+ doc->Dwidth, doc->Dbrush, doc->Dpen);
+ doc->ActPage->SetRectFrame(doc->ActPage->Items.at(i));
+ if (Name != "")
+ doc->ActPage->Items.at(i)->AnName = QString(Name);
+ return PyString_FromString(doc->ActPage->Items.at(i)->AnName);
+}
+
+PyObject *scribus_newellipse(PyObject *self, PyObject* args)
+{
+ double x, y, b, h;
+ int i;
+ char *Name = "";
+ if (!PyArg_ParseTuple(args, "dddd|s", &x, &y, &b, &h, &Name))
+ return NULL;
+ if (!Carrier->HaveDoc)
+ return PyString_FromString("");
+ i = doc->ActPage->PaintEllipse(ValueToPoint(x), ValueToPoint(y),
+ ValueToPoint(b), ValueToPoint(h),
+ doc->Dwidth, doc->Dbrush, doc->Dpen);
+ doc->ActPage->SetOvalFrame(doc->ActPage->Items.at(i));
+ if (Name != "")
+ doc->ActPage->Items.at(i)->AnName = QString(Name);
+ return PyString_FromString(doc->ActPage->Items.at(i)->AnName);
+}
+
+PyObject *scribus_newimage(PyObject *self, PyObject* args)
+{
+ double x, y, b, h;
+ int i;
+ char *Name = "";
+ if (!PyArg_ParseTuple(args, "dddd|s", &x, &y, &b, &h, &Name))
+ return NULL;
+ if (!Carrier->HaveDoc)
+ return PyString_FromString("");
+ i = doc->ActPage->PaintPict(ValueToPoint(x), ValueToPoint(y), ValueToPoint(b), ValueToPoint(h));
+ doc->ActPage->SetRectFrame(doc->ActPage->Items.at(i));
+ if (Name != "")
+ doc->ActPage->Items.at(i)->AnName = QString(Name);
+ return PyString_FromString(doc->ActPage->Items.at(i)->AnName);
+}
+
+PyObject *scribus_newtext(PyObject *self, PyObject* args)
+{
+ double x, y, b, h;
+ int i;
+ char *Name = "";
+ if (!PyArg_ParseTuple(args, "dddd|s", &x, &y, &b, &h, &Name))
+ return NULL;
+ if (!Carrier->HaveDoc)
+ return PyString_FromString("");
+ i = doc->ActPage->PaintText(ValueToPoint(x), ValueToPoint(y),
+ ValueToPoint(b), ValueToPoint(h),
+ doc->Dwidth, doc->DpenText);
+ doc->ActPage->SetRectFrame(doc->ActPage->Items.at(i));
+ if (Name != "")
+ doc->ActPage->Items.at(i)->AnName = QString(Name);
+ return PyString_FromString(doc->ActPage->Items.at(i)->AnName);
+}
+
+PyObject *scribus_newline(PyObject *self, PyObject* args)
+{
+ double x, y, b, h;
+ int i;
+ char *Name = "";
+ if (!PyArg_ParseTuple(args, "dddd|s", &x, &y, &b, &h, &Name))
+ return NULL;
+ if (!Carrier->HaveDoc)
+ return PyString_FromString("");
+ x = ValueToPoint(x);
+ y = ValueToPoint(y);
+ b = ValueToPoint(b);
+ h = ValueToPoint(h);
+ i = doc->ActPage->PaintPolyLine(x, y, 1, 1, doc->Dwidth, doc->Dbrush, doc->Dpen);
+ PageItem *it = doc->ActPage->Items.at(i);
+ it->PoLine.resize(4);
+ it->PoLine.setPoint(0, 0, 0);
+ it->PoLine.setPoint(1, 0, 0);
+ it->PoLine.setPoint(2, b-x, h-y);
+ it->PoLine.setPoint(3, b-x, h-y);
+ FPoint np2 = doc->ActPage->GetMinClipF(it->PoLine);
+ if (np2.x() < 0)
+ {
+ it->PoLine.translate(-np2.x(), 0);
+ doc->ActPage->MoveItem(np2.x(), 0, it);
+ }
+ if (np2.y() < 0)
+ {
+ it->PoLine.translate(0, -np2.y());
+ doc->ActPage->MoveItem(0, np2.y(), it);
+ }
+ doc->ActPage->SizeItem(it->PoLine.WidthHeight().x(), it->PoLine.WidthHeight().y(), i, false, false);
+ doc->ActPage->AdjustItemSize(it);
+ if (Name != "")
+ it->AnName = QString(Name);
+ return PyString_FromString(it->AnName);
+}
+
+PyObject *scribus_polyline(PyObject *self, PyObject* args)
+{
+ double x, y, b, h;
+ int i = 0;
+ int ic, pp, len;
+ char *Name = "";
+ PyObject *il;
+ if ((!PyArg_ParseTuple(args, "O|s", &il, &Name)) || (!PyList_Check(il)))
+ return NULL;
+ if (!Carrier->HaveDoc)
+ return PyString_FromString("");
+ len = PyList_Size(il);
+ if ((len < 4) || ((len % 2) != 0))
+ return PyString_FromString("");
+ x = ValueToPoint(static_cast<double>(PyFloat_AsDouble(PyList_GetItem(il, i))));
+ i++;
+ y = ValueToPoint(static_cast<double>(PyFloat_AsDouble(PyList_GetItem(il, i))));
+ i++;
+ ic = doc->ActPage->PaintPolyLine(x, y, 1, 1, doc->Dwidth, doc->Dbrush, doc->Dpen);
+ PageItem *it = doc->ActPage->Items.at(ic);
+ it->PoLine.resize(2);
+ it->PoLine.setPoint(0, 0, 0);
+ it->PoLine.setPoint(1, 0, 0);
+ pp = 6;
+ for (i = 2; i < len - 2; i += 2)
+ {
+ b = ValueToPoint(static_cast<double>(PyFloat_AsDouble(PyList_GetItem(il, i))));
+ h = ValueToPoint(static_cast<double>(PyFloat_AsDouble(PyList_GetItem(il, i+1))));
+ it->PoLine.resize(pp);
+ it->PoLine.setPoint(pp-4, b-x, h-y);
+ it->PoLine.setPoint(pp-3, b-x, h-y);
+ it->PoLine.setPoint(pp-2, b-x, h-y);
+ it->PoLine.setPoint(pp-1, b-x, h-y);
+ pp += 4;
+ }
+ pp -= 2;
+ b = ValueToPoint(static_cast<double>(PyFloat_AsDouble(PyList_GetItem(il, len-2))));
+ h = ValueToPoint(static_cast<double>(PyFloat_AsDouble(PyList_GetItem(il, len-1))));
+ it->PoLine.resize(pp);
+ it->PoLine.setPoint(pp-2, b-x, h-y);
+ it->PoLine.setPoint(pp-1, b-x, h-y);
+ FPoint np2 = doc->ActPage->GetMinClipF(it->PoLine);
+ if (np2.x() < 0)
+ {
+ it->PoLine.translate(-np2.x(), 0);
+ doc->ActPage->MoveItem(np2.x(), 0, it);
+ }
+ if (np2.y() < 0)
+ {
+ it->PoLine.translate(0, -np2.y());
+ doc->ActPage->MoveItem(0, np2.y(), it);
+ }
+ doc->ActPage->SizeItem(it->PoLine.WidthHeight().x(), it->PoLine.WidthHeight().y(), ic, false, false);
+ doc->ActPage->AdjustItemSize(it);
+ if (Name != "")
+ it->AnName = QString(Name);
+ return PyString_FromString(it->AnName);
+}
+
+PyObject *scribus_polygon(PyObject *self, PyObject* args)
+{
+ double x, y, b, h;
+ int i = 0;
+ int ic, pp, len;
+ char *Name = "";
+ PyObject *il;
+ if ((!PyArg_ParseTuple(args, "O|s", &il, &Name)) || (!PyList_Check(il)))
+ return NULL;
+ if (!Carrier->HaveDoc)
+ return PyString_FromString("");
+ len = PyList_Size(il);
+ if ((len < 6) || ((len % 2) != 0))
+ return PyString_FromString("");
+ x = ValueToPoint(static_cast<double>(PyFloat_AsDouble(PyList_GetItem(il, i))));
+ i++;
+ y = ValueToPoint(static_cast<double>(PyFloat_AsDouble(PyList_GetItem(il, i))));
+ i++;
+ ic = doc->ActPage->PaintPoly(x, y, 1, 1, doc->Dwidth, doc->Dbrush, doc->Dpen);
+ PageItem *it = doc->ActPage->Items.at(ic);
+ it->PoLine.resize(2);
+ it->PoLine.setPoint(0, 0, 0);
+ it->PoLine.setPoint(1, 0, 0);
+ pp = 6;
+ for (i = 2; i < len - 2; i += 2)
+ {
+ b = ValueToPoint(static_cast<double>(PyFloat_AsDouble(PyList_GetItem(il, i))));
+ h = ValueToPoint(static_cast<double>(PyFloat_AsDouble(PyList_GetItem(il, i+1))));
+ it->PoLine.resize(pp);
+ it->PoLine.setPoint(pp-4, b-x, h-y);
+ it->PoLine.setPoint(pp-3, b-x, h-y);
+ it->PoLine.setPoint(pp-2, b-x, h-y);
+ it->PoLine.setPoint(pp-1, b-x, h-y);
+ pp += 4;
+ }
+ b = ValueToPoint(static_cast<double>(PyFloat_AsDouble(PyList_GetItem(il, len-2))));
+ h = ValueToPoint(static_cast<double>(PyFloat_AsDouble(PyList_GetItem(il, len-1))));
+ it->PoLine.resize(pp);
+ it->PoLine.setPoint(pp-4, b-x, h-y);
+ it->PoLine.setPoint(pp-3, b-x, h-y);
+ it->PoLine.setPoint(pp-2, b-x, h-y);
+ it->PoLine.setPoint(pp-1, b-x, h-y);
+ pp += 2;
+ it->PoLine.resize(pp);
+ it->PoLine.setPoint(pp-2, 0, 0);
+ it->PoLine.setPoint(pp-1, 0, 0);
+ FPoint np2 = doc->ActPage->GetMinClipF(it->PoLine);
+ if (np2.x() < 0)
+ {
+ it->PoLine.translate(-np2.x(), 0);
+ doc->ActPage->MoveItem(np2.x(), 0, it);
+ }
+ if (np2.y() < 0)
+ {
+ it->PoLine.translate(0, -np2.y());
+ doc->ActPage->MoveItem(0, np2.y(), it);
+ }
+ doc->ActPage->SizeItem(it->PoLine.WidthHeight().x(), it->PoLine.WidthHeight().y(), ic, false, false);
+ doc->ActPage->AdjustItemSize(it);
+ if (Name != "")
+ it->AnName = QString(Name);
+ return PyString_FromString(it->AnName);
+}
+
+PyObject *scribus_bezierline(PyObject *self, PyObject* args)
+{
+ double x, y, b, h, kx, ky, kx2, ky2;
+ int i = 0;
+ int ic, pp, len;
+ char *Name = "";
+ PyObject *il;
+ if ((!PyArg_ParseTuple(args, "O|s", &il, &Name)) || (!PyList_Check(il)))
+ return NULL;
+ if (!Carrier->HaveDoc)
+ return PyString_FromString("");
+ len = PyList_Size(il);
+ if ((len < 8) || ((len % 6) != 0))
+ return PyString_FromString("");
+ x = ValueToPoint(static_cast<double>(PyFloat_AsDouble(PyList_GetItem(il, i))));
+ i++;
+ y = ValueToPoint(static_cast<double>(PyFloat_AsDouble(PyList_GetItem(il, i))));
+ i++;
+ kx = ValueToPoint(static_cast<double>(PyFloat_AsDouble(PyList_GetItem(il, i))));
+ i++;
+ ky = ValueToPoint(static_cast<double>(PyFloat_AsDouble(PyList_GetItem(il, i))));
+ i++;
+ kx2 = ValueToPoint(static_cast<double>(PyFloat_AsDouble(PyList_GetItem(il, i))));
+ i++;
+ ky2 = ValueToPoint(static_cast<double>(PyFloat_AsDouble(PyList_GetItem(il, i))));
+ i++;
+ ic = doc->ActPage->PaintPolyLine(x, y, 1, 1, doc->Dwidth, doc->Dbrush, doc->Dpen);
+ PageItem *it = doc->ActPage->Items.at(ic);
+ it->PoLine.resize(2);
+ it->PoLine.setPoint(0, 0, 0);
+ it->PoLine.setPoint(1, kx-x, ky-y);
+ pp = 6;
+ for (i = 6; i < len - 6; i += 6)
+ {
+ b = ValueToPoint(static_cast<double>(PyFloat_AsDouble(PyList_GetItem(il, i))));
+ h = ValueToPoint(static_cast<double>(PyFloat_AsDouble(PyList_GetItem(il, i+1))));
+ kx = ValueToPoint(static_cast<double>(PyFloat_AsDouble(PyList_GetItem(il, i+2))));
+ ky = ValueToPoint(static_cast<double>(PyFloat_AsDouble(PyList_GetItem(il, i+3))));
+ kx2 = ValueToPoint(static_cast<double>(PyFloat_AsDouble(PyList_GetItem(il, i+4))));
+ ky2 = ValueToPoint(static_cast<double>(PyFloat_AsDouble(PyList_GetItem(il, i+5))));
+ it->PoLine.resize(pp);
+ it->PoLine.setPoint(pp-4, b-x, h-y);
+ it->PoLine.setPoint(pp-3, kx-x, ky-y);
+ it->PoLine.setPoint(pp-2, it->PoLine.point(pp-4));
+ it->PoLine.setPoint(pp-1, kx2-x, ky2-y);
+ pp += 4;
+ }
+ pp -= 2;
+ b = ValueToPoint(static_cast<double>(PyFloat_AsDouble(PyList_GetItem(il, len-6))));
+ h = ValueToPoint(static_cast<double>(PyFloat_AsDouble(PyList_GetItem(il, len-5))));
+ kx = ValueToPoint(static_cast<double>(PyFloat_AsDouble(PyList_GetItem(il, len-4))));
+ ky = ValueToPoint(static_cast<double>(PyFloat_AsDouble(PyList_GetItem(il, len-3))));
+ it->PoLine.resize(pp);
+ it->PoLine.setPoint(pp-2, b-x, h-y);
+ it->PoLine.setPoint(pp-1, kx-x, ky-y);
+ FPoint np2 = doc->ActPage->GetMinClipF(it->PoLine);
+ if (np2.x() < 0)
+ {
+ it->PoLine.translate(-np2.x(), 0);
+ doc->ActPage->MoveItem(np2.x(), 0, it);
+ }
+ if (np2.y() < 0)
+ {
+ it->PoLine.translate(0, -np2.y());
+ doc->ActPage->MoveItem(0, np2.y(), it);
+ }
+ doc->ActPage->SizeItem(it->PoLine.WidthHeight().x(), it->PoLine.WidthHeight().y(), ic, false, false);
+ doc->ActPage->AdjustItemSize(it);
+ if (Name != "")
+ it->AnName = QString(Name);
+ return PyString_FromString(it->AnName);
+}
+
+PyObject *scribus_pathtext(PyObject *self, PyObject* args)
+{
+ int i, ii;
+ double x, y;
+ char *Name = "";
+ char *TextB = "";
+ char *PolyB = "";
+ if (!PyArg_ParseTuple(args, "ddss|s", &x, &y, &TextB, &PolyB, &Name))
+ return NULL;
+ if ((!Carrier->HaveDoc) || ((TextB == "") || (PolyB == "")))
+ return PyString_FromString("");
+ i = GetItem(QString(TextB));
+ ii = GetItem(QString(PolyB));
+ if ((i == -1) || (ii == -1))
+ return PyString_FromString("");
+ doc->ActPage->SelItem.clear();
+ doc->ActPage->SelItem.append(doc->ActPage->Items.at(i));
+ doc->ActPage->SelItem.append(doc->ActPage->Items.at(ii));
+ PageItem *it = doc->ActPage->Items.at(i);
+ doc->ActPage->ToPathText();
+ doc->ActPage->MoveItem(ValueToPoint(x) - it->Xpos, ValueToPoint(y) - it->Ypos, it);
+ if (Name != "")
+ it->AnName = QString(Name);
+ return PyString_FromString(it->AnName);
+}
+
+PyObject *scribus_deleteobj(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int i;
+ if (!PyArg_ParseTuple(args, "|s", &Name))
+ return NULL;
+ Py_INCREF(Py_None);
+ if (!Carrier->HaveDoc)
+ return Py_None;
+ if (Name != "")
+ {
+ doc->ActPage->SelItem.clear();
+ i = GetItem(QString(Name));
+ if (i != -1)
+ doc->ActPage->SelItem.append(doc->ActPage->Items.at(i));
+ }
+ doc->ActPage->DeleteItem();
+ return Py_None;
+}
+
/trunk/Scribus/scribus/plugins/scriptplugin/cmdobj.cpp
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/cmdpage.cpp
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdpage.cpp (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdpage.cpp (revision 82)
@@ -0,0 +1,93 @@
+#include "cmdvar.h"
+#include "cmdpage.h"
+
+PyObject *scribus_actualpage(PyObject *self, PyObject* args)
+{
+ if (!PyArg_ParseTuple(args, ""))
+ return NULL;
+ if (!Carrier->HaveDoc)
+ return PyInt_FromLong(0L);
+ return PyInt_FromLong(static_cast<long>(Carrier->doc->ActPage->PageNr + 1));
+}
+
+PyObject *scribus_redraw(PyObject *self, PyObject* args)
+{
+ if (!PyArg_ParseTuple(args, ""))
+ return NULL;
+ Py_INCREF(Py_None);
+ if (!Carrier->HaveDoc)
+ return Py_None;
+ Carrier->view->DrawNew();
+ return Py_None;
+}
+
+PyObject *scribus_savepageeps(PyObject *self, PyObject* args)
+{
+ char *Name;
+ if (!PyArg_ParseTuple(args, "s", &Name))
+ return NULL;
+ if (!Carrier->HaveDoc)
+ return PyInt_FromLong(0L);
+ return PyInt_FromLong(static_cast<long>(Carrier->DoSaveAsEps(QString(Name))));
+}
+
+PyObject *scribus_deletepage(PyObject *self, PyObject* args)
+{
+ int e;
+ if (!PyArg_ParseTuple(args, "i", &e))
+ return NULL;
+ 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;
+ Carrier->DeletePage2(e);
+ return Py_None;
+}
+
+PyObject *scribus_gotopage(PyObject *self, PyObject* args)
+{
+ int e;
+ if (!PyArg_ParseTuple(args, "i", &e))
+ return NULL;
+ 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;
+ Carrier->view->GotoPage(e);
+ return Py_None;
+}
+
+PyObject *scribus_newpage(PyObject *self, PyObject* args)
+{
+ int e;
+ char *name = "Normal";
+ if (!PyArg_ParseTuple(args, "i|s", &e, &name))
+ return NULL;
+ Py_INCREF(Py_None);
+ if (!Carrier->HaveDoc)
+ return Py_None;
+ if (e < 0)
+ Carrier->slotNewPageP(Carrier->view->Pages.count(), QString(name));
+ else
+ {
+ e--;
+ if ((e < 0) || (e > static_cast<int>(Carrier->view->Pages.count())-1))
+ return Py_None;
+ Carrier->slotNewPageP(e, QString(name));
+ }
+ return Py_None;
+}
+
+PyObject *scribus_pagecount(PyObject *self, PyObject* args)
+{
+ if (!PyArg_ParseTuple(args, ""))
+ return NULL;
+ if (!Carrier->HaveDoc)
+ return PyInt_FromLong(0L);
+ return PyInt_FromLong(static_cast<long>(Carrier->view->Pages.count()));
+}
+
/trunk/Scribus/scribus/plugins/scriptplugin/cmdpage.cpp
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/cmdutil.cpp
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdutil.cpp (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdutil.cpp (revision 82)
@@ -0,0 +1,70 @@
+#include "cmdutil.h"
+
+ScribusApp* Carrier;
+ScribusDoc* doc;
+
+double PointToValue(double Val)
+{
+ double ret = 0.0;
+ switch (doc->Einheit)
+ {
+ case 0:
+ ret = Val;
+ break;
+ case 1:
+ ret = Val * 0.3527777;
+ break;
+ case 2:
+ ret = Val * (1.0 / 72.0);
+ break;
+ case 3:
+ ret = Val * (1.0 / 12.0);
+ break;
+ }
+ return ret;
+}
+
+double ValToPts(double Val, int ein)
+{
+ double ret = 0.0;
+ switch (ein)
+ {
+ case 0:
+ ret = Val;
+ break;
+ case 1:
+ ret = Val / 0.3527777;
+ break;
+ case 2:
+ ret = Val / (1.0 / 72.0);
+ break;
+ case 3:
+ ret = Val / (1.0 / 12.0);
+ break;
+ }
+ return ret;
+}
+
+double ValueToPoint(double Val)
+{
+ return ValToPts(Val, doc->Einheit);
+}
+
+int GetItem(QString Name)
+{
+ if (Name != "")
+ {
+ for (uint a = 0; a < doc->ActPage->Items.count(); a++)
+ {
+ if (doc->ActPage->Items.at(a)->AnName == Name)
+ return static_cast<int>(a);
+ }
+ }
+ else
+ {
+ if (doc->ActPage->SelItem.count() != 0)
+ return doc->ActPage->SelItem.at(0)->ItemNr;
+ }
+ return -1;
+}
+
/trunk/Scribus/scribus/plugins/scriptplugin/cmdutil.cpp
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/cmdgetprop.cpp
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdgetprop.cpp (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdgetprop.cpp (revision 82)
@@ -0,0 +1,265 @@
+#include "cmdvar.h"
+#include "cmdutil.h"
+#include "cmdgetprop.h"
+
+PyObject *scribus_getfillcolor(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int i;
+ if (!PyArg_ParseTuple(args, "|s", &Name))
+ return NULL;
+ if (!Carrier->HaveDoc)
+ return PyString_FromString("");
+ i = GetItem(QString(Name));
+ if (i != -1)
+ return PyString_FromString(doc->ActPage->Items.at(i)->Pcolor);
+ else
+ return PyString_FromString("");
+}
+
+PyObject *scribus_getlinecolor(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int i;
+ PageItem *it;
+ if (!PyArg_ParseTuple(args, "|s", &Name))
+ return NULL;
+ if (!Carrier->HaveDoc)
+ return PyString_FromString("");
+ i = GetItem(QString(Name));
+ if (i != -1)
+ {
+ it = doc->ActPage->Items.at(i);
+ if ((it->HasSel) && ((it->PType == 4) || (it->PType == 8)))
+ {
+ for (uint b = 0; b < it->Ptext.count(); b++)
+ {
+ if (it->Ptext.at(b)->cselect)
+ return PyString_FromString(it->Ptext.at(b)->ccolor);
+ }
+ }
+ else
+ return PyString_FromString(it->Pcolor2);
+ }
+ return PyString_FromString("");
+}
+
+PyObject *scribus_getlinewidth(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int i;
+ if (!PyArg_ParseTuple(args, "|s", &Name))
+ return NULL;
+ if (!Carrier->HaveDoc)
+ return PyFloat_FromDouble(0.0);
+ i = GetItem(QString(Name));
+ if (i != -1)
+ return PyFloat_FromDouble(static_cast<double>(doc->ActPage->Items.at(i)->Pwidth));
+ else
+ return PyFloat_FromDouble(0.0);
+}
+
+PyObject *scribus_getlineshade(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int i;
+ PageItem *it;
+ if (!PyArg_ParseTuple(args, "|s", &Name))
+ return NULL;
+ if (!Carrier->HaveDoc)
+ return PyInt_FromLong(0L);
+ i = GetItem(QString(Name));
+ if (i != -1)
+ {
+ it = doc->ActPage->Items.at(i);
+ if ((it->HasSel) && ((it->PType == 4) || (it->PType == 8)))
+ {
+ for (uint b = 0; b < it->Ptext.count(); b++)
+ {
+ if (it->Ptext.at(b)->cselect)
+ return PyInt_FromLong(static_cast<long>(it->Ptext.at(b)->cshade));
+ }
+ }
+ else
+ return PyInt_FromLong(static_cast<long>(it->Shade2));
+ }
+ return PyInt_FromLong(0L);
+}
+
+PyObject *scribus_getlinejoin(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int i;
+ if (!PyArg_ParseTuple(args, "|s", &Name))
+ return NULL;
+ if (!Carrier->HaveDoc)
+ return PyInt_FromLong(0L);
+ i = GetItem(QString(Name));
+ if (i != -1)
+ return PyInt_FromLong(static_cast<long>(doc->ActPage->Items.at(i)->PLineJoin));
+ else
+ return PyInt_FromLong(0L);
+}
+
+PyObject *scribus_getlineend(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int i;
+ if (!PyArg_ParseTuple(args, "|s", &Name))
+ return NULL;
+ if (!Carrier->HaveDoc)
+ return PyInt_FromLong(0L);
+ i = GetItem(QString(Name));
+ if (i != -1)
+ return PyInt_FromLong(static_cast<long>(doc->ActPage->Items.at(i)->PLineEnd));
+ else
+ return PyInt_FromLong(0L);
+}
+
+PyObject *scribus_getlinestyle(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int i;
+ if (!PyArg_ParseTuple(args, "|s", &Name))
+ return NULL;
+ if (!Carrier->HaveDoc)
+ return PyInt_FromLong(0L);
+ i = GetItem(QString(Name));
+ if (i != -1)
+ return PyInt_FromLong(static_cast<long>(doc->ActPage->Items.at(i)->PLineArt));
+ else
+ return PyInt_FromLong(0L);
+}
+
+PyObject *scribus_getfillshade(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int i;
+ if (!PyArg_ParseTuple(args, "|s", &Name))
+ return NULL;
+ if (!Carrier->HaveDoc)
+ return PyInt_FromLong(0L);
+ i = GetItem(QString(Name));
+ if (i != -1)
+ return PyInt_FromLong(static_cast<long>(doc->ActPage->Items.at(i)->Shade));
+ else
+ return PyInt_FromLong(0L);
+}
+
+PyObject *scribus_getcornerrad(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int i;
+ if (!PyArg_ParseTuple(args, "|s", &Name))
+ return NULL;
+ if (!Carrier->HaveDoc)
+ return PyInt_FromLong(0L);
+ i = GetItem(QString(Name));
+ if (i != -1)
+ return PyInt_FromLong(static_cast<long>(doc->ActPage->Items.at(i)->RadRect));
+ else
+ return PyInt_FromLong(0L);
+}
+
+PyObject *scribus_getimgscale(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int i;
+ if (!PyArg_ParseTuple(args, "|s", &Name))
+ return NULL;
+ if (!Carrier->HaveDoc)
+ return Py_BuildValue("(ff)", 1.0, 1.0);
+ i = GetItem(QString(Name));
+ if (i != -1)
+ {
+ PageItem *b = doc->ActPage->Items.at(i);
+ return Py_BuildValue("(ff)", b->LocalScX, b->LocalScY);
+ }
+ else
+ return Py_BuildValue("(ff)", 1.0, 1.0);
+}
+
+PyObject *scribus_getimgname(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int i;
+ if (!PyArg_ParseTuple(args, "|s", &Name))
+ return NULL;
+ if (!Carrier->HaveDoc)
+ return PyString_FromString("");
+ i = GetItem(QString(Name));
+ if (i != -1)
+ return PyString_FromString(doc->ActPage->Items.at(i)->Pfile);
+ else
+ return PyString_FromString("");
+}
+
+PyObject *scribus_getposi(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int i;
+ if (!PyArg_ParseTuple(args, "|s", &Name))
+ return NULL;
+ if (!Carrier->HaveDoc)
+ return Py_BuildValue("(ff)", 0.0, 0.0);
+ i = GetItem(QString(Name));
+ if (i != -1)
+ {
+ PageItem *it = doc->ActPage->Items.at(i);
+ return Py_BuildValue("(ff)", PointToValue(it->Xpos), PointToValue(it->Ypos));
+ }
+ else
+ return Py_BuildValue("(ff)", 0.0, 0.0);
+}
+
+PyObject *scribus_getsize(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int i;
+ if (!PyArg_ParseTuple(args, "|s", &Name))
+ return NULL;
+ if (!Carrier->HaveDoc)
+ return Py_BuildValue("(ff)", 0.0, 0.0);
+ i = GetItem(QString(Name));
+ if (i != -1)
+ {
+ PageItem *it = doc->ActPage->Items.at(i);
+ return Py_BuildValue("(ff)", PointToValue(it->Width), PointToValue(it->Height));
+ }
+ else
+ return Py_BuildValue("(ff)", 0.0, 0.0);
+}
+
+PyObject *scribus_getrotation(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int i;
+ if (!PyArg_ParseTuple(args, "|s", &Name))
+ return NULL;
+ if (!Carrier->HaveDoc)
+ return PyFloat_FromDouble(0.0);
+ i = GetItem(QString(Name));
+ if (i != -1)
+ return PyFloat_FromDouble(static_cast<double>(doc->ActPage->Items.at(i)->Rot * -1));
+ else
+ return PyFloat_FromDouble(0.0);
+}
+
+PyObject *scribus_getallobj(PyObject *self, PyObject* args)
+{
+ PyObject *l;
+ if (!PyArg_ParseTuple(args, ""))
+ return NULL;
+ if (Carrier->HaveDoc)
+ {
+ l = PyList_New(doc->ActPage->Items.count());
+ for (uint lam=0; lam < doc->ActPage->Items.count(); lam++)
+ {
+ PyList_SetItem(l, lam, PyString_FromString(doc->ActPage->Items.at(lam)->AnName));
+ }
+ }
+ else
+ l = PyList_New(0);
+ return l;
+}
+
/trunk/Scribus/scribus/plugins/scriptplugin/cmdgetprop.cpp
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/cmdcolor.h
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdcolor.h (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdcolor.h (revision 82)
@@ -0,0 +1,16 @@
+#ifndef CMDCOLOR_H
+#define CMDCOLOR_H
+
+#include <Python.h>
+
+/** Managing Colors */
+void ReplaceColor(QString col, QString rep);
+PyObject *scribus_colornames(PyObject *self, PyObject* args);
+PyObject *scribus_getcolor(PyObject *self, PyObject* args);
+PyObject *scribus_setcolor(PyObject *self, PyObject* args);
+PyObject *scribus_newcolor(PyObject *self, PyObject* args);
+PyObject *scribus_delcolor(PyObject *self, PyObject* args);
+PyObject *scribus_replcolor(PyObject *self, PyObject* args);
+
+#endif
+
/trunk/Scribus/scribus/plugins/scriptplugin/cmdcolor.h
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/cmdmani.cpp
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdmani.cpp (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdmani.cpp (revision 82)
@@ -0,0 +1,269 @@
+#include "cmdvar.h"
+#include "cmdutil.h"
+#include "cmdmani.h"
+
+PyObject *scribus_loadimage(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ char *Image;
+ int i;
+ if (!PyArg_ParseTuple(args, "s|s", &Image, &Name))
+ return NULL;
+ Py_INCREF(Py_None);
+ if (!Carrier->HaveDoc)
+ return Py_None;
+ i = GetItem(QString(Name));
+ if (i != -1)
+ doc->ActPage->LoadPict(QString(Image), i);
+ return Py_None;
+}
+
+PyObject *scribus_scaleimage(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ double x, y;
+ int i;
+ if (!PyArg_ParseTuple(args, "dd|s", &x, &y, &Name))
+ return NULL;
+ Py_INCREF(Py_None);
+ if (!Carrier->HaveDoc)
+ return Py_None;
+ i = GetItem(QString(Name));
+ if ((i != -1) && (doc->ActPage->Items.at(i)->PType == 2))
+ {
+ PageItem *b = doc->ActPage->Items.at(i);
+ b->LocalScX = x;
+ b->LocalScY = y;
+ }
+ return Py_None;
+}
+
+PyObject *scribus_moveobjrel(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ double x, y;
+ int i;
+ if (!PyArg_ParseTuple(args, "dd|s", &x, &y, &Name))
+ return NULL;
+ Py_INCREF(Py_None);
+ if (!Carrier->HaveDoc)
+ return Py_None;
+ i = GetItem(QString(Name));
+ if (i != -1)
+ {
+ if (doc->ActPage->GroupSel)
+ doc->ActPage->moveGroup(ValueToPoint(x), ValueToPoint(y));
+ else
+ doc->ActPage->MoveItem(ValueToPoint(x), ValueToPoint(y), doc->ActPage->Items.at(i));
+ }
+ return Py_None;
+}
+
+PyObject *scribus_moveobjabs(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ double x, y, x2, y2, w, h;
+ int i;
+ if (!PyArg_ParseTuple(args, "dd|s", &x, &y, &Name))
+ return NULL;
+ Py_INCREF(Py_None);
+ if (!Carrier->HaveDoc)
+ return Py_None;
+ i = GetItem(QString(Name));
+ if (i != -1)
+ {
+ if (doc->ActPage->GroupSel)
+ {
+ doc->ActPage->getGroupRect(&x2, &y2, &w, &h);
+ doc->ActPage->moveGroup(ValueToPoint(x) - x2, ValueToPoint(y) - y2);
+ }
+ else
+ {
+ PageItem *b = doc->ActPage->Items.at(i);
+ doc->ActPage->MoveItem(ValueToPoint(x) - b->Xpos, ValueToPoint(y) - b->Ypos, b);
+ }
+ }
+ return Py_None;
+}
+
+PyObject *scribus_rotobjrel(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ double x;
+ int i;
+ if (!PyArg_ParseTuple(args, "d|s", &x, &Name))
+ return NULL;
+ Py_INCREF(Py_None);
+ if (!Carrier->HaveDoc)
+ return Py_None;
+ i = GetItem(QString(Name));
+ if (i != -1)
+ doc->ActPage->RotateItem(doc->ActPage->Items.at(i)->Rot - x, i);
+ return Py_None;
+}
+
+PyObject *scribus_rotobjabs(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ double x;
+ int i;
+ if (!PyArg_ParseTuple(args, "d|s", &x, &Name))
+ return NULL;
+ Py_INCREF(Py_None);
+ if (!Carrier->HaveDoc)
+ return Py_None;
+ i = GetItem(QString(Name));
+ if (i != -1)
+ doc->ActPage->RotateItem(x * -1.0, i);
+ return Py_None;
+}
+
+PyObject *scribus_sizeobjabs(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ double x, y;
+ int i;
+ if (!PyArg_ParseTuple(args, "dd|s", &x, &y, &Name))
+ return NULL;
+ Py_INCREF(Py_None);
+ if (!Carrier->HaveDoc)
+ return Py_None;
+ i = GetItem(QString(Name));
+ if (i != -1)
+ {
+ PageItem *b = doc->ActPage->Items.at(i);
+ doc->ActPage->SizeItem(ValueToPoint(x) - b->Xpos, ValueToPoint(y) - b->Ypos, i);
+ }
+ return Py_None;
+}
+
+PyObject *scribus_groupobj(PyObject *self, PyObject* args)
+{
+ int i = 0;
+ int ic, len;
+ char *Name = "";
+ PyObject *il = 0;
+ if (!PyArg_ParseTuple(args, "|O", &il))
+ return NULL;
+ if (il != 0)
+ {
+ if (!PyList_Check(il))
+ return NULL;
+ Py_INCREF(Py_None);
+ if (!Carrier->HaveDoc)
+ return Py_None;
+ len = PyList_Size(il);
+ if (len == 0)
+ return Py_None;
+ for (i = 0; i < len; i++)
+ {
+ Name = PyString_AsString(PyList_GetItem(il, i));
+ ic = GetItem(QString(Name));
+ if (ic != -1)
+ doc->ActPage->SelectItemNr(ic);
+ }
+ }
+ else
+ {
+ Py_INCREF(Py_None);
+ if (!Carrier->HaveDoc)
+ return Py_None;
+ }
+ if (doc->ActPage->SelItem.count() != 0)
+ {
+ Carrier->GroupObj();
+ doc->ActPage->Deselect();
+ }
+ return Py_None;
+}
+
+PyObject *scribus_ungroupobj(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int i;
+ if (!PyArg_ParseTuple(args, "|s", &Name))
+ return NULL;
+ Py_INCREF(Py_None);
+ if (!Carrier->HaveDoc)
+ return Py_None;
+ i = GetItem(QString(Name));
+ if (i != -1)
+ Carrier->UnGroupObj();
+ return Py_None;
+}
+
+PyObject *scribus_scalegroup(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ double sc;
+ int i, h;
+ if (!PyArg_ParseTuple(args, "d|s", &sc, &Name))
+ return NULL;
+ Py_INCREF(Py_None);
+ if (!Carrier->HaveDoc)
+ return Py_None;
+ else
+ if (sc == 0.0)
+ return Py_None;
+ i = GetItem(QString(Name));
+ if (i != -1)
+ {
+ doc->ActPage->Deselect();
+ doc->ActPage->SelectItemNr(i);
+ h = doc->ActPage->HowTo;
+ doc->ActPage->HowTo = 1;
+ doc->ActPage->scaleGroup(sc, sc);
+ doc->ActPage->HowTo = h;
+ }
+ return Py_None;
+}
+
+PyObject *scribus_getselobjnam(PyObject *self, PyObject* args)
+{
+ int i = 0;
+ if (!PyArg_ParseTuple(args, "|i", &i))
+ return NULL;
+ if (!Carrier->HaveDoc)
+ return PyString_FromString("");
+ if ((i < static_cast<int>(doc->ActPage->SelItem.count())) && (i > -1))
+ return PyString_FromString(doc->ActPage->SelItem.at(i)->AnName);
+ else
+ return PyString_FromString("");
+}
+
+PyObject *scribus_selcount(PyObject *self, PyObject* args)
+{
+ if (!PyArg_ParseTuple(args, ""))
+ return NULL;
+ if (!Carrier->HaveDoc)
+ return PyInt_FromLong(0L);
+ return PyInt_FromLong(static_cast<long>(doc->ActPage->SelItem.count()));
+}
+
+PyObject *scribus_selectobj(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int i;
+ if (!PyArg_ParseTuple(args, "s", &Name))
+ return NULL;
+ Py_INCREF(Py_None);
+ if (!Carrier->HaveDoc)
+ return Py_None;
+ if (Name == "")
+ return Py_None;
+ i = GetItem(QString(Name));
+ if (i != -1)
+ doc->ActPage->SelectItemNr(i);
+ return Py_None;
+}
+
+PyObject *scribus_deselect(PyObject *self, PyObject* args)
+{
+ if (!PyArg_ParseTuple(args, ""))
+ return NULL;
+ Py_INCREF(Py_None);
+ if (Carrier->HaveDoc)
+ doc->ActPage->Deselect();
+ return Py_None;
+}
+
/trunk/Scribus/scribus/plugins/scriptplugin/cmdmani.cpp
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/cmdtext.cpp
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdtext.cpp (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdtext.cpp (revision 82)
@@ -0,0 +1,481 @@
+#include "cmdvar.h"
+#include "cmdutil.h"
+#include "cmdtext.h"
+
+PyObject *scribus_getfontsize(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int i;
+ PageItem *it;
+ if (!PyArg_ParseTuple(args, "|s", &Name))
+ return NULL;
+ if (!Carrier->HaveDoc)
+ return PyInt_FromLong(0L);
+ i = GetItem(QString(Name));
+ if (i != -1)
+ {
+ it = doc->ActPage->Items.at(i);
+ if (it->HasSel)
+ {
+ for (uint b = 0; b < it->Ptext.count(); b++)
+ {
+ if (it->Ptext.at(b)->cselect)
+ return PyInt_FromLong(static_cast<long>(it->Ptext.at(b)->csize));
+ }
+ }
+ else
+ return PyInt_FromLong(static_cast<long>(it->ISize));
+ }
+ return PyInt_FromLong(0L);
+}
+
+PyObject *scribus_getfont(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int i;
+ PageItem *it;
+ if (!PyArg_ParseTuple(args, "|s", &Name))
+ return NULL;
+ if (!Carrier->HaveDoc)
+ return PyString_FromString("");
+ i = GetItem(QString(Name));
+ if (i != -1)
+ {
+ it = doc->ActPage->Items.at(i);
+ if (it->HasSel)
+ {
+ for (uint b = 0; b < it->Ptext.count(); b++)
+ {
+ if (it->Ptext.at(b)->cselect)
+ return PyString_FromString(it->Ptext.at(b)->cfont);
+ }
+ }
+ else
+ return PyString_FromString(it->IFont);
+ }
+ return PyString_FromString("");
+}
+
+PyObject *scribus_gettextsize(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int i;
+ if (!PyArg_ParseTuple(args, "|s", &Name))
+ return NULL;
+ if (!Carrier->HaveDoc)
+ return PyInt_FromLong(0L);
+ i = GetItem(QString(Name));
+ if (i != -1)
+ return PyInt_FromLong(static_cast<long>(doc->ActPage->Items.at(i)->Ptext.count()));
+ else
+ return PyInt_FromLong(0L);
+}
+
+PyObject *scribus_getlinespace(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int i;
+ if (!PyArg_ParseTuple(args, "|s", &Name))
+ return NULL;
+ if (!Carrier->HaveDoc)
+ return PyFloat_FromDouble(0.0);
+ i = GetItem(QString(Name));
+ if (i != -1)
+ return PyFloat_FromDouble(static_cast<double>(doc->ActPage->Items.at(i)->LineSp));
+ else
+ return PyFloat_FromDouble(0.0);
+}
+
+PyObject *scribus_gettext(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int i;
+ QString text = "";
+ PageItem *it;
+ if (!PyArg_ParseTuple(args, "|s", &Name))
+ return NULL;
+ if (!Carrier->HaveDoc)
+ return PyString_FromString("");
+ i = GetItem(QString(Name));
+ if (i != -1)
+ {
+ it = doc->ActPage->Items.at(i);
+ for (uint a = 0; a < it->Ptext.count(); a++)
+ {
+ if (it->HasSel)
+ {
+ if (it->Ptext.at(a)->cselect)
+ text += it->Ptext.at(a)->ch;
+ }
+ else
+ text += it->Ptext.at(a)->ch;
+ }
+ return PyString_FromString(text);
+ }
+ else
+ return PyString_FromString("");
+}
+
+PyObject *scribus_setboxtext(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ char *Text;
+ int i;
+ PageItem *it;
+ PageItem *nb;
+ struct Pti *hg;
+ if (!PyArg_ParseTuple(args, "s|s", &Text, &Name))
+ return NULL;
+ Py_INCREF(Py_None);
+ if (!Carrier->HaveDoc)
+ return Py_None;
+ i = GetItem(QString(Name));
+ QString Daten = QString(Text);
+ if (i != -1)
+ {
+ it = doc->ActPage->Items.at(i);
+ if (it->NextBox != 0)
+ {
+ nb = it->NextBox;
+ while (nb != 0)
+ {
+ nb->Ptext.clear();
+ nb->CPos = 0;
+ nb->Dirty = true;
+ nb = nb->NextBox;
+ }
+ }
+ it->Ptext.clear();
+ for (uint a = 0; a < Daten.length(); a++)
+ {
+ hg = new Pti;
+ hg->ch = Daten.at(a);
+ if (hg->ch == QChar(10)) { hg->ch = QChar(13); }
+ if (hg->ch == QChar(9)) { hg->ch = " "; }
+ hg->cfont = it->IFont;
+ hg->csize = it->ISize;
+ hg->ccolor = it->TxtFill;
+ hg->cshade = it->ShTxtFill;
+ hg->cstroke = it->TxtStroke;
+ hg->cshade2 = it->ShTxtStroke;
+ hg->cscale = it->TxtScale;
+ hg->cextra = 0;
+ hg->cselect = false;
+ hg->cstyle = 0;
+ hg->cab = doc->CurrentABStil;
+ hg->xp = 0;
+ hg->yp = 0;
+ hg->PRot = 0;
+ hg->PtransX = 0;
+ hg->PtransY = 0;
+ it->Ptext.append(hg);
+ }
+ }
+ return Py_None;
+}
+
+PyObject *scribus_inserttext(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ char *Text;
+ int i, pos;
+ PageItem *it;
+ struct Pti *hg;
+ if (!PyArg_ParseTuple(args, "si|s", &Text, &pos, &Name))
+ return NULL;
+ Py_INCREF(Py_None);
+ if (!Carrier->HaveDoc)
+ return Py_None;
+ i = GetItem(QString(Name));
+ QString Daten = QString(Text);
+ if (i != -1)
+ {
+ it = doc->ActPage->Items.at(i);
+ if ((pos < 0) && (pos > static_cast<int>(it->Ptext.count())))
+ return Py_None;
+ for (uint a = 0; a < Daten.length(); a++)
+ {
+ hg = new Pti;
+ hg->ch = Daten.at(Daten.length()-1-a);
+ if (hg->ch == QChar(10)) { hg->ch = QChar(13); }
+ if (hg->ch == QChar(9)) { hg->ch = " "; }
+ hg->cfont = it->IFont;
+ hg->csize = it->ISize;
+ hg->ccolor = it->TxtFill;
+ hg->cshade = it->ShTxtFill;
+ hg->cstroke = it->TxtStroke;
+ hg->cshade2 = it->ShTxtStroke;
+ hg->cscale = it->TxtScale;
+ hg->cextra = 0;
+ hg->cselect = false;
+ hg->cstyle = 0;
+ hg->cab = doc->CurrentABStil;
+ hg->xp = 0;
+ hg->yp = 0;
+ hg->PRot = 0;
+ hg->PtransX = 0;
+ hg->PtransY = 0;
+ it->Ptext.insert(pos, hg);
+ }
+ it->CPos = pos + Daten.length();
+ it->Dirty = true;
+ it->paintObj();
+ }
+ return Py_None;
+}
+
+PyObject *scribus_setalign(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int i, size, Apm;
+ if (!PyArg_ParseTuple(args, "i|s", &size, &Name))
+ return NULL;
+ Py_INCREF(Py_None);
+ if (!Carrier->HaveDoc)
+ return Py_None;
+ i = GetItem(QString(Name));
+ if ((size > 3) || (size < 0))
+ return Py_None;
+ if ((i != -1) && (doc->ActPage->Items.at(i)->PType == 4))
+ {
+ Apm = doc->AppMode;
+ doc->ActPage->SelItem.clear();
+ doc->ActPage->SelItem.append(doc->ActPage->Items.at(i));
+ if (doc->ActPage->Items.at(i)->HasSel)
+ doc->AppMode = 7;
+ Carrier->setNewAbStyle(size);
+ doc->AppMode = Apm;
+ doc->ActPage->Deselect();
+ }
+ return Py_None;
+}
+
+PyObject *scribus_setfontsize(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int i, size, Apm;
+ if (!PyArg_ParseTuple(args, "i|s", &size, &Name))
+ return NULL;
+ Py_INCREF(Py_None);
+ if (!Carrier->HaveDoc)
+ return Py_None;
+ i = GetItem(QString(Name));
+ if ((size > 512) || (size < 1))
+ return Py_None;
+ if ((i != -1) && (doc->ActPage->Items.at(i)->PType == 4))
+ {
+ Apm = doc->AppMode;
+ doc->ActPage->SelItem.clear();
+ doc->ActPage->SelItem.append(doc->ActPage->Items.at(i));
+ if (doc->ActPage->Items.at(i)->HasSel)
+ doc->AppMode = 7;
+ doc->ActPage->chFSize(size);
+ doc->AppMode = Apm;
+ doc->ActPage->Deselect();
+ }
+ return Py_None;
+}
+
+PyObject *scribus_setfont(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ char *Font = "";
+ int i, Apm;
+ if (!PyArg_ParseTuple(args, "s|s", &Font, &Name))
+ return NULL;
+ Py_INCREF(Py_None);
+ if (!Carrier->HaveDoc)
+ return Py_None;
+ i = GetItem(QString(Name));
+ if ((i != -1) && (doc->ActPage->Items.at(i)->PType == 4))
+ {
+ if (Carrier->Prefs.AvailFonts.find(QString(Font)))
+ {
+ Apm = doc->AppMode;
+ doc->ActPage->SelItem.clear();
+ doc->ActPage->SelItem.append(doc->ActPage->Items.at(i));
+ if (doc->ActPage->Items.at(i)->HasSel)
+ doc->AppMode = 7;
+ Carrier->SetNewFont(QString(Font));
+ doc->AppMode = Apm;
+ doc->ActPage->Deselect();
+ }
+ }
+ return Py_None;
+}
+
+PyObject *scribus_setlinespace(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ double w;
+ int i;
+ if (!PyArg_ParseTuple(args, "d|s", &w, &Name))
+ return NULL;
+ Py_INCREF(Py_None);
+ if ((!Carrier->HaveDoc) || (w < 0.1))
+ return Py_None;
+ i = GetItem(QString(Name));
+ if (i != -1)
+ doc->ActPage->Items.at(i)->LineSp = w;
+ return Py_None;
+}
+
+PyObject *scribus_selecttext(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int i, start, ende;
+ PageItem *it;
+ if (!PyArg_ParseTuple(args, "ii|s", &start, &ende, &Name))
+ return NULL;
+ Py_INCREF(Py_None);
+ if (!Carrier->HaveDoc)
+ return Py_None;
+ i = GetItem(QString(Name));
+ if (i != -1)
+ {
+ it = doc->ActPage->Items.at(i);
+ if ((start < 0) || ((start + ende) > static_cast<int>(it->Ptext.count()-1)))
+ return Py_None;
+ for (uint a = 0; a < it->Ptext.count(); a++)
+ {
+ it->Ptext.at(a)->cselect = false;
+ }
+ if (ende == 0)
+ {
+ it->HasSel = false;
+ return Py_None;
+ }
+ for (int aa = start; aa < (start + ende); aa++)
+ {
+ it->Ptext.at(aa)->cselect = true;
+ }
+ it->HasSel = true;
+ return Py_None;
+ }
+ else
+ return Py_None;
+}
+
+PyObject *scribus_deletetext(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int i;
+ PageItem *it;
+ if (!PyArg_ParseTuple(args, "|s", &Name))
+ return NULL;
+ Py_INCREF(Py_None);
+ if (!Carrier->HaveDoc)
+ return Py_None;
+ i = GetItem(QString(Name));
+ if (i != -1)
+ {
+ it = doc->ActPage->Items.at(i);
+ if (it->HasSel)
+ Carrier->DeleteSel(it);
+ else
+ {
+ it->Ptext.clear();
+ it->CPos = 0;
+ }
+ }
+ return Py_None;
+}
+
+PyObject *scribus_settextfill(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ char *Color;
+ int i;
+ PageItem *it;
+ if (!PyArg_ParseTuple(args, "s|s", &Color, &Name))
+ return NULL;
+ Py_INCREF(Py_None);
+ if (!Carrier->HaveDoc)
+ return Py_None;
+ i = GetItem(QString(Name));
+ if (i != -1)
+ {
+ it = doc->ActPage->Items.at(i);
+ if ((it->PType == 4) || (it->PType == 8))
+ {
+ for (uint b = 0; b < it->Ptext.count(); b++)
+ {
+ if (it->HasSel)
+ {
+ if (it->Ptext.at(b)->cselect)
+ it->Ptext.at(b)->ccolor = QString(Color);
+ }
+ else
+ it->Ptext.at(b)->ccolor = QString(Color);
+ }
+ it->TxtFill = QString(Color);
+ }
+ }
+ return Py_None;
+}
+
+PyObject *scribus_settextstroke(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ char *Color;
+ int i;
+ PageItem *it;
+ if (!PyArg_ParseTuple(args, "s|s", &Color, &Name))
+ return NULL;
+ Py_INCREF(Py_None);
+ if (!Carrier->HaveDoc)
+ return Py_None;
+ i = GetItem(QString(Name));
+ if (i != -1)
+ {
+ it = doc->ActPage->Items.at(i);
+ if ((it->PType == 4) || (it->PType == 8))
+ {
+ for (uint b = 0; b < it->Ptext.count(); b++)
+ {
+ if (it->HasSel)
+ {
+ if (it->Ptext.at(b)->cselect)
+ it->Ptext.at(b)->cstroke = QString(Color);
+ }
+ else
+ it->Ptext.at(b)->cstroke = QString(Color);
+ }
+ it->TxtStroke = QString(Color);
+ }
+ }
+ return Py_None;
+}
+
+PyObject *scribus_settextshade(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int i, w;
+ PageItem *it;
+ if (!PyArg_ParseTuple(args, "i|s", &w, &Name))
+ return NULL;
+ Py_INCREF(Py_None);
+ if ((!Carrier->HaveDoc) || ((w < 0) || (w > 100)))
+ return Py_None;
+ i = GetItem(QString(Name));
+ if (i != -1)
+ {
+ it = doc->ActPage->Items.at(i);
+ if ((it->PType == 4) || (it->PType == 8))
+ {
+ for (uint b = 0; b < it->Ptext.count(); b++)
+ {
+ if (it->HasSel)
+ {
+ if (it->Ptext.at(b)->cselect)
+ it->Ptext.at(b)->cshade = w;
+ }
+ else
+ it->Ptext.at(b)->cshade = w;
+ }
+ }
+ it->ShTxtFill = w;
+ }
+ return Py_None;
+}
+
/trunk/Scribus/scribus/plugins/scriptplugin/cmdtext.cpp
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/conswin.cpp
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/conswin.cpp (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/conswin.cpp (revision 82)
@@ -0,0 +1,96 @@
+/***************************************************************************
+ conswin.cpp - description
+ -------------------
+ begin : Mon Okt 14 2002
+ copyright : (C) 2002 by Franz Schmid
+ email : Franz.Schmid@altmuehlnet.de
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#include "conswin.h"
+#include "conswin.moc"
+
+ConsWin::ConsWin(QWidget* parent) : QTextEdit(parent)
+{
+ setTextFormat(Qt::PlainText);
+ setText(">>>");
+ Prompt = ">>>";
+ moveCursor(QTextEdit::MoveEnd, false);
+ LastComm = "";
+}
+
+void ConsWin::keyPressEvent(QKeyEvent *k)
+{
+ int p, i;
+ getCursorPosition(&p, &i);
+ if ((k->key() == Key_Left) || (k->key() == Key_Backspace))
+ {
+ if (i < 4)
+ return;
+ }
+ if (k->key() == Key_Delete)
+ {
+ if (p != paragraphs()-1)
+ return;
+ }
+ if ((k->key() == Key_Home) || (k->key() == Key_Prior) || (k->key() == Key_Next) || (k->key() == Key_Backtab))
+ return;
+ if ((k->key() == Key_Return) || (k->key() == Key_Enter))
+ {
+ if ((text(p).startsWith(">>>")) || (text(p).startsWith("...")))
+ {
+ LastComm = text(p).remove(0, 3);
+ LastComm = LastComm.mid(0, LastComm.length()-1);
+ }
+ else
+ LastComm = "";
+ if (p == paragraphs()-1)
+ emit returnPressed();
+ else
+ {
+ removeParagraph(paragraphs()-1);
+ insertParagraph(Prompt+LastComm, -1);
+ moveCursor(QTextEdit::MoveEnd, false);
+ }
+ return;
+ }
+ QTextEdit::keyPressEvent(k);
+ getCursorPosition(&p, &i);
+ if (((text(p).startsWith(">>>")) || (text(p).startsWith("..."))) && (i < 3))
+ setCursorPosition(p, 3);
+}
+
+void ConsWin::contentsMousePressEvent(QMouseEvent *m)
+{
+ int p, i;
+ QTextEdit::contentsMousePressEvent(m);
+ i = charAt(m->pos(), &p);
+ if (((text(p).startsWith(">>>")) || (text(p).startsWith("..."))) && (i < 3))
+ setCursorPosition(p, 3);
+ else
+ setCursorPosition(p, i);
+ return;
+}
+
+void ConsWin::contentsMouseReleaseEvent(QMouseEvent *)
+{
+ return;
+}
+
+void ConsWin::contentsMouseMoveEvent(QMouseEvent *)
+{
+ return;
+}
+
+void ConsWin::contentsMouseDoubleClickEvent(QMouseEvent *)
+{
+ return;
+}
/trunk/Scribus/scribus/plugins/scriptplugin/conswin.cpp
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/cmdsetprop.cpp
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdsetprop.cpp (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdsetprop.cpp (revision 82)
@@ -0,0 +1,206 @@
+#include "cmdvar.h"
+#include "cmdutil.h"
+#include "cmdsetprop.h"
+
+PyObject *scribus_setgradfill(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ char *Color1;
+ char *Color2;
+ int i, typ, shade1, shade2;
+ if (!PyArg_ParseTuple(args, "isisi|s", &typ, &Color1, &shade1, &Color2, &shade2, &Name))
+ return NULL;
+ Py_INCREF(Py_None);
+ if (!Carrier->HaveDoc)
+ return Py_None;
+ i = GetItem(QString(Name));
+ if (i != -1)
+ {
+ doc->ActPage->Items.at(i)->GrColor2 = QString(Color1);
+ doc->ActPage->Items.at(i)->GrShade2 = shade1;
+ doc->ActPage->Items.at(i)->GrColor = QString(Color2);
+ doc->ActPage->Items.at(i)->GrShade = shade2;
+ doc->ActPage->Items.at(i)->GrType = typ;
+// doc->ActPage->UpdateGradient(doc->ActPage->Items.at(i));
+ doc->ActPage->RefreshItem(doc->ActPage->Items.at(i));
+ }
+ return Py_None;
+}
+
+PyObject *scribus_setfillcolor(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ char *Color;
+ int i;
+ if (!PyArg_ParseTuple(args, "s|s", &Color, &Name))
+ return NULL;
+ Py_INCREF(Py_None);
+ if (!Carrier->HaveDoc)
+ return Py_None;
+ i = GetItem(QString(Name));
+ if (i != -1)
+ doc->ActPage->Items.at(i)->Pcolor = QString(Color);
+ return Py_None;
+}
+
+PyObject *scribus_setlinecolor(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ char *Color;
+ int i;
+ PageItem *it;
+ if (!PyArg_ParseTuple(args, "s|s", &Color, &Name))
+ return NULL;
+ Py_INCREF(Py_None);
+ if (!Carrier->HaveDoc)
+ return Py_None;
+ i = GetItem(QString(Name));
+ if (i != -1)
+ {
+ it = doc->ActPage->Items.at(i);
+ it->Pcolor2 = QString(Color);
+ }
+ return Py_None;
+}
+
+PyObject *scribus_setlinewidth(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ double w;
+ int i;
+ if (!PyArg_ParseTuple(args, "d|s", &w, &Name))
+ return NULL;
+ Py_INCREF(Py_None);
+ if ((!Carrier->HaveDoc) || ((w < 0.0) || (w > 12.0)))
+ return Py_None;
+ i = GetItem(QString(Name));
+ if (i != -1)
+ doc->ActPage->Items.at(i)->Pwidth = w;
+ return Py_None;
+}
+
+PyObject *scribus_setlineshade(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int i, w;
+ PageItem *it;
+ if (!PyArg_ParseTuple(args, "i|s", &w, &Name))
+ return NULL;
+ Py_INCREF(Py_None);
+ if ((!Carrier->HaveDoc) || ((w < 0) || (w > 100)))
+ return Py_None;
+ i = GetItem(QString(Name));
+ if (i != -1)
+ {
+ it = doc->ActPage->Items.at(i);
+ it->Shade2 = w;
+ }
+ return Py_None;
+}
+
+PyObject *scribus_setfillshade(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int i, w;
+ if (!PyArg_ParseTuple(args, "i|s", &w, &Name))
+ return NULL;
+ Py_INCREF(Py_None);
+ if ((!Carrier->HaveDoc) || ((w < 0) || (w > 100)))
+ return Py_None;
+ i = GetItem(QString(Name));
+ if (i != -1)
+ doc->ActPage->Items.at(i)->Shade = w;
+ return Py_None;
+}
+
+PyObject *scribus_setlinejoin(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int i, w;
+ if (!PyArg_ParseTuple(args, "i|s", &w, &Name))
+ return NULL;
+ Py_INCREF(Py_None);
+ if (!Carrier->HaveDoc)
+ return Py_None;
+ i = GetItem(QString(Name));
+ if (i != -1)
+ doc->ActPage->Items.at(i)->PLineJoin = Qt::PenJoinStyle(w);
+ return Py_None;
+}
+
+PyObject *scribus_setlineend(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int i, w;
+ if (!PyArg_ParseTuple(args, "i|s", &w, &Name))
+ return NULL;
+ Py_INCREF(Py_None);
+ if (!Carrier->HaveDoc)
+ return Py_None;
+ i = GetItem(QString(Name));
+ if (i != -1)
+ doc->ActPage->Items.at(i)->PLineEnd = Qt::PenCapStyle(w);
+ return Py_None;
+}
+
+PyObject *scribus_setlinestyle(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int i, w;
+ if (!PyArg_ParseTuple(args, "i|s", &w, &Name))
+ return NULL;
+ Py_INCREF(Py_None);
+ if (!Carrier->HaveDoc)
+ return Py_None;
+ i = GetItem(QString(Name));
+ if (i != -1)
+ doc->ActPage->Items.at(i)->PLineArt = Qt::PenStyle(w);
+ return Py_None;
+}
+
+PyObject *scribus_setcornerrad(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int i, w;
+ if (!PyArg_ParseTuple(args, "i|s", &w, &Name))
+ return NULL;
+ Py_INCREF(Py_None);
+ if ((!Carrier->HaveDoc) || (w < 0))
+ return Py_None;
+ i = GetItem(QString(Name));
+ if (i != -1)
+ {
+ PageItem *b = doc->ActPage->Items.at(i);
+ if ((b->PType == 2) || (b->PType == 3) || (b->PType == 4))
+ {
+ b->RadRect = w;
+ if (w > 0)
+ doc->ActPage->SetFrameRound(b);
+ else
+ doc->ActPage->SetRectFrame(b);
+ }
+ }
+ return Py_None;
+}
+
+PyObject *scribus_setmultiline(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ char *Color;
+ int i;
+ PageItem *it;
+ if (!PyArg_ParseTuple(args, "s|s", &Color, &Name))
+ return NULL;
+ Py_INCREF(Py_None);
+ if (!Carrier->HaveDoc)
+ return Py_None;
+ i = GetItem(QString(Name));
+ if (i != -1)
+ {
+ PageItem *b = doc->ActPage->Items.at(i);
+ if (Carrier->doc->MLineStyles.contains(QString(Color)))
+ b->NamedLStyle = QString(Color);
+ }
+ return Py_None;
+}
+
/trunk/Scribus/scribus/plugins/scriptplugin/cmdsetprop.cpp
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/cmdvar.h
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdvar.h (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdvar.h (revision 82)
@@ -0,0 +1,11 @@
+#ifndef CMDVAR_H
+#define CMDVAR_H
+
+#include "scribus.h"
+
+/* Static global Variables */
+extern ScribusApp* Carrier;
+extern ScribusDoc* doc;
+
+#endif
+
/trunk/Scribus/scribus/plugins/scriptplugin/cmdvar.h
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/pconsole.cpp
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/pconsole.cpp (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/pconsole.cpp (revision 82)
@@ -0,0 +1,23 @@
+#include "pconsole.h"
+#include "pconsole.moc"
+#include "qpixmap.h"
+extern QPixmap loadIcon(QString nam);
+
+PConsole::PConsole( QWidget* parent )
+ : QWidget( parent, "PConsole", WType_TopLevel )
+{
+ resize( 431, 306 );
+ setCaption( tr( "Script Console" ) );
+ setIcon(loadIcon("AppIcon.xpm"));
+ PConsoleLayout = new QVBoxLayout( this, 11, 6, "PConsoleLayout");
+ OutWin = new ConsWin(this);
+ OutWin->setMinimumSize( QSize( 300, 0 ) );
+ PConsoleLayout->addWidget( OutWin );
+}
+
+void PConsole::closeEvent(QCloseEvent *ce)
+{
+ emit Schliessen();
+ ce->accept();
+}
+
/trunk/Scribus/scribus/plugins/scriptplugin/pconsole.cpp
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node7.html
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node7.html (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node7.html (revision 82)
@@ -0,0 +1,152 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+
+<!--Converted with LaTeX2HTML 2002-1 (1.69)
+original version by: Nikos Drakos, CBLU, University of Leeds
+* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
+* with significant contributions from:
+ Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
+<html>
+<head>
+<title>Creating and Destructing Objects</title>
+<meta name="description" content="Creating and Destructing Objects">
+<meta name="keywords" content="Manual">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<meta name="Generator" content="LaTeX2HTML v2002-1">
+<meta http-equiv="Content-Style-Type" content="text/css">
+
+<link rel="STYLESHEET" href="Manual.css">
+
+<link rel="next" href="node8.html">
+<link rel="previous" href="node6.html">
+<link rel="up" href="node6.html">
+<link rel="next" href="node8.html">
+</head>
+
+<body >
+<!--Navigation Panel-->
+
+<b> Next:</b> <a name="tex2html128"
+ href="node8.html">Selecting Objects</a>
+<b> Up:</b> <a name="tex2html124"
+ href="node6.html">Object related Commands</a>
+<b> Previous:</b> <a name="tex2html118"
+ href="node6.html">Object related Commands</a>
+ &nbsp; <b> <a name="tex2html126"
+ href="node19.html">Index</a></b>
+<br>
+<br>
+<!--End of Navigation Panel-->
+
+<h2><a name="SECTION00331000000000000000">
+Creating and Destructing Objects</a>
+</h2>
+
+<p>
+<dl>
+<dt><strong>CreateBezierLine<a name="106"></a>(<i>list</i>,&nbsp;[''name''])</strong></dt>
+<dd>Creates
+a new Bezier Curve and returns its Name. The Points for the Bezier
+Curve are stored in the List ``list'' in the following Order:
+x1, y1, kx1, ky1, x2, y2, kx2, ky2...xn. yn, kxn. kyn. Where x and
+y mean the x and y Coordinates of the Point and kx and ky meaning
+the Controlpoint for the Curve. The Coordinates are given in the actual
+measurement Unit of the Document. ``name'' should be a unique
+Identifier for the Object because you need this Name for further referencing
+of that Object. If ``name is not given Scribus will create one
+for you.
+</dd>
+<dt><strong>CreateEllipse<a name="113"></a>(x,&nbsp;y,&nbsp;width,&nbsp;height,&nbsp;[''name''])</strong></dt>
+<dd>Creates
+a new Ellipse on the actual Page and returns its Name. The Coordinates
+are given in the actual measurement Unit of the Document. ``name''
+should be a unique Identifier for the Object because you need this
+Name for further referencing of that Object. If ``name is not given
+Scribus will create one for you.
+</dd>
+<dt><strong>CreateImage<a name="118"></a>(x,&nbsp;y,&nbsp;width,&nbsp;height,&nbsp;[''name''])</strong></dt>
+<dd>Creates
+a new Picture on the actual Page and returns its Name. The Coordinates
+are given in the actual measurement Unit of the Document. ``name''
+should be a unique Identifier for the Object because you need this
+Name for further referencing of that Object. If ``name is not given
+Scribus will create one for you.
+</dd>
+<dt><strong>CreateLine<a name="123"></a>(x1,&nbsp;y1,&nbsp;x2,&nbsp;y2,&nbsp;[''name''])</strong></dt>
+<dd>Creates
+a new Line from the Point(x1, y1) to the Point(x2, y2) and returns
+its Name. The Coordinates are given in the actual measurement Unit
+of the Document. ``name'' should be a unique Identifier for the
+Object because you need this Name for further referencing of that
+Object. If ``name is not given Scribus will create one for you.
+</dd>
+<dt><strong>CreatePathText(x,&nbsp;y,&nbsp;``textbox'',&nbsp;''beziercurve'',&nbsp;[''name''])</strong></dt>
+<dd>Creates
+a nex PathText by merging the 2 Objects ``textbox'' and ``beziercurve''
+and returns its Name. The Coordinates are given in the actual measurement
+Unit of the Document ``name'' should be a unique Identifier for
+the Object because you need this Name for further referencing of that
+Object. If ``name is not given Scribus will create one for you.
+</dd>
+<dt><strong>CreatePolygon<a name="135"></a>(<i>list</i>,&nbsp;[''name''])</strong></dt>
+<dd>Creates
+a new Polygon and returns its Name. The Points for the Polygon are
+stored in the List ``list'' in the following Order: x1, y1, x2,
+y2...xn. yn. At least three Points are required. There is no need
+to repeat the first Point to close the Polygon. The Polygon is automatically
+closed by connecting the first and the last Point. The Coordinates
+are given in the actual measurement Unit of the Document. ``name''
+should be a unique Identifier for the Object because you need this
+Name for further referencing of that Object. If ``name is not given
+Scribus will create one for you.
+</dd>
+<dt><strong>CreatePolyLine<a name="142"></a>(<i>list</i>,&nbsp;[''name''])</strong></dt>
+<dd>Creates
+a new Polyline and returns its Name. The Points for the Polyline are
+stored in the List ``list'' in the following Order: x1, y1, x2,
+y2...xn. yn. The Coordinates are given in the actual measurement Unit
+of the Document. ``name'' should be a unique Identifier for the
+Object because you need this Name for further referencing of that
+Object. If ``name is not given Scribus will create one for you.
+</dd>
+<dt><strong>CreateRect<a name="149"></a>(x,&nbsp;y,&nbsp;width,&nbsp;height,&nbsp;[''name''])</strong></dt>
+<dd>Creates
+a new Rectangle on the actual Page and returns its Name. The Coordinates
+are given in the actual measurement Unit of the Document. ``name''
+should be a unique Identifier for the Object because you need this
+Name for further referencing of that Object. If ``name is not given
+Scribus will create one for you.
+</dd>
+<dt><strong>CreateText<a name="154"></a>(x,&nbsp;y,&nbsp;width,&nbsp;height,&nbsp;[''name''])</strong></dt>
+<dd>Creates
+a new Rectangle on the actual Page and returns its Name. The Coordinates
+are given in the actual measurement Unit of the Document. ``name''
+should be a unique Identifier for the Object because you need this
+Name for further referencing of that Object. If ``name is not given
+Scribus will create one for you.
+</dd>
+<dt><strong>DeleteObject<a name="159"></a>([``name''])</strong></dt>
+<dd>Deletes the
+Item with the Name ``name''. If ``name'' is not given the
+currently selected Item is deleted.
+</dd>
+</dl>
+
+<p>
+<hr>
+<!--Navigation Panel-->
+
+<b> Next:</b> <a name="tex2html128"
+ href="node8.html">Selecting Objects</a>
+<b> Up:</b> <a name="tex2html124"
+ href="node6.html">Object related Commands</a>
+<b> Previous:</b> <a name="tex2html118"
+ href="node6.html">Object related Commands</a>
+ &nbsp; <b> <a name="tex2html126"
+ href="node19.html">Index</a></b>
+<!--End of Navigation Panel-->
+
+</body>
+</html>
/trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node7.html
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node8.html
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node8.html (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node8.html (revision 82)
@@ -0,0 +1,72 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+
+<!--Converted with LaTeX2HTML 2002-1 (1.69)
+original version by: Nikos Drakos, CBLU, University of Leeds
+* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
+* with significant contributions from:
+ Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
+<html>
+<head>
+<title>Selecting Objects</title>
+<meta name="description" content="Selecting Objects">
+<meta name="keywords" content="Manual">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<meta name="Generator" content="LaTeX2HTML v2002-1">
+<meta http-equiv="Content-Style-Type" content="text/css">
+
+<link rel="STYLESHEET" href="Manual.css">
+
+<link rel="next" href="node9.html">
+<link rel="previous" href="node7.html">
+<link rel="up" href="node6.html">
+<link rel="next" href="node9.html">
+</head>
+
+<body >
+<!--Navigation Panel-->
+
+<b> Next:</b> <a name="tex2html140"
+ href="node9.html">Setting Object Properties</a>
+<b> Up:</b> <a name="tex2html136"
+ href="node6.html">Object related Commands</a>
+<b> Previous:</b> <a name="tex2html130"
+ href="node7.html">Creating and Destructing Objects</a>
+ &nbsp; <b> <a name="tex2html138"
+ href="node19.html">Index</a></b>
+<br>
+<br>
+<!--End of Navigation Panel-->
+
+<h2><a name="SECTION00332000000000000000">
+Selecting Objects</a>
+</h2>
+
+<p>
+<dl>
+<dt><strong>DeselectAll<a name="168"></a>()</strong></dt>
+<dd>Deselects all Objects.
+</dd>
+<dt><strong>GetSelectedObject<a name="169"></a>([nr])</strong></dt>
+<dd>Returns the
+Name of the selecteted Object. ``nr'' if given indicates the Number
+of the selected Object, e.g. 0 means the first selected Object, 1
+means the second selected Object and so on.
+</dd>
+<dt><strong>SelectionCount<a name="173"></a>()</strong></dt>
+<dd>Returns the Number of selected
+Objects.
+</dd>
+<dt><strong>SelectObject<a name="174"></a>(``name'')</strong></dt>
+<dd>Selects the Object
+with the given Name.
+</dd>
+</dl>
+
+<p>
+<br><hr>
+
+</body>
+</html>
/trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node8.html
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node9.html
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node9.html (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node9.html (revision 82)
@@ -0,0 +1,142 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+
+<!--Converted with LaTeX2HTML 2002-1 (1.69)
+original version by: Nikos Drakos, CBLU, University of Leeds
+* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
+* with significant contributions from:
+ Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
+<html>
+<head>
+<title>Setting Object Properties</title>
+<meta name="description" content="Setting object Properties">
+<meta name="keywords" content="Manual">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<meta name="Generator" content="LaTeX2HTML v2002-1">
+<meta http-equiv="Content-Style-Type" content="text/css">
+
+<link rel="STYLESHEET" href="Manual.css">
+
+<link rel="next" href="node10.html">
+<link rel="previous" href="node8.html">
+<link rel="up" href="node6.html">
+<link rel="next" href="node10.html">
+</head>
+
+<body >
+<!--Navigation Panel-->
+
+<b> Next:</b> <a name="tex2html152"
+ href="node10.html">Getting Object Properties</a>
+<b> Up:</b> <a name="tex2html148"
+ href="node6.html">Object related Commands</a>
+<b> Previous:</b> <a name="tex2html142"
+ href="node8.html">Selecting Objects</a>
+ &nbsp; <b> <a name="tex2html150"
+ href="node19.html">Index</a></b>
+<br>
+<br>
+<!--End of Navigation Panel-->
+
+<h2><a name="SECTION00333000000000000000">
+Setting Object Properties</a>
+</h2>
+
+<p>
+<dl>
+<dt><strong>LoadImage<a name="179"></a>(''picture'',&nbsp;[``name''])</strong></dt>
+<dd>Loads
+the Picture ``picture'' into the Image Frame ``name''. If
+``name'' is not given the currently selected Item is used.
+</dd>
+<dt><strong>ScaleImage<a name="186"></a>(x-scaling,&nbsp;y-scaling,&nbsp;[``name''])</strong></dt>
+<dd>Sets
+the Scaling Factors of the Picture in the Image Frame ``name''.
+If ``name'' is not given the currently selected Item is used.
+A Number of 1 means 100 %.
+</dd>
+<dt><strong>SetCornerRadius<a name="192"></a>(radius,&nbsp;[``name''])</strong></dt>
+<dd>Sets
+the Corner Radius of the Object ``name'' The Radius is expressed
+in Points. If ``name'' is not given the currently selected Item
+is used.
+</dd>
+<dt><strong>SetFillColor<a name="198"></a>(''color'',&nbsp;[``name''])</strong></dt>
+<dd>Sets
+the Fill Color of the Object ``name'' to the Color ``color''.
+``color'' is the Name of one of the defined Colors. If ``name''
+is not given the currently selected Item is used.
+</dd>
+<dt><strong>SetFillShade<a name="206"></a>(shade,&nbsp;[``name''])</strong></dt>
+<dd>Sets
+the shading of the Fill Color of the Object ``name'' to ``shade''.
+``shade'' must be an Integer Value in the range from 0 (lightest)
+to 100 (full Color intensity). If ``name'' is not given the currently
+selected Item is used.
+</dd>
+<dt><strong>SetGradientFill<a name="214"></a>(type,&nbsp;``color1'',&nbsp;shade1,&nbsp;``color2'',&nbsp;shade2,&nbsp;[''name''])</strong></dt>
+<dd>Sets
+the Gradient Fill of the Object ``name'' to type. Color Descriptions
+are the same as for ``SetFillColor'' and ``SetFillShade''.
+</dd>
+<dt><strong>SetLineCap<a name="222"></a>(''cap'',&nbsp;[``name''])</strong></dt>
+<dd>Sets
+the Line Cap Style of the Object ``name'' to the Style ``cap''.
+If ``name'' is not given the currently selected Item is used.
+There are predefined Constants for ``cap''.
+</dd>
+<dt><strong>SetLineColor<a name="230"></a>(''color'',&nbsp;[``name''])</strong></dt>
+<dd>Sets
+the Line Color of the Object ``name'' to the Color ``color''.
+If ``name'' is not given the currently selected Item is used.
+</dd>
+<dt><strong>SetMultiLine<a name="237"></a>(``namedStyle'',&nbsp;[''name''])</strong></dt>
+<dd>Sets
+the Line Style of the Object ``name'' to the Named Style ``namedStyle''
+If ``name'' is not given the currently selected Item is used.
+</dd>
+<dt><strong>SetLineJoin<a name="244"></a>(''join'',&nbsp;[``name''])</strong></dt>
+<dd>Sets
+the Line Join Style of the Object ``name'' to the Style ``join''.
+If ``name'' is not given the currently selected Item is used.
+There are predefined Constants for ``join''.
+</dd>
+<dt><strong>SetLineShade<a name="252"></a>(shade,&nbsp;[``name''])</strong></dt>
+<dd>Sets
+the shading of the Line Color of the Object ``name'' to ``shade''.
+``shade'' must be an Integer Value in the range from 0 (lightest)
+to 100 (full Color intensity). If ``name'' is not given the currently
+selected Item is used.
+</dd>
+<dt><strong>SetLineStyle<a name="260"></a>(''style'',&nbsp;[``name''])</strong></dt>
+<dd>Sets
+the Line Style of the Object ``name'' to the Style ``style''.
+If ``name'' is not given the currently selected Item is used.
+There are predefined Constants for ``style''.
+</dd>
+<dt><strong>SetLineWidth<a name="268"></a>(width,&nbsp;[``name''])</strong></dt>
+<dd>Sets
+Line Width of the Object ``name'' to ``width''. ``width''
+must be in the range from 0.0 to 12.0 inclusive. If ``name'' is
+not given the currently selected Item is used.
+</dd>
+</dl>
+
+<p>
+<hr>
+<!--Navigation Panel-->
+
+<b> Next:</b> <a name="tex2html152"
+ href="node10.html">Getting Object Properties</a>
+<b> Up:</b> <a name="tex2html148"
+ href="node6.html">Object related Commands</a>
+<b> Previous:</b> <a name="tex2html142"
+ href="node8.html">Selecting Objects</a>
+ &nbsp; <b> <a name="tex2html150"
+ href="node19.html">Index</a></b>
+<!--End of Navigation Panel-->
+
+</body>
+</html>
/trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node9.html
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node10.html
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node10.html (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node10.html (revision 82)
@@ -0,0 +1,139 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+
+<!--Converted with LaTeX2HTML 2002-1 (1.69)
+original version by: Nikos Drakos, CBLU, University of Leeds
+* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
+* with significant contributions from:
+ Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
+<html>
+<head>
+<title>Getting Object Properties</title>
+<meta name="description" content="Getting object Properties">
+<meta name="keywords" content="Manual">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<meta name="Generator" content="LaTeX2HTML v2002-1">
+<meta http-equiv="Content-Style-Type" content="text/css">
+
+<link rel="STYLESHEET" href="Manual.css">
+
+<link rel="next" href="node11.html">
+<link rel="previous" href="node9.html">
+<link rel="up" href="node6.html">
+<link rel="next" href="node11.html">
+</head>
+
+<body >
+<!--Navigation Panel-->
+
+<b> Next:</b> <a name="tex2html164"
+ href="node11.html">Manipulating Objects</a>
+<b> Up:</b> <a name="tex2html160"
+ href="node6.html">Object related Commands</a>
+<b> Previous:</b> <a name="tex2html154"
+ href="node9.html">Setting Object Properties</a>
+ &nbsp; <b> <a name="tex2html162"
+ href="node19.html">Index</a></b>
+<br>
+<br>
+<!--End of Navigation Panel-->
+
+<h2><a name="SECTION00334000000000000000">
+Getting Object Properties</a>
+</h2>
+
+<p>
+<dl>
+<dt><strong>GetCornerRadius<a name="279"></a>([``name''])</strong></dt>
+<dd>Returns
+the Corner Radius of the Object ``name'' The Radius is expressed
+in Points. If ``name'' is not given the currently selected Item
+is used.
+</dd>
+<dt><strong>GetFillColor<a name="285"></a>([``name''])</strong></dt>
+<dd>Returns the
+name of the Fill Color of the Object ``name''. If ``name''
+is not given the currently selected Item is used.
+</dd>
+<dt><strong>GetFillShade<a name="291"></a>([``name''])</strong></dt>
+<dd>Returns the
+shading Value of the Fill Color of the Object ``name''. If ``name''
+is not given the currently selected Item is used.
+</dd>
+<dt><strong>GetImageFile<a name="297"></a>([``name''])</strong></dt>
+<dd>Returns the
+Filename for the Image in the Image Frame. If ``name'' is not
+given the currently selected Item is used.
+</dd>
+<dt><strong>GetImageScale<a name="302"></a>([``name''])</strong></dt>
+<dd>Returns
+a Tuple containing the Scaling Values of the Image Frame ``name''.
+If ``name'' is not given the currently selected Item is used.
+</dd>
+<dt><strong>GetLineCap<a name="308"></a>([``name''])</strong></dt>
+<dd>Returns the Line
+Cap Style of the Object ``name''. If ``name'' is not given
+the currently selected Item is used.
+</dd>
+<dt><strong>GetLineColor<a name="314"></a>([``name''])</strong></dt>
+<dd>Returns the
+name of the Line Color of the Object ``name''. If ``name''
+is not given the currently selected Item is used.
+</dd>
+<dt><strong>GetLineJoin<a name="320"></a>([``name''])</strong></dt>
+<dd>Returns the
+Line Join Style of the Object ``name''. If ``name'' is not
+given the currently selected Item is used.
+</dd>
+<dt><strong>GetLineShade<a name="326"></a>([``name''])</strong></dt>
+<dd>Returns the
+shading Value of the Line Color of the Object ``name''. If ``name''
+is not given the currently selected Item is used.
+</dd>
+<dt><strong>GetLineStyle<a name="332"></a>([``name''])</strong></dt>
+<dd>Returns the
+Line Style of the Object ``name''. If ``name'' is not given
+the currently selected Item is used.
+</dd>
+<dt><strong>GetLineWidth<a name="338"></a>([``name''])</strong></dt>
+<dd>Returns the
+Line Width of the Object ``name''. If ``name'' is not given
+the currently selected Item is used.
+</dd>
+<dt><strong>GetPosition<a name="344"></a>([``name''])</strong></dt>
+<dd>Returns a tuple
+with the actual Position of the Object ``name'' If ``name''
+is not given the currently selected Item is used. The Position is
+expressed in the actual Measurement Unit of the Document.
+</dd>
+<dt><strong>GetRotation<a name="350"></a>([``name''])</strong></dt>
+<dd>Returns the
+Rotation of the Object ``name''. The value is expressed in Degrees.
+If ``name'' is not given the currently selected Item is used.
+</dd>
+<dt><strong>GetSize<a name="356"></a>([``name''])</strong></dt>
+<dd>Returns a tuple with
+the actual Size of the Object ``name'' If ``name'' is not
+given the currently selected Item is used. The Size is expressed in
+the actual Measurement Unit of the Document.
+</dd>
+</dl>
+
+<p>
+<hr>
+<!--Navigation Panel-->
+
+<b> Next:</b> <a name="tex2html164"
+ href="node11.html">Manipulating Objects</a>
+<b> Up:</b> <a name="tex2html160"
+ href="node6.html">Object related Commands</a>
+<b> Previous:</b> <a name="tex2html154"
+ href="node9.html">Setting Object Properties</a>
+ &nbsp; <b> <a name="tex2html162"
+ href="node19.html">Index</a></b>
+<!--End of Navigation Panel-->
+
+</body>
+</html>
/trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node10.html
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node11.html
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node11.html (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node11.html (revision 82)
@@ -0,0 +1,117 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+
+<!--Converted with LaTeX2HTML 2002-1 (1.69)
+original version by: Nikos Drakos, CBLU, University of Leeds
+* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
+* with significant contributions from:
+ Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
+<html>
+<head>
+<title>Manipulating Objects</title>
+<meta name="description" content="Manipulating Objects">
+<meta name="keywords" content="Manual">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<meta name="Generator" content="LaTeX2HTML v2002-1">
+<meta http-equiv="Content-Style-Type" content="text/css">
+
+<link rel="STYLESHEET" href="Manual.css">
+
+<link rel="next" href="node12.html">
+<link rel="previous" href="node10.html">
+<link rel="up" href="node6.html">
+<link rel="next" href="node12.html">
+</head>
+
+<body >
+<!--Navigation Panel-->
+
+<b> Next:</b> <a name="tex2html176"
+ href="node12.html">Handling Text Frames</a>
+<b> Up:</b> <a name="tex2html172"
+ href="node6.html">Object related Commands</a>
+<b> Previous:</b> <a name="tex2html166"
+ href="node10.html">Getting Object Properties</a>
+ &nbsp; <b> <a name="tex2html174"
+ href="node19.html">Index</a></b>
+<br>
+<br>
+<!--End of Navigation Panel-->
+
+<h2><a name="SECTION00335000000000000000">
+Manipulating Objects</a>
+</h2>
+
+<p>
+<dl>
+<dt><strong>GroupObjects<a name="365"></a>([<i>list</i>])</strong></dt>
+<dd>Groups the
+Objects in ``<i>list</i>'' together. ``<i>list</i>'' must
+contain the Names of the Objects to be grouped. If ``<i>list</i>''
+is not given the currently selected Items are used.
+</dd>
+<dt><strong>MoveObject<a name="375"></a>(dx,&nbsp;dy,&nbsp;[``name''])</strong></dt>
+<dd>Moves
+the Object ``name'' by dx and dy relative to its origin. The Distances
+are expressed in the actual Measurement Unit of the Document. If ``name''
+is not given the currently selected Item is used. If the Object ``name''
+belongs to a Group, the whole Group is moved.
+</dd>
+<dt><strong>MoveObjectAbs<a name="382"></a>(x,&nbsp;y,&nbsp;[``name''])</strong></dt>
+<dd>Moves
+the Object ``name'' to a new Location. The Coordinates are expressed
+in the actual Measurement Unit of the Document. If ``name'' is
+not given the currently selected Item is used. If the Object &#34;name&#34;
+belongs to a Group, the whole Group is moved.
+</dd>
+<dt><strong>RotateObject<a name="390"></a>(rot,&nbsp;[``name''])</strong></dt>
+<dd>Rotates
+the Object ``name'' by ``rot'' Degrees. Positve Values mean
+counter clockwise Rotation. If ``name'' is not given the currently
+selected Item is used.
+</dd>
+<dt><strong>RotateObjectAbs<a name="397"></a>(rot,&nbsp;[``name''])</strong></dt>
+<dd>Sets
+the Rotation of the Object ``name'' to ``rot''. Positve Values
+mean counter clockwise Rotation. If ``name'' is not given the
+currently selected Item is used.
+</dd>
+<dt><strong>ScaleGroup<a name="404"></a>(factor,&nbsp;[``name''])</strong></dt>
+<dd>Scales
+the Group the Object ``name'' belongs to. Values greater than
+1 enlarge the Group, Values smaller than 1 make the Group smaller
+e.g a Value of 0.5 scales the Group to 50 % of is original Size,
+a Value of 1.5 scales the Group to 150 % of its original Size. The
+Value for ``factor'' must be greater than 0. If ``name'' is
+not given the currently selected Item is used.
+</dd>
+<dt><strong>SizeObject<a name="411"></a>(width,&nbsp;height,&nbsp;[``name''])</strong></dt>
+<dd>Resizes
+the Object ``name'' to the given Width and Height. If ``name''
+is not given the currently selected Item is used.
+</dd>
+<dt><strong>UnGroupObject<a name="417"></a>([``name''])</strong></dt>
+<dd>Destructs
+the Group the Object ``name'' belongs to. If ``name'' is not
+given the currently selected Item is used.
+</dd>
+</dl>
+
+<p>
+<hr>
+<!--Navigation Panel-->
+
+<b> Next:</b> <a name="tex2html176"
+ href="node12.html">Handling Text Frames</a>
+<b> Up:</b> <a name="tex2html172"
+ href="node6.html">Object related Commands</a>
+<b> Previous:</b> <a name="tex2html166"
+ href="node10.html">Getting Object Properties</a>
+ &nbsp; <b> <a name="tex2html174"
+ href="node19.html">Index</a></b>
+<!--End of Navigation Panel-->
+
+</body>
+</html>
/trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node11.html
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node12.html
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node12.html (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node12.html (revision 82)
@@ -0,0 +1,183 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+
+<!--Converted with LaTeX2HTML 2002-1 (1.69)
+original version by: Nikos Drakos, CBLU, University of Leeds
+* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
+* with significant contributions from:
+ Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
+<html>
+<head>
+<title>Handling Text Frames</title>
+<meta name="description" content="Handling text Frames">
+<meta name="keywords" content="Manual">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<meta name="Generator" content="LaTeX2HTML v2002-1">
+<meta http-equiv="Content-Style-Type" content="text/css">
+
+<link rel="STYLESHEET" href="Manual.css">
+
+<link rel="previous" href="node11.html">
+<link rel="up" href="node6.html">
+<link rel="next" href="node13.html">
+</head>
+
+<body >
+<!--Navigation Panel-->
+
+<b> Next:</b> <a name="tex2html186"
+ href="node13.html">Other Commands</a>
+<b> Up:</b> <a name="tex2html182"
+ href="node6.html">Object related Commands</a>
+<b> Previous:</b> <a name="tex2html178"
+ href="node11.html">Manipulating Objects</a>
+ &nbsp; <b> <a name="tex2html184"
+ href="node19.html">Index</a></b>
+<br>
+<br>
+<!--End of Navigation Panel-->
+
+<h2><a name="SECTION00336000000000000000">
+Handling Text Frames</a>
+</h2>
+
+<p>
+<dl>
+<dt><strong>DeleteText<a name="426"></a>([``name''])</strong></dt>
+<dd>Deletes the Text
+of the Textframe ``name''. If there is some Text selected, this
+Text will be deleted. If ``name'' is not given the currently selected
+Item is used.
+</dd>
+<dt><strong>GetLineSpacing<a name="432"></a>([``name''])</strong></dt>
+<dd>Gets the
+Linespacing of the Text Frame ``name'' expressed in Points. If
+``name'' is not given the currently selected Item is used.
+</dd>
+<dt><strong>GetFont<a name="438"></a>([``name''])</strong></dt>
+<dd>Returns the Font for
+the Textframe ``name''. If this Textframe has some Text selected
+the Value assigned to the first Character of the Selection is returned.
+If ``name'' is not given the currently selected Item is used.
+</dd>
+<dt><strong>GetFontSize<a name="444"></a>([``name''])</strong></dt>
+<dd>Returns the
+Fontsize for the Textframe ``name''. If this Textframe has some
+Text selected the Value assigned to the first Character of the Selection
+is returned. If ``name'' is not given the currently selected Item
+is used.
+</dd>
+<dt><strong>GetText<a name="450"></a>([``name''])</strong></dt>
+<dd>Returns the Text of
+the Textframe ``name''. If this Textframe has some Text selected,
+this Text is returned. If ``name'' is not given the currently
+selected Item is used.
+</dd>
+<dt><strong>GetTextColor<a name="456"></a>([``name''])</strong></dt>
+<dd>Returns the
+name of the Text Color of the Object ``name''. If this Textframe
+has some Text selected the Value assigned to the first Character of
+the Selection is returned. If ``name'' is not given the currently
+selected Item is used.
+</dd>
+<dt><strong>GetTextLength<a name="462"></a>([``name''])</strong></dt>
+<dd>Returns
+the Length of the Text in the Textframe ``name''. If ``name''
+is not given the currently selected Item is used.
+</dd>
+<dt><strong>GetTextShade<a name="468"></a>([``name''])</strong></dt>
+<dd>Returns the
+shading Value of the Text Color of the Object ``name''. If this
+Textframe has some Text selected the Value assigned to the first Character
+of the Selection is returned. If ``name'' is not given the currently
+selected Item is used.
+</dd>
+<dt><strong>InsertText<a name="474"></a>(``text'',&nbsp;pos,&nbsp;[``name''])</strong></dt>
+<dd>Inserts
+the Text ``text'' at the Position ``pos'' into the Textframe
+The first Character has an Index of 0. ``name'' If ``name''
+is not given the currently selected Item is used.
+</dd>
+<dt><strong>SetTextAlignment<a name="483"></a>(align,&nbsp;[``name''])</strong></dt>
+<dd>Sets
+the Textalignment of the Text Frame ``name'' to the specified
+Alignment. If ``name'' is not given the currently selected Item
+is used. ``align'' can have the following values:
+</dd>
+</dl>
+<blockquote>
+<div align="LEFT">
+0 = Left Aligned
+<br>
+1 = Centered
+<br>
+2 = Right Aligned
+<br>
+3 = Forced
+</div>
+</blockquote>
+<dl>
+<dt><strong>SelectText<a name="496"></a>(start,&nbsp;count,&nbsp;[``name''])</strong></dt>
+<dd>Selects
+``count'' Characters Text of the Textframe ``name'' starting
+from the Character ``start''. Character Counting starts at 0.
+If ``count'' is zero, any Text Selection will be cleared. If ``name''
+is not given the currently selected Item is used.
+</dd>
+<dt><strong>SetLineSpacing<a name="505"></a>(size,&nbsp;[``name''])</strong></dt>
+<dd>Sets
+the Linespacing of the Text Frame ``name'' to the Pointsize ``size''.
+If ``name'' is not given the currently selected Item is used.
+</dd>
+<dt><strong>SetFont<a name="512"></a>(''font'',&nbsp;[``name''])</strong></dt>
+<dd>Sets the
+Font of the Text Frame ``name'' to ``font'', if there is some
+Text selected only the selected Text is changed. If ``name'' is
+not given the currently selected Item is used.
+</dd>
+<dt><strong>SetFontSize<a name="519"></a>(size,&nbsp;[``name''])</strong></dt>
+<dd>Sets
+the Fontsize of the Text Frame ``name'' to the Pointsize ``size'',
+if there is some Text selected only the selected Text is changed.
+``size'' must be in the Range 1 to 512. If ``name'' is not
+given the currently selected Item is used.
+</dd>
+<dt><strong>SetText<a name="527"></a>(''text'',&nbsp;[``name''])</strong></dt>
+<dd>Sets the
+Text of the Text Frame ``name'' to the Text of the String ``text''.
+If ``name'' is not given the currently selected Item is used.
+</dd>
+<dt><strong>SetTextColor<a name="534"></a>(''color'',&nbsp;[``name''])</strong></dt>
+<dd>Sets
+the Text Color of the Object ``name'' to the Color ``color'',
+if there is some Text selected only the selected Text is changed.
+If ``name'' is not given the currently selected Item is used.
+</dd>
+<dt><strong>SetTextShade<a name="541"></a>(shade,&nbsp;[``name''])</strong></dt>
+<dd>Sets
+the shading of the Text Color of the Object ``name'' to ``shade'',
+if there is some Text selected only the selected Text is changed.
+``shade'' must be an Integer Value in the range from 0 (lightest)
+to 100 (full Color intensity). If ``name'' is not given the currently
+selected Item is used.
+</dd>
+</dl>
+
+<p>
+<hr>
+<!--Navigation Panel-->
+
+<b> Next:</b> <a name="tex2html186"
+ href="node13.html">Other Commands</a>
+<b> Up:</b> <a name="tex2html182"
+ href="node6.html">Object related Commands</a>
+<b> Previous:</b> <a name="tex2html178"
+ href="node11.html">Manipulating Objects</a>
+ &nbsp; <b> <a name="tex2html184"
+ href="node19.html">Index</a></b>
+<!--End of Navigation Panel-->
+
+</body>
+</html>
/trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node12.html
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node13.html
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node13.html (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node13.html (revision 82)
@@ -0,0 +1,64 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+
+<!--Converted with LaTeX2HTML 2002-1 (1.69)
+original version by: Nikos Drakos, CBLU, University of Leeds
+* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
+* with significant contributions from:
+ Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
+<html>
+<head>
+<title>Other Commands</title>
+<meta name="description" content="Other Commands">
+<meta name="keywords" content="Manual">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<meta name="Generator" content="LaTeX2HTML v2002-1">
+<meta http-equiv="Content-Style-Type" content="text/css">
+
+<link rel="STYLESHEET" href="Manual.css">
+
+<link rel="next" href="node17.html">
+<link rel="previous" href="node6.html">
+<link rel="up" href="node3.html">
+<link rel="next" href="node14.html">
+</head>
+
+<body >
+<!--Navigation Panel-->
+
+<b> Next:</b> <a name="tex2html198"
+ href="node14.html">Color related Commands</a>
+<b> Up:</b> <a name="tex2html194"
+ href="node3.html">The available Commands</a>
+<b> Previous:</b> <a name="tex2html188"
+ href="node12.html">Handling Text Frames</a>
+ &nbsp; <b> <a name="tex2html196"
+ href="node19.html">Index</a></b>
+<br>
+<br>
+<!--End of Navigation Panel-->
+
+<h1><a name="SECTION00340000000000000000">
+Other Commands</a>
+</h1>
+
+<p>
+<br><hr>
+<!--Table of Child-Links-->
+<a name="CHILD_LINKS"><strong>Subsections</strong></a>
+
+<ul>
+<li><a name="tex2html199"
+ href="node14.html">Color related Commands</a>
+<li><a name="tex2html200"
+ href="node15.html">Font related Commands</a>
+<li><a name="tex2html201"
+ href="node16.html">Layer related Commands</a>
+</ul>
+<!--End of Table of Child-Links-->
+<br><hr>
+
+</body>
+</html>
/trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node13.html
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node14.html
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node14.html (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node14.html (revision 82)
@@ -0,0 +1,84 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+
+<!--Converted with LaTeX2HTML 2002-1 (1.69)
+original version by: Nikos Drakos, CBLU, University of Leeds
+* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
+* with significant contributions from:
+ Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
+<html>
+<head>
+<title>Color related Commands</title>
+<meta name="description" content="Color related Commands">
+<meta name="keywords" content="Manual">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<meta name="Generator" content="LaTeX2HTML v2002-1">
+<meta http-equiv="Content-Style-Type" content="text/css">
+
+<link rel="STYLESHEET" href="Manual.css">
+
+<link rel="next" href="node15.html">
+<link rel="previous" href="node13.html">
+<link rel="up" href="node13.html">
+<link rel="next" href="node15.html">
+</head>
+
+<body >
+<!--Navigation Panel-->
+
+<b> Next:</b> <a name="tex2html213"
+ href="node15.html">Font related Commands</a>
+<b> Up:</b> <a name="tex2html209"
+ href="node13.html">Other Commands</a>
+<b> Previous:</b> <a name="tex2html203"
+ href="node13.html">Other Commands</a>
+ &nbsp; <b> <a name="tex2html211"
+ href="node19.html">Index</a></b>
+<br>
+<br>
+<!--End of Navigation Panel-->
+
+<h2><a name="SECTION00341000000000000000">
+Color related Commands</a>
+</h2>
+
+<p>
+<dl>
+<dt><strong>ChangeColor<a name="553"></a>(``name'',&nbsp;c,&nbsp;m,&nbsp;y,&nbsp;k)</strong></dt>
+<dd>Changes
+the Color ``name'', The Color Value is defined via four Components
+c = Cyan, m = Magenta, y = Yello and k = Black. Color Compontens should
+be in the range from 0 to 255.
+</dd>
+<dt><strong>DefineColor<a name="556"></a>(``name'',&nbsp;c,&nbsp;m,&nbsp;y,&nbsp;k)</strong></dt>
+<dd>Defines
+a new Color ``name''. The Color Value is defined via four Components
+c = Cyan, m = Magenta, y = Yello and k = Black. Color Compontens should
+be in the range from 0 to 255.
+</dd>
+<dt><strong>DeleteColor<a name="559"></a>(``name'',&nbsp;''replace'')</strong></dt>
+<dd>Deletes
+the Color ``name''. Every occurence of that Color is replaced
+by the Color ``replace''.
+</dd>
+<dt><strong>GetColor<a name="563"></a>(``name'')</strong></dt>
+<dd>Returns a Tuple containing
+the four Color Components of the Color ``name''.
+</dd>
+<dt><strong>GetColorNames<a name="566"></a>()</strong></dt>
+<dd>Returns a List with the Names
+of all defined Colors.
+</dd>
+<dt><strong>ReplaceColor<a name="567"></a>(``name'',&nbsp;''replace'')</strong></dt>
+<dd>Every
+occurence of that Color is replaced by the Color ``replace''.
+</dd>
+</dl>
+
+<p>
+<br><hr>
+
+</body>
+</html>
/trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node14.html
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node15.html
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node15.html (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node15.html (revision 82)
@@ -0,0 +1,59 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+
+<!--Converted with LaTeX2HTML 2002-1 (1.69)
+original version by: Nikos Drakos, CBLU, University of Leeds
+* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
+* with significant contributions from:
+ Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
+<html>
+<head>
+<title>Font related Commands</title>
+<meta name="description" content="Font related Commands">
+<meta name="keywords" content="Manual">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<meta name="Generator" content="LaTeX2HTML v2002-1">
+<meta http-equiv="Content-Style-Type" content="text/css">
+
+<link rel="STYLESHEET" href="Manual.css">
+
+<link rel="next" href="node16.html">
+<link rel="previous" href="node14.html">
+<link rel="up" href="node13.html">
+<link rel="next" href="node16.html">
+</head>
+
+<body >
+<!--Navigation Panel-->
+
+<b> Next:</b> <a name="tex2html225"
+ href="node16.html">Layer related Commands</a>
+<b> Up:</b> <a name="tex2html221"
+ href="node13.html">Other Commands</a>
+<b> Previous:</b> <a name="tex2html215"
+ href="node14.html">Color related Commands</a>
+ &nbsp; <b> <a name="tex2html223"
+ href="node19.html">Index</a></b>
+<br>
+<br>
+<!--End of Navigation Panel-->
+
+<h2><a name="SECTION00342000000000000000">
+Font related Commands</a>
+</h2>
+
+<p>
+<dl>
+<dt><strong>GetFontNames<a name="573"></a>()</strong></dt>
+<dd>Returns a List with the Names
+of all available Fonts.
+</dd>
+</dl>
+
+<p>
+<br><hr>
+
+</body>
+</html>
/trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node15.html
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node16.html
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node16.html (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node16.html (revision 82)
@@ -0,0 +1,116 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+
+<!--Converted with LaTeX2HTML 2002-1 (1.69)
+original version by: Nikos Drakos, CBLU, University of Leeds
+* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
+* with significant contributions from:
+ Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
+<html>
+<head>
+<title>Layer related Commands</title>
+<meta name="description" content="Layer related Commands">
+<meta name="keywords" content="Manual">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<meta name="Generator" content="LaTeX2HTML v2002-1">
+<meta http-equiv="Content-Style-Type" content="text/css">
+
+<link rel="STYLESHEET" href="Manual.css">
+
+<link rel="previous" href="node15.html">
+<link rel="up" href="node13.html">
+<link rel="next" href="node17.html">
+</head>
+
+<body >
+<!--Navigation Panel-->
+
+<b> Next:</b> <a name="tex2html235"
+ href="node17.html">Using Dialogs from Scribus</a>
+<b> Up:</b> <a name="tex2html231"
+ href="node13.html">Other Commands</a>
+<b> Previous:</b> <a name="tex2html227"
+ href="node15.html">Font related Commands</a>
+ &nbsp; <b> <a name="tex2html233"
+ href="node19.html">Index</a></b>
+<br>
+<br>
+<!--End of Navigation Panel-->
+
+<h2><a name="SECTION00343000000000000000">
+Layer related Commands</a>
+</h2>
+
+<p>
+<dl>
+<dt><strong>CreateLayer<a name="577"></a>(``name'')</strong></dt>
+<dd>Creates a new Layer
+with the Name ``name''.
+</dd>
+<dt><strong>DeleteLayer<a name="580"></a>(``name'')</strong></dt>
+<dd>Deletes the Layer
+with the Name ``name''. Nothing happens if the Layer doesn't exists
+or if it's the only Layer in the Document.
+</dd>
+<dt><strong>GetActiveLayer<a name="583"></a>()</strong></dt>
+<dd>Returns the Name of the
+current active Layer.
+</dd>
+<dt><strong>GetLayers<a name="584"></a>()</strong></dt>
+<dd>Returns a List with the Names of all
+defined Layers.
+</dd>
+<dt><strong>IsLayerPrintable<a name="585"></a>(``name'')</strong></dt>
+<dd>Returns
+wether the Layer ``layer'' is printable or not, a Value of 1 means
+that the Layer ``layer'' can be printed, a Value of 0 means that
+printing the Layer ``layer'' is disabled.
+</dd>
+<dt><strong>IsLayerVisible<a name="590"></a>(``layer'')</strong></dt>
+<dd>Returns wether
+the Layer ``layer'' is visible or not, a Value of 1 means that
+the Layer ``layer'' is visible, a Value of 0 means that the Layer
+``layer'' is invisible.
+</dd>
+<dt><strong>SentToLayer<a name="595"></a>(``layer'',&nbsp;[``name''])</strong></dt>
+<dd>Sends
+the Object ``name'' to the Layer ``layer''. The Layer must
+exist. If ``name'' is not given the currently selected Item is
+used.
+</dd>
+<dt><strong>SetActiveLayer<a name="603"></a>(``name'')</strong></dt>
+<dd>Sets the active
+Layer to the Layer named ``name''.
+</dd>
+<dt><strong>SetLayerPrintable<a name="606"></a>(``layer'',&nbsp;flag)</strong></dt>
+<dd>Sets
+the Layer ``layer'' to be printable or not. A Value of 1 for ``flag''
+means that the Layer ``layer'' can be printed, a Value of 0 means
+that printing the Layer ``layer'' is disabled.
+</dd>
+<dt><strong>SetLayerVisible<a name="612"></a>(``layer'',&nbsp;flag)</strong></dt>
+<dd>Sets
+the Layer ``layer'' to be visible or not. A Value of 1 for ``flag''
+means that the Layer ``layer'' is visible, a Value of 0 means
+that the Layer ``layer'' is invisible.
+</dd>
+</dl>
+
+<p>
+<hr>
+<!--Navigation Panel-->
+
+<b> Next:</b> <a name="tex2html235"
+ href="node17.html">Using Dialogs from Scribus</a>
+<b> Up:</b> <a name="tex2html231"
+ href="node13.html">Other Commands</a>
+<b> Previous:</b> <a name="tex2html227"
+ href="node15.html">Font related Commands</a>
+ &nbsp; <b> <a name="tex2html233"
+ href="node19.html">Index</a></b>
+<!--End of Navigation Panel-->
+
+</body>
+</html>
/trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node16.html
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node17.html
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node17.html (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node17.html (revision 82)
@@ -0,0 +1,59 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+
+<!--Converted with LaTeX2HTML 2002-1 (1.69)
+original version by: Nikos Drakos, CBLU, University of Leeds
+* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
+* with significant contributions from:
+ Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
+<html>
+<head>
+<title>Using Dialogs from Scribus</title>
+<meta name="description" content="Using dialogs from Scribus">
+<meta name="keywords" content="Manual">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<meta name="Generator" content="LaTeX2HTML v2002-1">
+<meta http-equiv="Content-Style-Type" content="text/css">
+
+<link rel="STYLESHEET" href="Manual.css">
+
+<link rel="next" href="node18.html">
+<link rel="previous" href="node13.html">
+<link rel="up" href="node3.html">
+<link rel="next" href="node18.html">
+</head>
+
+<body >
+<!--Navigation Panel-->
+
+<b> Next:</b> <a name="tex2html247"
+ href="node18.html">Predefined Constants</a>
+<b> Up:</b> <a name="tex2html243"
+ href="node3.html">The available Commands</a>
+<b> Previous:</b> <a name="tex2html237"
+ href="node16.html">Layer related Commands</a>
+ &nbsp; <b> <a name="tex2html245"
+ href="node19.html">Index</a></b>
+<br>
+<br>
+<!--End of Navigation Panel-->
+
+<h1><a name="SECTION00350000000000000000">
+Using Dialogs from Scribus</a>
+</h1>
+
+<p>
+<dl>
+<dt><strong>NewDocDialog<a name="621"></a>()</strong></dt>
+<dd>Shows the ``New Document''
+Dialog Box. Returns true if a new Document was created.
+</dd>
+</dl>
+
+<p>
+<br><hr>
+
+</body>
+</html>
/trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node17.html
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node18.html
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node18.html (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node18.html (revision 82)
@@ -0,0 +1,282 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+
+<!--Converted with LaTeX2HTML 2002-1 (1.69)
+original version by: Nikos Drakos, CBLU, University of Leeds
+* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
+* with significant contributions from:
+ Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
+<html>
+<head>
+<title>Predefined Constants</title>
+<meta name="description" content="Predefined Constants">
+<meta name="keywords" content="Manual">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<meta name="Generator" content="LaTeX2HTML v2002-1">
+<meta http-equiv="Content-Style-Type" content="text/css">
+
+<link rel="STYLESHEET" href="Manual.css">
+
+<link rel="previous" href="node17.html">
+<link rel="up" href="node3.html">
+<link rel="next" href="node19.html">
+</head>
+
+<body >
+<!--Navigation Panel-->
+
+<b> Next:</b> <a name="tex2html257"
+ href="node19.html">Index</a>
+<b> Up:</b> <a name="tex2html253"
+ href="node3.html">The available Commands</a>
+<b> Previous:</b> <a name="tex2html249"
+ href="node17.html">Using Dialogs from Scribus</a>
+ &nbsp; <b> <a name="tex2html255"
+ href="node19.html">Index</a></b>
+<br>
+<br>
+<!--End of Navigation Panel-->
+
+<h1><a name="SECTION00360000000000000000">
+Predefined Constants</a>
+</h1>
+
+<p>
+There are some Constants defined to help using the Commands:
+
+<p>
+Unit Definitions:
+
+<p>
+<dl>
+<dt><strong>Points<a name="626"></a></strong></dt>
+<dd>Measurement Unit Point = 0
+</dd>
+<dt><strong>Milimeters<a name="627"></a></strong></dt>
+<dd>Measurement Unit Millimeter = 1
+</dd>
+<dt><strong>Inches<a name="628"></a></strong></dt>
+<dd>Measurement Unit Inch = 2
+</dd>
+<dt><strong>Picas<a name="629"></a></strong></dt>
+<dd>Measurement Unit Pica = 3
+</dd>
+</dl>
+Page Orientation Definitions:
+
+<p>
+<dl>
+<dt><strong>Portrait<a name="632"></a></strong></dt>
+<dd>Pageformat Portrait = 0
+</dd>
+<dt><strong>Landscape<a name="633"></a></strong></dt>
+<dd>Pageformat Portrait = 1
+</dd>
+</dl>
+Definitions for Page Formats:
+
+<p>
+<dl>
+<dt><strong>Paper_A0<a name="636"></a></strong></dt>
+<dd>Paperformat A0 = 2380 x 3368 Points
+</dd>
+<dt><strong>Paper_A1<a name="637"></a></strong></dt>
+<dd>Paperformat A1 = 1684 x 2380 Points
+</dd>
+<dt><strong>Paper_A2<a name="638"></a></strong></dt>
+<dd>Paperformat A2 = 1190 x 1684 Points
+</dd>
+<dt><strong>Paper_A3<a name="639"></a></strong></dt>
+<dd>Paperformat A3 = 842 x 1190 Points
+</dd>
+<dt><strong>Paper_A4<a name="640"></a></strong></dt>
+<dd>Paperformat A4 = 595 x 842 Points
+</dd>
+<dt><strong>Paper_A5<a name="641"></a></strong></dt>
+<dd>Paperformat A5 = 421 x 595 Points
+</dd>
+<dt><strong>Paper_A6<a name="642"></a></strong></dt>
+<dd>Paperformat A6 = 297 x 421 Points
+</dd>
+<dt><strong>Paper_A7<a name="643"></a></strong></dt>
+<dd>Paperformat A7 = 210 x 297 Points
+</dd>
+<dt><strong>Paper_A8<a name="644"></a></strong></dt>
+<dd>Paperformat A8 = 148 x 210 Points
+</dd>
+<dt><strong>Paper_A9<a name="645"></a></strong></dt>
+<dd>Paperformat A9 = 105 x 148 Points
+</dd>
+<dt><strong>Paper_B0<a name="646"></a></strong></dt>
+<dd>Paperformat B0 = 2836 x 4008 Points
+</dd>
+<dt><strong>Paper_B1<a name="647"></a></strong></dt>
+<dd>Paperformat B1 = 2004 x 2836 Points
+</dd>
+<dt><strong>Paper_B2<a name="648"></a></strong></dt>
+<dd>Paperformat B2 = 1418 x 2004 Points
+</dd>
+<dt><strong>Paper_B3<a name="649"></a></strong></dt>
+<dd>Paperformat B3 = 1002 x 1418 Points
+</dd>
+<dt><strong>Paper_B4<a name="650"></a></strong></dt>
+<dd>Paperformat B4 = 709 x 1002 Points
+</dd>
+<dt><strong>Paper_B5<a name="651"></a></strong></dt>
+<dd>Paperformat B5 = 501 x 709 Points
+</dd>
+<dt><strong>Paper_B6<a name="652"></a></strong></dt>
+<dd>Paperformat B6 = 355 x 501 Points
+</dd>
+<dt><strong>Paper_B7<a name="653"></a></strong></dt>
+<dd>Paperformat B7 = 250 x 355 Points
+</dd>
+<dt><strong>Paper_B8<a name="654"></a></strong></dt>
+<dd>Paperformat B8 = 178 x 250 Points
+</dd>
+<dt><strong>Paper_B9<a name="655"></a></strong></dt>
+<dd>Paperformat B9 = 125 x 178 Points
+</dd>
+<dt><strong>Paper_B10<a name="656"></a></strong></dt>
+<dd>Paperformat B10 = 89 x 125 Points
+</dd>
+<dt><strong>Paper_C5E<a name="657"></a></strong></dt>
+<dd>Paperformat C5E = 462 x 649 Points
+</dd>
+<dt><strong>Paper_Comm10E<a name="658"></a></strong></dt>
+<dd>Paperformat Comm10E = 298 x 683 Points
+</dd>
+<dt><strong>Paper_DLE<a name="659"></a></strong></dt>
+<dd>Paperformat DLE = 312 x 624 Points
+</dd>
+<dt><strong>Paper_Executive<a name="660"></a></strong></dt>
+<dd>Paperformat Executive = 542 x
+720 Points
+</dd>
+<dt><strong>Paper_Folio<a name="661"></a></strong></dt>
+<dd>Paperformat Folio = 595 x 935 Points
+</dd>
+<dt><strong>Paper_Ledger<a name="662"></a></strong></dt>
+<dd>Paperformat Ledger = 1224 x 792 Points
+</dd>
+<dt><strong>Paper_Legal<a name="663"></a></strong></dt>
+<dd>Paperformat Legal = 612 x 1008 Points
+</dd>
+<dt><strong>Paper_Letter<a name="664"></a></strong></dt>
+<dd>Paperformat Letter = 612 x 792 Points
+</dd>
+<dt><strong>Paper_Tabloid<a name="665"></a></strong></dt>
+<dd>Paperformat Tabloid = 792 x 1224Points
+</dd>
+</dl>
+Definitions for Document Layout:
+
+<p>
+<dl>
+<dt><strong>FacingPages<a name="668"></a></strong></dt>
+<dd>Layout with facing Pages.
+</dd>
+<dt><strong>NoFacingPages<a name="669"></a></strong></dt>
+<dd>Normal Layout of the Document.
+</dd>
+<dt><strong>FirstPageLeft<a name="670"></a></strong></dt>
+<dd>The first Page of the Document
+is a left Page.
+</dd>
+<dt><strong>FirstPageRight<a name="671"></a></strong></dt>
+<dd>The first Page of the Document
+is a right Page.
+</dd>
+</dl>
+Alignment Definitions
+
+<p>
+<dl>
+<dt><strong>LeftAlign<a name="674"></a></strong></dt>
+<dd>Text is aligned to the Left.
+</dd>
+<dt><strong>Centered<a name="675"></a></strong></dt>
+<dd>The Text is centered in the Textframe.
+</dd>
+<dt><strong>RightAlign<a name="676"></a></strong></dt>
+<dd>The Text is aligned to the Right Side
+of the Textframe
+</dd>
+<dt><strong>Forced<a name="677"></a></strong></dt>
+<dd>The Text has forced Alignment
+</dd>
+</dl>
+Line related Definitions:
+
+<p>
+<dl>
+<dt><strong>SolidLine<a name="680"></a></strong></dt>
+<dd>&nbsp;
+</dd>
+<dt><strong>DashLine<a name="681"></a></strong></dt>
+<dd>&nbsp;
+</dd>
+<dt><strong>DashDotLine<a name="682"></a></strong></dt>
+<dd>&nbsp;
+</dd>
+<dt><strong>DashDotDotLine<a name="683"></a></strong></dt>
+<dd>&nbsp;
+</dd>
+<dt><strong>MiterJoin<a name="684"></a></strong></dt>
+<dd>&nbsp;
+</dd>
+<dt><strong>BevelJoin<a name="685"></a></strong></dt>
+<dd>&nbsp;
+</dd>
+<dt><strong>RoundJoin<a name="686"></a></strong></dt>
+<dd>&nbsp;
+</dd>
+<dt><strong>FlatCap<a name="687"></a></strong></dt>
+<dd>&nbsp;
+</dd>
+<dt><strong>SquareCap<a name="688"></a></strong></dt>
+<dd>&nbsp;
+</dd>
+<dt><strong>RoundCap<a name="689"></a></strong></dt>
+<dd>&nbsp;
+</dd>
+</dl>
+Fill related Definitions:
+
+<p>
+<dl>
+<dt><strong>NoGradient<a name="692"></a></strong></dt>
+<dd>&nbsp;
+</dd>
+<dt><strong>HorizontalGradient<a name="693"></a></strong></dt>
+<dd>&nbsp;
+</dd>
+<dt><strong>VerticalGradient<a name="694"></a></strong></dt>
+<dd>&nbsp;
+</dd>
+<dt><strong>DiagonalGradient<a name="695"></a></strong></dt>
+<dd>&nbsp;
+</dd>
+<dt><strong>CrossDiagonalGradient<a name="696"></a></strong></dt>
+<dd>&nbsp;
+</dd>
+<dt><strong>RadialGradient<a name="697"></a></strong></dt>
+<dd>&nbsp;
+</dd>
+</dl><hr>
+<!--Navigation Panel-->
+
+<b> Next:</b> <a name="tex2html257"
+ href="node19.html">Index</a>
+<b> Up:</b> <a name="tex2html253"
+ href="node3.html">The available Commands</a>
+<b> Previous:</b> <a name="tex2html249"
+ href="node17.html">Using Dialogs from Scribus</a>
+ &nbsp; <b> <a name="tex2html255"
+ href="node19.html">Index</a></b>
+<!--End of Navigation Panel-->
+
+</body>
+</html>
/trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node18.html
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node19.html
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node19.html (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node19.html (revision 82)
@@ -0,0 +1,372 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+
+<!--Converted with LaTeX2HTML 2002-1 (1.69)
+original version by: Nikos Drakos, CBLU, University of Leeds
+* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
+* with significant contributions from:
+ Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
+<html>
+<head>
+<title>Index</title>
+<meta name="description" content="Index">
+<meta name="keywords" content="Manual">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<meta name="Generator" content="LaTeX2HTML v2002-1">
+<meta http-equiv="Content-Style-Type" content="text/css">
+
+<link rel="STYLESHEET" href="Manual.css">
+
+<link rel="previous" href="node3.html">
+<link rel="up" href="Manual.html">
+</head>
+
+<body >
+<!--Navigation Panel-->
+
+<b> Up:</b> <a name="tex2html263"
+ href="Manual.html">Scripting Scribus with Python</a>
+<b> Previous:</b> <a name="tex2html259"
+ href="node18.html">Predefined Constants</a>
+<br>
+<br>
+<!--End of Navigation Panel-->
+<br>
+
+<h2><a name="SECTION00400000000000000000">
+Index</a>
+</h2><dl compact>
+<dt><strong>A0</strong>
+<dd><a href="node18.html#636">Predefined Constants</a>
+<dt><strong>A1</strong>
+<dd><a href="node18.html#637">Predefined Constants</a>
+<dt><strong>A2</strong>
+<dd><a href="node18.html#638">Predefined Constants</a>
+<dt><strong>A3</strong>
+<dd><a href="node18.html#639">Predefined Constants</a>
+<dt><strong>A4</strong>
+<dd><a href="node18.html#640">Predefined Constants</a>
+<dt><strong>A5</strong>
+<dd><a href="node18.html#641">Predefined Constants</a>
+<dt><strong>A6</strong>
+<dd><a href="node18.html#642">Predefined Constants</a>
+<dt><strong>A7</strong>
+<dd><a href="node18.html#643">Predefined Constants</a>
+<dt><strong>A8</strong>
+<dd><a href="node18.html#644">Predefined Constants</a>
+<dt><strong>A9</strong>
+<dd><a href="node18.html#645">Predefined Constants</a>
+<dt><strong>B0</strong>
+<dd><a href="node18.html#646">Predefined Constants</a>
+<dt><strong>B1</strong>
+<dd><a href="node18.html#647">Predefined Constants</a>
+<dt><strong>B10</strong>
+<dd><a href="node18.html#656">Predefined Constants</a>
+<dt><strong>B2</strong>
+<dd><a href="node18.html#648">Predefined Constants</a>
+<dt><strong>B3</strong>
+<dd><a href="node18.html#649">Predefined Constants</a>
+<dt><strong>B4</strong>
+<dd><a href="node18.html#650">Predefined Constants</a>
+<dt><strong>B5</strong>
+<dd><a href="node18.html#651">Predefined Constants</a>
+<dt><strong>B6</strong>
+<dd><a href="node18.html#652">Predefined Constants</a>
+<dt><strong>B7</strong>
+<dd><a href="node18.html#653">Predefined Constants</a>
+<dt><strong>B8</strong>
+<dd><a href="node18.html#654">Predefined Constants</a>
+<dt><strong>B9</strong>
+<dd><a href="node18.html#655">Predefined Constants</a>
+<dt><strong>BevelJoin</strong>
+<dd><a href="node18.html#685">Predefined Constants</a>
+<dt><strong>C5E</strong>
+<dd><a href="node18.html#657">Predefined Constants</a>
+<dt><strong>Centered</strong>
+<dd><a href="node18.html#675">Predefined Constants</a>
+<dt><strong>ChangeColor</strong>
+<dd><a href="node14.html#553">Color related Commands</a>
+<dt><strong>CloseDoc</strong>
+<dd><a href="node4.html#45">Document related Commands</a>
+<dt><strong>Comm10E</strong>
+<dd><a href="node18.html#658">Predefined Constants</a>
+<dt><strong>CreateBezierLine</strong>
+<dd><a href="node7.html#106">Creating and Destructing Objects</a>
+<dt><strong>CreateEllipse</strong>
+<dd><a href="node7.html#113">Creating and Destructing Objects</a>
+<dt><strong>CreateImage</strong>
+<dd><a href="node7.html#118">Creating and Destructing Objects</a>
+<dt><strong>CreateLayer</strong>
+<dd><a href="node16.html#577">Layer related Commands</a>
+<dt><strong>CreateLine</strong>
+<dd><a href="node7.html#123">Creating and Destructing Objects</a>
+<dt><strong>CreatePolygon</strong>
+<dd><a href="node7.html#135">Creating and Destructing Objects</a>
+<dt><strong>CreatePolyLine</strong>
+<dd><a href="node7.html#142">Creating and Destructing Objects</a>
+<dt><strong>CreateRect</strong>
+<dd><a href="node7.html#149">Creating and Destructing Objects</a>
+<dt><strong>CreateText</strong>
+<dd><a href="node7.html#154">Creating and Destructing Objects</a>
+<dt><strong>CrossDiagonalGradient</strong>
+<dd><a href="node18.html#696">Predefined Constants</a>
+<dt><strong>CurrentPage</strong>
+<dd><a href="node5.html#84">Page related Commands</a>
+<dt><strong>DashDotDotLine</strong>
+<dd><a href="node18.html#683">Predefined Constants</a>
+<dt><strong>DashDotLine</strong>
+<dd><a href="node18.html#682">Predefined Constants</a>
+<dt><strong>DashLine</strong>
+<dd><a href="node18.html#681">Predefined Constants</a>
+<dt><strong>DefineColor</strong>
+<dd><a href="node14.html#556">Color related Commands</a>
+<dt><strong>DeleteColor</strong>
+<dd><a href="node14.html#559">Color related Commands</a>
+<dt><strong>DeleteLayer</strong>
+<dd><a href="node16.html#580">Layer related Commands</a>
+<dt><strong>DeleteObject</strong>
+<dd><a href="node7.html#159">Creating and Destructing Objects</a>
+<dt><strong>DeletePage</strong>
+<dd><a href="node5.html#85">Page related Commands</a>
+<dt><strong>DeleteText</strong>
+<dd><a href="node12.html#426">Handling Text Frames</a>
+<dt><strong>DeselectAll</strong>
+<dd><a href="node8.html#168">Selecting Objects</a>
+<dt><strong>DiagonalGradient</strong>
+<dd><a href="node18.html#695">Predefined Constants</a>
+<dt><strong>DLE</strong>
+<dd><a href="node18.html#659">Predefined Constants</a>
+<dt><strong>Executive</strong>
+<dd><a href="node18.html#660">Predefined Constants</a>
+<dt><strong>FacingPages</strong>
+<dd><a href="node18.html#668">Predefined Constants</a>
+<dt><strong>FirstPageLeft</strong>
+<dd><a href="node18.html#670">Predefined Constants</a>
+<dt><strong>FirstPageRight</strong>
+<dd><a href="node18.html#671">Predefined Constants</a>
+<dt><strong>FlatCap</strong>
+<dd><a href="node18.html#687">Predefined Constants</a>
+<dt><strong>Folio</strong>
+<dd><a href="node18.html#661">Predefined Constants</a>
+<dt><strong>Forced</strong>
+<dd><a href="node18.html#677">Predefined Constants</a>
+<dt><strong>GetActiveLayer</strong>
+<dd><a href="node16.html#583">Layer related Commands</a>
+<dt><strong>GetAllObjects</strong>
+<dd><a href="node5.html#86">Page related Commands</a>
+<dt><strong>GetColor</strong>
+<dd><a href="node14.html#563">Color related Commands</a>
+<dt><strong>GetColorNames</strong>
+<dd><a href="node14.html#566">Color related Commands</a>
+<dt><strong>GetCornerRadius</strong>
+<dd><a href="node10.html#279">Getting Object Properties</a>
+<dt><strong>GetFillColor</strong>
+<dd><a href="node10.html#285">Getting Object Properties</a>
+<dt><strong>GetFillShade</strong>
+<dd><a href="node10.html#291">Getting Object Properties</a>
+<dt><strong>GetFont</strong>
+<dd><a href="node12.html#438">Handling Text Frames</a>
+<dt><strong>GetFontNames</strong>
+<dd><a href="node15.html#573">Font related Commands</a>
+<dt><strong>GetFontSize</strong>
+<dd><a href="node12.html#444">Handling Text Frames</a>
+<dt><strong>GetImageFile</strong>
+<dd><a href="node10.html#297">Getting Object Properties</a>
+<dt><strong>GetImageScale</strong>
+<dd><a href="node10.html#302">Getting Object Properties</a>
+<dt><strong>GetLayers</strong>
+<dd><a href="node16.html#584">Layer related Commands</a>
+<dt><strong>GetLineCap</strong>
+<dd><a href="node10.html#308">Getting Object Properties</a>
+<dt><strong>GetLineColor</strong>
+<dd><a href="node10.html#314">Getting Object Properties</a>
+<dt><strong>GetLineJoin</strong>
+<dd><a href="node10.html#320">Getting Object Properties</a>
+<dt><strong>GetLineShade</strong>
+<dd><a href="node10.html#326">Getting Object Properties</a>
+<dt><strong>GetLineSpacing</strong>
+<dd><a href="node12.html#432">Handling Text Frames</a>
+<dt><strong>GetLineStyle</strong>
+<dd><a href="node10.html#332">Getting Object Properties</a>
+<dt><strong>GetLineWidth</strong>
+<dd><a href="node10.html#338">Getting Object Properties</a>
+<dt><strong>GetPosition</strong>
+<dd><a href="node10.html#344">Getting Object Properties</a>
+<dt><strong>GetRotation</strong>
+<dd><a href="node10.html#350">Getting Object Properties</a>
+<dt><strong>GetSelectedObject</strong>
+<dd><a href="node8.html#169">Selecting Objects</a>
+<dt><strong>GetSize</strong>
+<dd><a href="node10.html#356">Getting Object Properties</a>
+<dt><strong>GetText</strong>
+<dd><a href="node12.html#450">Handling Text Frames</a>
+<dt><strong>GetTextColor</strong>
+<dd><a href="node12.html#456">Handling Text Frames</a>
+<dt><strong>GetTextLength</strong>
+<dd><a href="node12.html#462">Handling Text Frames</a>
+<dt><strong>GetTextShade</strong>
+<dd><a href="node12.html#468">Handling Text Frames</a>
+<dt><strong>GetUnit</strong>
+<dd><a href="node4.html#46">Document related Commands</a>
+<dt><strong>GotoPage</strong>
+<dd><a href="node5.html#87">Page related Commands</a>
+<dt><strong>GroupObjects</strong>
+<dd><a href="node11.html#365">Manipulating Objects</a>
+<dt><strong>HaveDoc</strong>
+<dd><a href="node4.html#51">Document related Commands</a>
+<dt><strong>HorizontalGradient</strong>
+<dd><a href="node18.html#693">Predefined Constants</a>
+<dt><strong>Inches</strong>
+<dd><a href="node18.html#628">Predefined Constants</a>
+<dt><strong>InsertText</strong>
+<dd><a href="node12.html#474">Handling Text Frames</a>
+<dt><strong>IsLayerPrintable</strong>
+<dd><a href="node16.html#585">Layer related Commands</a>
+<dt><strong>IsLayerVisible</strong>
+<dd><a href="node16.html#590">Layer related Commands</a>
+<dt><strong>Landscape</strong>
+<dd><a href="node18.html#633">Predefined Constants</a>
+<dt><strong>Ledger</strong>
+<dd><a href="node18.html#662">Predefined Constants</a>
+<dt><strong>LeftAlign</strong>
+<dd><a href="node18.html#674">Predefined Constants</a>
+<dt><strong>Legal</strong>
+<dd><a href="node18.html#663">Predefined Constants</a>
+<dt><strong>Letter</strong>
+<dd><a href="node18.html#664">Predefined Constants</a>
+<dt><strong>LoadImage</strong>
+<dd><a href="node9.html#179">Setting Object Properties</a>
+<dt><strong>Milimeters</strong>
+<dd><a href="node18.html#627">Predefined Constants</a>
+<dt><strong>MiterJoin</strong>
+<dd><a href="node18.html#684">Predefined Constants</a>
+<dt><strong>MoveObject</strong>
+<dd><a href="node11.html#375">Manipulating Objects</a>
+<dt><strong>MoveObjectAbs</strong>
+<dd><a href="node11.html#382">Manipulating Objects</a>
+<dt><strong>NewDoc</strong>
+<dd><a href="node4.html#52">Document related Commands</a>
+<dt><strong>NewDocDialog</strong>
+<dd><a href="node17.html#621">Using Dialogs from Scribus</a>
+<dt><strong>NewPage</strong>
+<dd><a href="node5.html#90">Page related Commands</a>
+<dt><strong>NoFacingPages</strong>
+<dd><a href="node18.html#669">Predefined Constants</a>
+<dt><strong>NoGradient</strong>
+<dd><a href="node18.html#692">Predefined Constants</a>
+<dt><strong>OpenDoc</strong>
+<dd><a href="node4.html#65">Document related Commands</a>
+<dt><strong>PageCount</strong>
+<dd><a href="node5.html#97">Page related Commands</a>
+<dt><strong>Picas</strong>
+<dd><a href="node18.html#629">Predefined Constants</a>
+<dt><strong>Points</strong>
+<dd><a href="node18.html#626">Predefined Constants</a>
+<dt><strong>Portrait</strong>
+<dd><a href="node18.html#632">Predefined Constants</a>
+<dt><strong>RadialGradient</strong>
+<dd><a href="node18.html#697">Predefined Constants</a>
+<dt><strong>RedrawAll</strong>
+<dd><a href="node5.html#98">Page related Commands</a>
+<dt><strong>ReplaceColor</strong>
+<dd><a href="node14.html#567">Color related Commands</a>
+<dt><strong>RightAlign</strong>
+<dd><a href="node18.html#676">Predefined Constants</a>
+<dt><strong>RotateObject</strong>
+<dd><a href="node11.html#390">Manipulating Objects</a>
+<dt><strong>RotateObjectAbs</strong>
+<dd><a href="node11.html#397">Manipulating Objects</a>
+<dt><strong>RoundCap</strong>
+<dd><a href="node18.html#689">Predefined Constants</a>
+<dt><strong>RoundJoin</strong>
+<dd><a href="node18.html#686">Predefined Constants</a>
+<dt><strong>SaveDoc</strong>
+<dd><a href="node4.html#68">Document related Commands</a>
+<dt><strong>SaveDocAs</strong>
+<dd><a href="node4.html#69">Document related Commands</a>
+<dt><strong>SavePageAsEPS</strong>
+<dd><a href="node5.html#100">Page related Commands</a>
+<dt><strong>ScaleGroup</strong>
+<dd><a href="node11.html#404">Manipulating Objects</a>
+<dt><strong>ScaleImage</strong>
+<dd><a href="node9.html#186">Setting Object Properties</a>
+<dt><strong>SelectionCount</strong>
+<dd><a href="node8.html#173">Selecting Objects</a>
+<dt><strong>SelectObject</strong>
+<dd><a href="node8.html#174">Selecting Objects</a>
+<dt><strong>SelectText</strong>
+<dd><a href="node12.html#496">Handling Text Frames</a>
+<dt><strong>SentToLayer</strong>
+<dd><a href="node16.html#595">Layer related Commands</a>
+<dt><strong>SetActiveLayer</strong>
+<dd><a href="node16.html#603">Layer related Commands</a>
+<dt><strong>SetCornerRadius</strong>
+<dd><a href="node9.html#192">Setting Object Properties</a>
+<dt><strong>SetDocType</strong>
+<dd><a href="node4.html#77">Document related Commands</a>
+<dt><strong>SetFillColor</strong>
+<dd><a href="node9.html#198">Setting Object Properties</a>
+<dt><strong>SetFillShade</strong>
+<dd><a href="node9.html#206">Setting Object Properties</a>
+<dt><strong>SetFont</strong>
+<dd><a href="node12.html#512">Handling Text Frames</a>
+<dt><strong>SetFontSize</strong>
+<dd><a href="node12.html#519">Handling Text Frames</a>
+<dt><strong>SetGradientFill</strong>
+<dd><a href="node9.html#214">Setting Object Properties</a>
+<dt><strong>SetInfo</strong>
+<dd><a href="node4.html#72">Document related Commands</a>
+<dt><strong>SetLayerPrintable</strong>
+<dd><a href="node16.html#606">Layer related Commands</a>
+<dt><strong>SetLayerVisible</strong>
+<dd><a href="node16.html#612">Layer related Commands</a>
+<dt><strong>SetLineCap</strong>
+<dd><a href="node9.html#222">Setting Object Properties</a>
+<dt><strong>SetLineColor</strong>
+<dd><a href="node9.html#230">Setting Object Properties</a>
+<dt><strong>SetLineJoin</strong>
+<dd><a href="node9.html#244">Setting Object Properties</a>
+<dt><strong>SetLineShade</strong>
+<dd><a href="node9.html#252">Setting Object Properties</a>
+<dt><strong>SetLineSpacing</strong>
+<dd><a href="node12.html#505">Handling Text Frames</a>
+<dt><strong>SetLineStyle</strong>
+<dd><a href="node9.html#260">Setting Object Properties</a>
+<dt><strong>SetLineWidth</strong>
+<dd><a href="node9.html#268">Setting Object Properties</a>
+<dt><strong>SetMargins</strong>
+<dd><a href="node4.html#74">Document related Commands</a>
+<dt><strong>SetMultiLine</strong>
+<dd><a href="node9.html#237">Setting Object Properties</a>
+<dt><strong>SetRedraw</strong>
+<dd><a href="node5.html#99">Page related Commands</a>
+<dt><strong>SetText</strong>
+<dd><a href="node12.html#527">Handling Text Frames</a>
+<dt><strong>SetTextAlignment</strong>
+<dd><a href="node12.html#483">Handling Text Frames</a>
+<dt><strong>SetTextColor</strong>
+<dd><a href="node12.html#534">Handling Text Frames</a>
+<dt><strong>SetTextShade</strong>
+<dd><a href="node12.html#541">Handling Text Frames</a>
+<dt><strong>SetUnit</strong>
+<dd><a href="node4.html#78">Document related Commands</a>
+<dt><strong>SizeObject</strong>
+<dd><a href="node11.html#411">Manipulating Objects</a>
+<dt><strong>SolidLine</strong>
+<dd><a href="node18.html#680">Predefined Constants</a>
+<dt><strong>SquareCap</strong>
+<dd><a href="node18.html#688">Predefined Constants</a>
+<dt><strong>Tabloid</strong>
+<dd><a href="node18.html#665">Predefined Constants</a>
+<dt><strong>UnGroupObject</strong>
+<dd><a href="node11.html#417">Manipulating Objects</a>
+<dt><strong>VerticalGradient</strong>
+<dd><a href="node18.html#694">Predefined Constants</a>
+
+</dl>
+<br><hr>
+
+</body>
+</html>
/trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node19.html
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/doc/en/Manual.css
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/doc/en/Manual.css (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/doc/en/Manual.css (revision 82)
@@ -0,0 +1,10 @@
+<!--
+ TD P { font-family: Verdana, MS Trebuchet, Arial, Helvetica, sans-serif }
+ H2 { font-family: Verdana, MS Trebuchet, Arial, Helvetica, sans-serif}
+ H3 { font-family: Verdana, MS Trebuchet, Arial, Helvetica, sans-serif }
+ H4 { font-family: Verdana, MS Trebuchet, Arial, Helvetica, sans-serif }
+ P { font-family: Verdana, MS Trebuchet, Arial, Helvetica, sans-serif }
+ ul { font-family: Verdana, MS Trebuchet, Arial, Helvetica, sans-serif }
+ a:hover {color: #FF0000; font-family: Verdana, MS Trebuchet, Arial, Helvetica, sans-serif ; font-weight: bold}
+ code { font-family: courier, fixed, monospace; }
+ -->
\ No newline at end of file
/trunk/Scribus/scribus/plugins/scriptplugin/doc/en/Manual.css
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node1.html
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node1.html (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node1.html (revision 82)
@@ -0,0 +1,81 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+
+<!--Converted with LaTeX2HTML 2002-1 (1.69)
+original version by: Nikos Drakos, CBLU, University of Leeds
+* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
+* with significant contributions from:
+ Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
+<html>
+<head>
+<title>Installation</title>
+<meta name="description" content="Installation">
+<meta name="keywords" content="Manual">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<meta name="Generator" content="LaTeX2HTML v2002-1">
+<meta http-equiv="Content-Style-Type" content="text/css">
+
+<link rel="STYLESHEET" href="Manual.css">
+
+<link rel="next" href="node2.html">
+<link rel="previous" href="Manual.html">
+<link rel="up" href="Manual.html">
+<link rel="next" href="node2.html">
+</head>
+
+<body >
+<!--Navigation Panel-->
+
+<b> Next:</b> <a name="tex2html35"
+ href="node2.html">Using the Plugin</a>
+<b> Up:</b> <a name="tex2html31"
+ href="Manual.html">Scripting Scribus with Python</a>
+<b> Previous:</b> <a name="tex2html25"
+ href="Manual.html">Scripting Scribus with Python</a>
+ &nbsp; <b> <a name="tex2html33"
+ href="node19.html">Index</a></b>
+<br>
+<br>
+<!--End of Navigation Panel-->
+
+<h1><a name="SECTION00100000000000000000">
+Installation</a>
+</h1>
+
+<p>
+For installing this Plugin you must have installed:
+
+<p>
+
+<ul>
+<li>Scribus Version 1.0 or higher
+</li>
+<li>Python Version 1.52 or higher
+</li>
+</ul>
+The Installation is easy, just unpack the tarball and enter the following
+Commands:
+
+<p>
+<blockquote>
+./configure -prefix=(use the same prefix as for Scribus itself)
+</blockquote>
+<p>
+<blockquote>make
+
+</blockquote>
+and finally as root:
+
+<p>
+<blockquote>
+make install
+
+</blockquote>
+That's it. After restarting Scribus you should see a new Entry in
+the Menubar left to the Help Item called ``Script''
+
+<p>
+</body>
+</html>
/trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node1.html
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/doc/en/Makefile.am
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/doc/en/Makefile.am (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/doc/en/Makefile.am (revision 82)
@@ -0,0 +1,76 @@
+####### kdevelop will overwrite this part!!! (begin)##########
+
+
+EXTRA_DIST = index.html node1.html node10.html node11.html node12.html node13.html node14.html node15.html node16.html node17.html node18.html node2.html node3.html Scripter.png node9.html node8.html node7.html node6.html node5.html node4.html Manual.css node19.html
+
+install-data-local:
+ $(mkinstalldirs) $(prefix)/lib/scribus/doc/en/Scripter/
+ $(INSTALL_DATA) $(srcdir)/index.html $(prefix)/lib/scribus/doc/en/Scripter/index.html
+ $(mkinstalldirs) $(prefix)/lib/scribus/doc/en/Scripter/
+ $(INSTALL_DATA) $(srcdir)/node1.html $(prefix)/lib/scribus/doc/en/Scripter/node1.html
+ $(mkinstalldirs) $(prefix)/lib/scribus/doc/en/Scripter/
+ $(INSTALL_DATA) $(srcdir)/node10.html $(prefix)/lib/scribus/doc/en/Scripter/node10.html
+ $(mkinstalldirs) $(prefix)/lib/scribus/doc/en/Scripter/
+ $(INSTALL_DATA) $(srcdir)/node11.html $(prefix)/lib/scribus/doc/en/Scripter/node11.html
+ $(mkinstalldirs) $(prefix)/lib/scribus/doc/en/Scripter/
+ $(INSTALL_DATA) $(srcdir)/node12.html $(prefix)/lib/scribus/doc/en/Scripter/node12.html
+ $(mkinstalldirs) $(prefix)/lib/scribus/doc/en/Scripter/
+ $(INSTALL_DATA) $(srcdir)/node13.html $(prefix)/lib/scribus/doc/en/Scripter/node13.html
+ $(mkinstalldirs) $(prefix)/lib/scribus/doc/en/Scripter/
+ $(INSTALL_DATA) $(srcdir)/node14.html $(prefix)/lib/scribus/doc/en/Scripter/node14.html
+ $(mkinstalldirs) $(prefix)/lib/scribus/doc/en/Scripter/
+ $(INSTALL_DATA) $(srcdir)/node15.html $(prefix)/lib/scribus/doc/en/Scripter/node15.html
+ $(mkinstalldirs) $(prefix)/lib/scribus/doc/en/Scripter/
+ $(INSTALL_DATA) $(srcdir)/node16.html $(prefix)/lib/scribus/doc/en/Scripter/node16.html
+ $(mkinstalldirs) $(prefix)/lib/scribus/doc/en/Scripter/
+ $(INSTALL_DATA) $(srcdir)/node17.html $(prefix)/lib/scribus/doc/en/Scripter/node17.html
+ $(mkinstalldirs) $(prefix)/lib/scribus/doc/en/Scripter/
+ $(INSTALL_DATA) $(srcdir)/node18.html $(prefix)/lib/scribus/doc/en/Scripter/node18.html
+ $(mkinstalldirs) $(prefix)/lib/scribus/doc/en/Scripter/
+ $(INSTALL_DATA) $(srcdir)/node2.html $(prefix)/lib/scribus/doc/en/Scripter/node2.html
+ $(mkinstalldirs) $(prefix)/lib/scribus/doc/en/Scripter/
+ $(INSTALL_DATA) $(srcdir)/node3.html $(prefix)/lib/scribus/doc/en/Scripter/node3.html
+ $(mkinstalldirs) $(prefix)/lib/scribus/doc/en/Scripter/
+ $(INSTALL_DATA) $(srcdir)/Scripter.png $(prefix)/lib/scribus/doc/en/Scripter/Scripter.png
+ $(mkinstalldirs) $(prefix)/lib/scribus/doc/en/Scripter/
+ $(INSTALL_DATA) $(srcdir)/node9.html $(prefix)/lib/scribus/doc/en/Scripter/node9.html
+ $(mkinstalldirs) $(prefix)/lib/scribus/doc/en/Scripter/
+ $(INSTALL_DATA) $(srcdir)/node8.html $(prefix)/lib/scribus/doc/en/Scripter/node8.html
+ $(mkinstalldirs) $(prefix)/lib/scribus/doc/en/Scripter/
+ $(INSTALL_DATA) $(srcdir)/node7.html $(prefix)/lib/scribus/doc/en/Scripter/node7.html
+ $(mkinstalldirs) $(prefix)/lib/scribus/doc/en/Scripter/
+ $(INSTALL_DATA) $(srcdir)/node6.html $(prefix)/lib/scribus/doc/en/Scripter/node6.html
+ $(mkinstalldirs) $(prefix)/lib/scribus/doc/en/Scripter/
+ $(INSTALL_DATA) $(srcdir)/node5.html $(prefix)/lib/scribus/doc/en/Scripter/node5.html
+ $(mkinstalldirs) $(prefix)/lib/scribus/doc/en/Scripter/
+ $(INSTALL_DATA) $(srcdir)/node4.html $(prefix)/lib/scribus/doc/en/Scripter/node4.html
+ $(mkinstalldirs) $(prefix)/lib/scribus/doc/en/Scripter/
+ $(INSTALL_DATA) $(srcdir)/Manual.css $(prefix)/lib/scribus/doc/en/Scripter/Manual.css
+ $(mkinstalldirs) $(prefix)/lib/scribus/doc/en/Scripter/
+ $(INSTALL_DATA) $(srcdir)/node19.html $(prefix)/lib/scribus/doc/en/Scripter/node19.html
+
+uninstall-local:
+ -rm -f $(prefix)/lib/scribus/doc/en/Scripter/index.html
+ -rm -f $(prefix)/lib/scribus/doc/en/Scripter/node1.html
+ -rm -f $(prefix)/lib/scribus/doc/en/Scripter/node10.html
+ -rm -f $(prefix)/lib/scribus/doc/en/Scripter/node11.html
+ -rm -f $(prefix)/lib/scribus/doc/en/Scripter/node12.html
+ -rm -f $(prefix)/lib/scribus/doc/en/Scripter/node13.html
+ -rm -f $(prefix)/lib/scribus/doc/en/Scripter/node14.html
+ -rm -f $(prefix)/lib/scribus/doc/en/Scripter/node15.html
+ -rm -f $(prefix)/lib/scribus/doc/en/Scripter/node16.html
+ -rm -f $(prefix)/lib/scribus/doc/en/Scripter/node17.html
+ -rm -f $(prefix)/lib/scribus/doc/en/Scripter/node18.html
+ -rm -f $(prefix)/lib/scribus/doc/en/Scripter/node2.html
+ -rm -f $(prefix)/lib/scribus/doc/en/Scripter/node3.html
+ -rm -f $(prefix)/lib/scribus/doc/en/Scripter/Scripter.png
+ -rm -f $(prefix)/lib/scribus/doc/en/Scripter/node9.html
+ -rm -f $(prefix)/lib/scribus/doc/en/Scripter/node8.html
+ -rm -f $(prefix)/lib/scribus/doc/en/Scripter/node7.html
+ -rm -f $(prefix)/lib/scribus/doc/en/Scripter/node6.html
+ -rm -f $(prefix)/lib/scribus/doc/en/Scripter/node5.html
+ -rm -f $(prefix)/lib/scribus/doc/en/Scripter/node4.html
+ -rm -f $(prefix)/lib/scribus/doc/en/Scripter/Manual.css
+ -rm -f $(prefix)/lib/scribus/doc/en/Scripter/node19.html
+
+####### kdevelop will overwrite this part!!! (end)############
/trunk/Scribus/scribus/plugins/scriptplugin/doc/en/Makefile.am
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node2.html
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node2.html (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node2.html (revision 82)
@@ -0,0 +1,73 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+
+<!--Converted with LaTeX2HTML 2002-1 (1.69)
+original version by: Nikos Drakos, CBLU, University of Leeds
+* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
+* with significant contributions from:
+ Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
+<html>
+<head>
+<title>Using the Plugin</title>
+<meta name="description" content="Using the Plugin">
+<meta name="keywords" content="Manual">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<meta name="Generator" content="LaTeX2HTML v2002-1">
+<meta http-equiv="Content-Style-Type" content="text/css">
+
+<link rel="STYLESHEET" href="Manual.css">
+
+<link rel="next" href="node3.html">
+<link rel="previous" href="node1.html">
+<link rel="up" href="Manual.html">
+<link rel="next" href="node3.html">
+</head>
+
+<body >
+<!--Navigation Panel-->
+
+<b> Next:</b> <a name="tex2html47"
+ href="node3.html">The available Commands</a>
+<b> Up:</b> <a name="tex2html43"
+ href="Manual.html">Scripting Scribus with Python</a>
+<b> Previous:</b> <a name="tex2html37"
+ href="node1.html">Installation</a>
+ &nbsp; <b> <a name="tex2html45"
+ href="node19.html">Index</a></b>
+<br>
+<br>
+<!--End of Navigation Panel-->
+
+<h2 align=center><a name="SECTION00200000000000000000">
+Using the Plugin</a><br><br>
+<img src="Scripter.png" width="416" height="156" align="center"></h2>
+<p>
+To execute a Python Script select ``Script-&gt;Execute Script...''
+Scribus will display a Fileselect Box which allows you to select a
+Python Script. Below there is an extra Menu item ``Recent Scripts''
+where all your recent Scripts are remembered. How many Scripts are
+remembered depends on your Setting for Recent Documents in the Scribus
+Preferences.
+
+<p>
+You can use many Python Programs with this Plugin. The only exception
+are Scripts who expect Parameters from the Command Line. They won't
+work because the Plugin gives the Python Interpreter an empty Command
+Line.
+
+<p>
+The Menu Item ``Show Console'' gives you an interactive Python
+Console, where you can execute Commands directly. There is no need
+to do a ``from scribus import *'', this has already been done.
+You can use all the following Commands directly without any Prefix.
+
+<p>
+You can display this Reference Manual when you select ``Script-&gt;Online
+Help''.
+
+<p>
+
+</body>
+</html>
/trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node2.html
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/doc/en/index.html
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/doc/en/index.html (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/doc/en/index.html (revision 82)
@@ -0,0 +1,116 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+
+<!--Converted with LaTeX2HTML 2002-1 (1.69)
+original version by: Nikos Drakos, CBLU, University of Leeds
+* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
+* with significant contributions from:
+ Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
+<html>
+<head>
+<title>Scripting Scribus with Python</title>
+<meta name="description" content="Scripting scribus with Python">
+<meta name="keywords" content="Manual">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<meta name="Generator" content="LaTeX2HTML v2002-1">
+<meta http-equiv="Content-Style-Type" content="text/css">
+
+<link rel="STYLESHEET" href="Manual.css">
+
+<link rel="next" href="node1.html">
+</head>
+
+<body >
+<!--Navigation Panel-->
+
+<b> Next:</b> <a name="tex2html4"
+ href="node1.html">Installation</a>
+ &nbsp; <b> <a name="tex2html2"
+ href="node19.html">Index</a></b>
+<br>
+<br>
+<!--End of Navigation Panel-->
+
+<center><IMG SRC="../scribus_head.png" NAME="Graphic1" ALT="Scribus Logo" ALIGN=MIDDLE WIDTH=400 HEIGHT=79 BORDER=0></center><BR>
+
+<h1 align="CENTER">Scripting Scribus with Python</h1>
+<div>
+
+<p align="CENTER"><strong>Franz Schmid</strong></p>
+<p align="CENTER"><strong>18.07.2003</strong></p>
+</div>
+
+<h3>Abstract:</h3>
+<div>
+This is the description how to use the Scripting Plugin for Scribus.
+This Plugin allows you to use the powerful Python Language as a Scripting
+Language in Scribus.
+
+<p><p>This manual is the first version, by no means complete or fully
+accurate. There are just a couple of commands written in <font color="#ff0000"><b>red letters aren't yet implemented</b></font> yet in this version.</p>
+<p>There are some simple example scripts in the <code>samples</code> subdirectory where Scribus is installed. If you have created scripts which would be useful for other users, please feel free to contribute a copy to the program author, Franz Schmid. Hopefully, in the near future, a Scribus plug-in gallery will be added.
+</div>
+<H4>Program Author Franz Schmid <A HREF="mailto:Franz.Schmid@altmuehlnet.de">Franz.Schmid@altmuehlnet.de</A></H4>
+<P>Scripting Plug-in Version 0.5, 18 July 2003</p>
+<P>Reference Documentation by Franz Schmid with the assistance of Peter Linnell, <A HREF="mailto:netscribe@attbi.com">netscribe@attbi.com</A> completed for 1.0</p>
+<hr>
+<!--Table of Child-Links-->
+<a name="CHILD_LINKS"></a>
+
+<ul>
+<li><a name="tex2html5"
+ href="node1.html">Installation</a>
+<li><a name="tex2html6"
+ href="node2.html">Using the Plugin</a>
+<li><a name="tex2html7"
+ href="node3.html">The available Commands</a>
+<ul>
+<li><a name="tex2html8"
+ href="node4.html">Document related Commands</a>
+<li><a name="tex2html9"
+ href="node5.html">Page related Commands</a>
+<li><a name="tex2html10"
+ href="node6.html">Object related Commands</a>
+<ul>
+<li><a name="tex2html11"
+ href="node7.html">Creating and Destructing Objects</a>
+<li><a name="tex2html12"
+ href="node8.html">Selecting Objects</a>
+<li><a name="tex2html13"
+ href="node9.html">Setting Object Properties</a>
+<li><a name="tex2html14"
+ href="node10.html">Getting Object Properties</a>
+<li><a name="tex2html15"
+ href="node11.html">Manipulating Objects</a>
+<li><a name="tex2html16"
+ href="node12.html">Handling Text Frames</a>
+</ul>
+<li><a name="tex2html17"
+ href="node13.html">Other Commands</a>
+<ul>
+<li><a name="tex2html18"
+ href="node14.html">Color related Commands</a>
+<li><a name="tex2html19"
+ href="node15.html">Font related Commands</a>
+<li><a name="tex2html20"
+ href="node16.html">Layer related Commands</a>
+</ul>
+<li><a name="tex2html21"
+ href="node17.html">Using Dialogs from Scribus</a>
+<li><a name="tex2html22"
+ href="node18.html">Predefined Constants</a>
+</ul>
+<br>
+<li><a name="tex2html23"
+ href="node19.html">Index</a>
+</ul>
+<!--End of Table of Child-Links-->
+<br><hr>
+<address>
+Franz Schmid
+2003-07-18
+</address>
+</body>
+</html>
/trunk/Scribus/scribus/plugins/scriptplugin/doc/en/index.html
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node3.html
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node3.html (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node3.html (revision 82)
@@ -0,0 +1,117 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+
+<!--Converted with LaTeX2HTML 2002-1 (1.69)
+original version by: Nikos Drakos, CBLU, University of Leeds
+* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
+* with significant contributions from:
+ Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
+<html>
+<head>
+<title>The available Commands</title>
+<meta name="description" content="The available Commands">
+<meta name="keywords" content="Manual">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<meta name="Generator" content="LaTeX2HTML v2002-1">
+<meta http-equiv="Content-Style-Type" content="text/css">
+
+<link rel="STYLESHEET" href="Manual.css">
+
+<link rel="next" href="node19.html">
+<link rel="previous" href="node2.html">
+<link rel="up" href="Manual.html">
+<link rel="next" href="node4.html">
+</head>
+
+<body >
+<!--Navigation Panel-->
+
+<b> Next:</b> <a name="tex2html59"
+ href="node4.html">Document related Commands</a>
+<b> Up:</b> <a name="tex2html55"
+ href="Manual.html">Scripting Scribus with Python</a>
+<b> Previous:</b> <a name="tex2html49"
+ href="node2.html">Using the Plugin</a>
+ &nbsp; <b> <a name="tex2html57"
+ href="node19.html">Index</a></b>
+<br>
+<br>
+<!--End of Navigation Panel-->
+
+<h1><a name="SECTION00300000000000000000">
+The available Commands</a>
+</h1>
+
+<p>
+The Plugin installs a buildin Module ``scribus''. Thus to use
+the extensions to the Python language you must do a ``import scribus''
+or ``from scribus import *''
+
+<p>
+Conventions used in this Document:
+
+<p>
+<dl>
+<dt><strong>number</strong></dt>
+<dd>means that ``number'' is an ordinary Interger or Floating
+Point Number.
+</dd>
+<dt><strong>``name''</strong></dt>
+<dd>means that ``name'' is a String Literal or Variable.
+</dd>
+<dt><strong><i>list</i></strong></dt>
+<dd>means that ``<i>list</i>'' is a Python List.
+</dd>
+</dl>
+Variables in angled Brackets are optional.
+
+<p>
+<br><hr>
+<!--Table of Child-Links-->
+<a name="CHILD_LINKS"><strong>Subsections</strong></a>
+
+<ul>
+<li><a name="tex2html60"
+ href="node4.html">Document related Commands</a>
+<li><a name="tex2html61"
+ href="node5.html">Page related Commands</a>
+<li><a name="tex2html62"
+ href="node6.html">Object related Commands</a>
+<ul>
+<li><a name="tex2html63"
+ href="node7.html">Creating and Destructing Objects</a>
+<li><a name="tex2html64"
+ href="node8.html">Selecting Objects</a>
+<li><a name="tex2html65"
+ href="node9.html">Setting Object Properties</a>
+<li><a name="tex2html66"
+ href="node10.html">Getting Object Properties</a>
+<li><a name="tex2html67"
+ href="node11.html">Manipulating Objects</a>
+<li><a name="tex2html68"
+ href="node12.html">Handling Text Frames</a>
+</ul>
+<br>
+<li><a name="tex2html69"
+ href="node13.html">Other Commands</a>
+<ul>
+<li><a name="tex2html70"
+ href="node14.html">Color related Commands</a>
+<li><a name="tex2html71"
+ href="node15.html">Font related Commands</a>
+<li><a name="tex2html72"
+ href="node16.html">Layer related Commands</a>
+</ul>
+<br>
+<li><a name="tex2html73"
+ href="node17.html">Using Dialogs from Scribus</a>
+<li><a name="tex2html74"
+ href="node18.html">Predefined Constants</a>
+</ul>
+<!--End of Table of Child-Links-->
+<br><hr>
+
+</body>
+</html>
/trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node3.html
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node4.html
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node4.html (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node4.html (revision 82)
@@ -0,0 +1,182 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+
+<!--Converted with LaTeX2HTML 2002-1 (1.69)
+original version by: Nikos Drakos, CBLU, University of Leeds
+* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
+* with significant contributions from:
+ Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
+<html>
+<head>
+<title>Document related Commands</title>
+<meta name="description" content="Document related Commands">
+<meta name="keywords" content="Manual">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<meta name="Generator" content="LaTeX2HTML v2002-1">
+<meta http-equiv="Content-Style-Type" content="text/css">
+
+<link rel="STYLESHEET" href="Manual.css">
+
+<link rel="next" href="node5.html">
+<link rel="previous" href="node3.html">
+<link rel="up" href="node3.html">
+<link rel="next" href="node5.html">
+</head>
+
+<body >
+<!--Navigation Panel-->
+
+<b> Next:</b> <a name="tex2html86"
+ href="node5.html">Page related Commands</a>
+<b> Up:</b> <a name="tex2html82"
+ href="node3.html">The available Commands</a>
+<b> Previous:</b> <a name="tex2html76"
+ href="node3.html">The available Commands</a>
+ &nbsp; <b> <a name="tex2html84"
+ href="node19.html">Index</a></b>
+<br>
+<br>
+<!--End of Navigation Panel-->
+
+<h1><a name="SECTION00310000000000000000">
+Document related Commands</a>
+</h1>
+
+<p>
+<dl>
+<dt><strong>CloseDoc<a name="45"></a>()</strong></dt>
+<dd>Closes the actual Document. Returns
+true if successful.
+</dd>
+<dt><strong>GetUnit<a name="46"></a>()</strong></dt>
+<dd>Returns the Measurement Unit of the Document.
+Possible Values for Unit are:
+</dd>
+</dl>
+<blockquote>
+0 = Typographic Points
+</blockquote>
+<p>
+<blockquote>1 = Millimeters
+</blockquote>
+<p>
+<blockquote>2 = Inches
+</blockquote>
+<p>
+<blockquote>3 = Picas
+
+</blockquote>
+<dl>
+<dt><strong>HaveDoc<a name="51"></a>()</strong></dt>
+<dd>Returns true if there is a Document open.
+</dd>
+<dt><strong>NewDoc<a name="52"></a>(size,&nbsp;margins,&nbsp;orientation,&nbsp;firstPageNumber,&nbsp;unit,&nbsp;FacingPages,&nbsp;FirstSideLeft)</strong></dt>
+<dd>Creates
+a new Document. The Parameters have the following Meaning:
+</dd>
+</dl>
+<blockquote>
+<div align="LEFT">
+size = A Tuple (width, height) describing
+the Size of the Document.
+<br>
+margins = A Tuple (Left, Right, Top, Bottom) describing the Margins
+of the Document.
+<br>
+orientation = the Page Orientation, 0 means Portrait, 1 is Landscape
+<br>
+firstPageNumer is the Number of the first Page in the Document used
+for Pagenumbering
+<br>
+unit: this Value sets the Measurement Unit of the Document
+</div>
+
+<blockquote>
+<div align="LEFT">
+0 = Typograpic Points
+<br>
+1 = Millimeters
+<br>
+2 = Inches
+<br>
+3 = Picas
+</div>
+</blockquote>
+
+<div align="LEFT">
+FacingPages: 1 means FacingPages turned
+on, 0 means FacingPages turned off
+<br>
+FirstSideLeft: 1 means that the first Page in the Document is a left
+Page, 0 means a right Page as first Page
+<br>
+The values for Width, Height and the Margins are expressed in the
+given unit for the Document.
+</div>
+</blockquote>
+<dl>
+<dt><strong>OpenDoc<a name="65"></a>(``name'')</strong></dt>
+<dd>Opens the Document ``name''.
+Returns true if successful.
+</dd>
+<dt><strong>SaveDoc<a name="68"></a>()</strong></dt>
+<dd>Saves the Document under its actual Name,
+returns true if successful.
+</dd>
+<dt><strong>SaveDocAs<a name="69"></a>(``name'')</strong></dt>
+<dd>Saves the actual Document
+under the new Name ``name''. Returns true if successful.
+</dd>
+<dt><strong>SetInfo<a name="72"></a>(``Author'',&nbsp;''Info'',&nbsp;''Description'')</strong></dt>
+<dd>Sets
+the Document Information.
+</dd>
+<dt><strong>SetMargins<a name="74"></a>(lr,&nbsp;rr,&nbsp;tr,&nbsp;br)</strong></dt>
+<dd>Sets the Printmargins
+of the Document, Left(lr), Right(rr), Top(tr) and Bottom(br) Margins
+are given in the actual measurement Unit of the Document.
+</dd>
+<dt><strong><font color="#ff0000">SetDocType</font><a name="77"></a>(FacingPages,&nbsp;FirstSideLeft)</strong></dt>
+<dd>Sets
+the Type of the Documents, to get Facing Pages set the first Parameter
+to 1, to switch FacingPages off use 0 instead. If you want to be the
+first Page a left Side set the second Parameter to 1, for a right
+Page use 0.
+</dd>
+<dt><strong>SetUnit<a name="78"></a>(unit)</strong></dt>
+<dd>Changes the Measurement Unit of the
+Document. Possible Values for Unit are:
+</dd>
+</dl>
+<blockquote>
+0 = Typographic Points
+</blockquote>
+<p>
+<blockquote>1 = Millimeters
+</blockquote>
+<p>
+<blockquote>2 = Inches
+</blockquote>
+<p>
+<blockquote>3 = Picas
+
+</blockquote>
+
+<p>
+<hr>
+<!--Navigation Panel-->
+
+<b> Next:</b> <a name="tex2html86"
+ href="node5.html">Page related Commands</a>
+<b> Up:</b> <a name="tex2html82"
+ href="node3.html">The available Commands</a>
+<b> Previous:</b> <a name="tex2html76"
+ href="node3.html">The available Commands</a>
+ &nbsp; <b> <a name="tex2html84"
+ href="node19.html">Index</a></b>
+<!--End of Navigation Panel-->
+
+</body>
+</html>
/trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node4.html
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node5.html
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node5.html (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node5.html (revision 82)
@@ -0,0 +1,105 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+
+<!--Converted with LaTeX2HTML 2002-1 (1.69)
+original version by: Nikos Drakos, CBLU, University of Leeds
+* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
+* with significant contributions from:
+ Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
+<html>
+<head>
+<title>Page related Commands</title>
+<meta name="description" content="Page related Commands">
+<meta name="keywords" content="Manual">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<meta name="Generator" content="LaTeX2HTML v2002-1">
+<meta http-equiv="Content-Style-Type" content="text/css">
+
+<link rel="STYLESHEET" href="Manual.css">
+
+<link rel="next" href="node6.html">
+<link rel="previous" href="node4.html">
+<link rel="up" href="node3.html">
+<link rel="next" href="node6.html">
+</head>
+
+<body >
+<!--Navigation Panel-->
+
+<b> Next:</b> <a name="tex2html98"
+ href="node6.html">Object related Commands</a>
+<b> Up:</b> <a name="tex2html94"
+ href="node3.html">The available Commands</a>
+<b> Previous:</b> <a name="tex2html88"
+ href="node4.html">Document related Commands</a>
+ &nbsp; <b> <a name="tex2html96"
+ href="node19.html">Index</a></b>
+<br>
+<br>
+<!--End of Navigation Panel-->
+
+<h1><a name="SECTION00320000000000000000">
+Page related Commands</a>
+</h1>
+
+<p>
+<dl>
+<dt><strong>CurrentPage<a name="84"></a>()</strong></dt>
+<dd>Returns the Number of the current
+working Page. Pagenumbers are counted from 1 upwards.
+</dd>
+<dt><strong>DeletePage<a name="85"></a>(nr)</strong></dt>
+<dd>Deletes the given Page, does nothing
+if the Document contains only one Page. Pagenumbers are counted from
+1 upwards.
+</dd>
+<dt><strong>GetAllObjects<a name="86"></a>()</strong></dt>
+<dd>Returns a List containing
+the Names of all Objects on the actual Page.
+</dd>
+<dt><strong>GotoPage<a name="87"></a>(nr)</strong></dt>
+<dd>Moves to the Page ``nr''. If ``nr''
+is outside the current rage of Pages nothing happens.
+</dd>
+<dt><strong>NewPage<a name="90"></a>(where,&nbsp;[``template''])</strong></dt>
+<dd>Creates
+a new Page If ``where'' is -1 the new Page is appended to the
+Document, otherwise the new Page is inserted at ``where''. The
+Pagenumbers are counted from 1 upwards. The optional Parameter ``template''
+specifies the Name of the Template Page for the new Page.
+</dd>
+<dt><strong>PageCount<a name="97"></a>()</strong></dt>
+<dd>Returns the Number of Pages in the
+Document.
+</dd>
+<dt><strong>RedrawAll<a name="98"></a>()</strong></dt>
+<dd>Redraws all Pages.
+</dd>
+<dt><strong>SetRedraw<a name="99"></a>(bool)</strong></dt>
+<dd>Disables Page Redraw when bool
+= 0, otherwise redrawing is enabled.
+</dd>
+<dt><strong>SavePageAsEPS<a name="100"></a>(``name'')</strong></dt>
+<dd>Saves the actual
+Page as an EPS, returns true if successful.
+</dd>
+</dl>
+
+<p>
+<hr>
+<!--Navigation Panel-->
+
+<b> Next:</b> <a name="tex2html98"
+ href="node6.html">Object related Commands</a>
+<b> Up:</b> <a name="tex2html94"
+ href="node3.html">The available Commands</a>
+<b> Previous:</b> <a name="tex2html88"
+ href="node4.html">Document related Commands</a>
+ &nbsp; <b> <a name="tex2html96"
+ href="node19.html">Index</a></b>
+<!--End of Navigation Panel-->
+
+</body>
+</html>
/trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node5.html
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node6.html
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node6.html (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node6.html (revision 82)
@@ -0,0 +1,70 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
+
+<!--Converted with LaTeX2HTML 2002-1 (1.69)
+original version by: Nikos Drakos, CBLU, University of Leeds
+* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
+* with significant contributions from:
+ Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
+<html>
+<head>
+<title>Object related Commands</title>
+<meta name="description" content="Object related Commands">
+<meta name="keywords" content="Manual">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<meta name="Generator" content="LaTeX2HTML v2002-1">
+<meta http-equiv="Content-Style-Type" content="text/css">
+
+<link rel="STYLESHEET" href="Manual.css">
+
+<link rel="next" href="node13.html">
+<link rel="previous" href="node5.html">
+<link rel="up" href="node3.html">
+<link rel="next" href="node7.html">
+</head>
+
+<body >
+<!--Navigation Panel-->
+
+<b> Next:</b> <a name="tex2html110"
+ href="node7.html">Creating and Destructing Objects</a>
+<b> Up:</b> <a name="tex2html106"
+ href="node3.html">The available Commands</a>
+<b> Previous:</b> <a name="tex2html100"
+ href="node5.html">Page related Commands</a>
+ &nbsp; <b> <a name="tex2html108"
+ href="node19.html">Index</a></b>
+<br>
+<br>
+<!--End of Navigation Panel-->
+
+<h1><a name="SECTION00330000000000000000">
+Object related Commands</a>
+</h1>
+
+<p>
+<br><hr>
+<!--Table of Child-Links-->
+<a name="CHILD_LINKS"><strong>Subsections</strong></a>
+
+<ul>
+<li><a name="tex2html111"
+ href="node7.html">Creating and Destructing Objects</a>
+<li><a name="tex2html112"
+ href="node8.html">Selecting Objects</a>
+<li><a name="tex2html113"
+ href="node9.html">Setting Object Properties</a>
+<li><a name="tex2html114"
+ href="node10.html">Getting Object Properties</a>
+<li><a name="tex2html115"
+ href="node11.html">Manipulating Objects</a>
+<li><a name="tex2html116"
+ href="node12.html">Handling Text Frames</a>
+</ul>
+<!--End of Table of Child-Links-->
+<br><hr>
+
+</body>
+</html>
/trunk/Scribus/scribus/plugins/scriptplugin/doc/en/node6.html
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/doc/en/Scripter.png
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/trunk/Scribus/scribus/plugins/scriptplugin/doc/en/Scripter.png
Property changes:
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/doc/Makefile.am
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/doc/Makefile.am (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/doc/Makefile.am (revision 82)
@@ -0,0 +1,6 @@
+####### kdevelop will overwrite this part!!! (begin)##########
+
+SUBDIRS = en
+
+####### kdevelop will overwrite this part!!! (end)############
+
/trunk/Scribus/scribus/plugins/scriptplugin/doc/Makefile.am
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/cmdmisc.h
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdmisc.h (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdmisc.h (revision 82)
@@ -0,0 +1,21 @@
+#ifndef CMDMISC_H
+#define CMDMISC_H
+
+#include <Python.h>
+
+/** Other Commands */
+PyObject *scribus_setredraw(PyObject *self, PyObject* args);
+PyObject *scribus_fontnames(PyObject *self, PyObject* args);
+PyObject *scribus_getlayers(PyObject *self, PyObject* args);
+PyObject *scribus_setactlayer(PyObject *self, PyObject* args);
+PyObject *scribus_getactlayer(PyObject *self, PyObject* args);
+PyObject *scribus_senttolayer(PyObject *self, PyObject* args);
+PyObject *scribus_layervisible(PyObject *self, PyObject* args);
+PyObject *scribus_layerprint(PyObject *self, PyObject* args);
+PyObject *scribus_glayervisib(PyObject *self, PyObject* args);
+PyObject *scribus_glayerprint(PyObject *self, PyObject* args);
+PyObject *scribus_removelayer(PyObject *self, PyObject* args);
+PyObject *scribus_createlayer(PyObject *self, PyObject* args);
+
+#endif
+
/trunk/Scribus/scribus/plugins/scriptplugin/cmdmisc.h
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/scriptplugin.h
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/scriptplugin.h (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/scriptplugin.h (revision 82)
@@ -0,0 +1,68 @@
+#ifndef SCRIPTPLUG_H
+#define SCRIPTPLUG_H
+
+#include "Python.h"
+#include "scribus.h"
+#include "pconsole.h"
+
+
+/** Calls the Plugin with the main Application window as parent
+ * and the main Application Class as parameter */
+extern "C" void Run(QWidget *d, ScribusApp *plug);
+
+/** Returns the Name of the Plugin.
+ * This name appears in the relevant Menue-Entrys */
+extern "C" QString Name();
+
+/** Returns the Type of the Plugin.
+ * 1 = the Plugin is a normal Plugin, which appears in the Extras Menue
+ * 2 = the Plugin is a Import Plugin, which appears in the Import Menue
+ * 3 = the Plugin is a Export Plugin, which appears in the Export Menue
+ * 4 = the Plugin is a resident Plugin */
+extern "C" int Type();
+
+/** Initializes the Plugin if it's a Plugin of Type 4 */
+extern "C" void InitPlug(QWidget *d, ScribusApp *plug);
+
+/** Possible CleanUpOperations when closing the Plugin */
+extern "C" void CleanUpPlug();
+
+extern "C" void initscribus(ScribusApp *pl);
+
+/** Some useful Subroutines */
+static PyObject *scribus_retval(PyObject *self, PyObject* args);
+static PyObject *scribus_getval(PyObject *self, PyObject* args);
+QString RetString;
+QString InValue;
+int RetVal;
+
+static QPopupMenu* men;
+
+class MenuTest : public QObject
+{
+ Q_OBJECT
+
+public:
+ MenuTest(QWidget* parent);
+ ~MenuTest();
+ void ReadPlugPrefs();
+ void SavePlugPrefs();
+ PConsole *pcon;
+ QPopupMenu* rmen;
+ int rmenid;
+ int cons;
+ QStringList SavedRecentScripts;
+ QStringList RecentScripts;
+
+public slots:
+ void slotHelp();
+ void slotTest();
+ void RecentScript(int id);
+ void slotRunScriptFile(QString fileName);
+ QString slotRunScript(QString Script);
+ void slotInteractiveScript();
+ void slotExecute();
+};
+
+static MenuTest* Tes;
+#endif // CMSPLUG_H
/trunk/Scribus/scribus/plugins/scriptplugin/scriptplugin.h
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/cmddialog.h
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmddialog.h (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmddialog.h (revision 82)
@@ -0,0 +1,10 @@
+#ifndef CMDDIALOG_H
+#define CMDDIALOG_H
+
+#include <Python.h>
+
+/** Calling Dialogs from Scribus */
+PyObject *scribus_newdocdia(PyObject *self, PyObject* args);
+PyObject *scribus_filedia(PyObject *self, PyObject* args);
+#endif
+
/trunk/Scribus/scribus/plugins/scriptplugin/cmddialog.h
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/cmddoc.cpp
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmddoc.cpp (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmddoc.cpp (revision 82)
@@ -0,0 +1,139 @@
+#include "cmdvar.h"
+#include "cmdutil.h"
+#include "cmddoc.h"
+
+PyObject *scribus_newdoc(PyObject *self, PyObject* args)
+{
+ double b, h, lr, tpr, btr, rr, ebr;
+ int unit, ds, fsl, fNr, ori;
+ PyObject *p, *m;
+ if (!PyArg_ParseTuple(args, "OOiiiii", &p, &m, &ori, &fNr, &unit, &ds, &fsl))
+ return NULL;
+ if (!PyArg_ParseTuple(p, "dd", &b, &h))
+ return NULL;
+ if (!PyArg_ParseTuple(m, "dddd", &lr, &rr, &tpr, &btr))
+ return NULL;
+ b = ValToPts(b, unit);
+ h = ValToPts(h, unit);
+ if (ori == 1)
+ {
+ ebr = b;
+ b = h;
+ h = ebr;
+ }
+ tpr = ValToPts(tpr, unit);
+ lr = ValToPts(lr, unit);
+ rr = ValToPts(rr, unit);
+ btr = ValToPts(btr, unit);
+ bool ret = Carrier->doFileNew(b, h, tpr, lr, rr, btr, 0, 1, false, ds, unit, fsl, ori, fNr);
+ if (ret)
+ doc = Carrier->doc;
+ return PyInt_FromLong(static_cast<long>(ret));
+}
+
+PyObject *scribus_setmargins(PyObject *self, PyObject* args)
+{
+ double lr, tpr, btr, rr;
+ if (!PyArg_ParseTuple(args, "dddd", &lr, &rr, &tpr, &btr))
+ return NULL;
+ Py_INCREF(Py_None);
+ if (!Carrier->HaveDoc)
+ return Py_None;
+ tpr = ValueToPoint(tpr);
+ lr = ValueToPoint(lr);
+ rr = ValueToPoint(rr);
+ btr = ValueToPoint(btr);
+ doc->resetPage(tpr, lr, rr, btr, doc->PageFP);
+ Carrier->view->reformPages();
+ doc->setModified();
+ Carrier->view->GotoPage(doc->ActPage->PageNr);
+ Carrier->view->DrawNew();
+ return Py_None;
+}
+
+PyObject *scribus_closedoc(PyObject *self, PyObject* args)
+{
+ if (!PyArg_ParseTuple(args, ""))
+ return NULL;
+ if (!Carrier->HaveDoc)
+ return PyInt_FromLong(0L);
+ doc->setUnModified();
+ return PyInt_FromLong(static_cast<long>(Carrier->slotFileClose()));
+}
+
+PyObject *scribus_havedoc(PyObject *self, PyObject* args)
+{
+ if (!PyArg_ParseTuple(args, ""))
+ return NULL;
+ return PyInt_FromLong(static_cast<long>(Carrier->HaveDoc));
+}
+
+PyObject *scribus_opendoc(PyObject *self, PyObject* args)
+{
+ char *Name;
+ if (!PyArg_ParseTuple(args, "s", &Name))
+ return NULL;
+ bool ret = Carrier->LadeDoc(QString(Name));
+ if (ret)
+ doc = Carrier->doc;
+ return PyInt_FromLong(static_cast<long>(ret));
+}
+
+PyObject *scribus_savedoc(PyObject *self, PyObject* args)
+{
+ if (!PyArg_ParseTuple(args, ""))
+ return NULL;
+ if (!Carrier->HaveDoc)
+ return PyInt_FromLong(0L);
+ Carrier->slotFileSave();
+ return PyInt_FromLong(0L);
+}
+
+PyObject *scribus_savedocas(PyObject *self, PyObject* args)
+{
+ char *Name;
+ if (!PyArg_ParseTuple(args, "s", &Name))
+ return NULL;
+ if (!Carrier->HaveDoc)
+ return PyInt_FromLong(0L);
+ return PyInt_FromLong(static_cast<long>(Carrier->DoFileSave(QString(Name))));
+}
+
+PyObject *scribus_setinfo(PyObject *self, PyObject* args)
+{
+ char *Author;
+ char *Title;
+ char *Desc;
+ if (!PyArg_ParseTuple(args, "zzz", &Author, &Title, &Desc))
+ return NULL;
+ Py_INCREF(Py_None);
+ if (!Carrier->HaveDoc)
+ return Py_None;
+ doc->DocAutor = QString(Author);
+ doc->DocTitel = QString(Title);
+ doc->DocComments = QString(Desc);
+ Carrier->slotDocCh();
+ return Py_None;
+}
+
+PyObject *scribus_setunit(PyObject *self, PyObject* args)
+{
+ int e;
+ if (!PyArg_ParseTuple(args, "i", &e))
+ return NULL;
+ Py_INCREF(Py_None);
+ if ((!Carrier->HaveDoc) || ((e < 0) || (e > 3)))
+ return Py_None;
+ Carrier->slotChangeUnit(e);
+ return Py_None;
+}
+
+PyObject *scribus_getunit(PyObject *self, PyObject* args)
+{
+ if (!PyArg_ParseTuple(args, ""))
+ return NULL;
+ if (!Carrier->HaveDoc)
+ return PyInt_FromLong(0L);
+ return PyInt_FromLong(static_cast<long>(Carrier->doc->Einheit));
+}
+
/trunk/Scribus/scribus/plugins/scriptplugin/cmddoc.cpp
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/cmdcolor.cpp
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdcolor.cpp (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdcolor.cpp (revision 82)
@@ -0,0 +1,166 @@
+#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;
+ PyObject *l;
+ int cc = 0;
+ if (!PyArg_ParseTuple(args, ""))
+ return NULL;
+ if (Carrier->HaveDoc)
+ edc = Carrier->doc->PageColors;
+ else
+ edc = Carrier->Prefs.DColors;
+ CListe::Iterator it;
+ l = PyList_New(edc.count());
+ for (it = edc.begin(); it != edc.end(); ++it)
+ {
+ PyList_SetItem(l, cc, PyString_FromString(it.key()));
+ cc++;
+ }
+ return l;
+}
+
+PyObject *scribus_getcolor(PyObject *self, PyObject* args)
+{
+ CListe edc;
+ char *Name = "";
+ int c, m, y, k;
+ if (!PyArg_ParseTuple(args, "s", &Name))
+ return NULL;
+ if (Name == "")
+ return Py_BuildValue("(iiii)", 0, 0, 0, 0);
+ if (Carrier->HaveDoc)
+ edc = Carrier->doc->PageColors;
+ else
+ edc = Carrier->Prefs.DColors;
+ QString col = QString(Name);
+ if (!edc.contains(col))
+ return Py_BuildValue("(iiii)", 0, 0, 0, 0);
+ edc[col].getCMYK(&c, &m, &y, &k);
+ return Py_BuildValue("(iiii)", static_cast<long>(c), static_cast<long>(m), static_cast<long>(y), static_cast<long>(k));
+}
+
+PyObject *scribus_setcolor(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int c, m, y, k;
+ if (!PyArg_ParseTuple(args, "siiii", &Name, &c, &m, &y, &k))
+ return NULL;
+ Py_INCREF(Py_None);
+ if (Name == "")
+ return Py_None;
+ QString col = QString(Name);
+ if (Carrier->HaveDoc)
+ {
+ if (!Carrier->doc->PageColors.contains(col))
+ return Py_None;
+ Carrier->doc->PageColors[col].setColor(c, m, y, k);
+ }
+ else
+ {
+ if (!Carrier->Prefs.DColors.contains(col))
+ return Py_None;
+ Carrier->Prefs.DColors[col].setColor(c, m, y, k);
+ }
+ return Py_None;
+}
+
+PyObject *scribus_newcolor(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int c, m, y, k;
+ if (!PyArg_ParseTuple(args, "siiii", &Name, &c, &m, &y, &k))
+ return NULL;
+ Py_INCREF(Py_None);
+ if (Name == "")
+ return Py_None;
+ QString col = QString(Name);
+ if (Carrier->HaveDoc)
+ {
+ if (!Carrier->doc->PageColors.contains(col))
+ Carrier->doc->PageColors.insert(col, CMYKColor(c, m, y, k));
+ else
+ Carrier->doc->PageColors[col].setColor(c, m, y, k);
+ }
+ else
+ {
+ if (!Carrier->Prefs.DColors.contains(col))
+ Carrier->Prefs.DColors.insert(col, CMYKColor(c, m, y, k));
+ else
+ Carrier->Prefs.DColors[col].setColor(c, m, y, k);
+ }
+ return Py_None;
+}
+
+PyObject *scribus_delcolor(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ char *Repl = "None";
+ if (!PyArg_ParseTuple(args, "s|s", &Name, &Repl))
+ return NULL;
+ Py_INCREF(Py_None);
+ if (Name == "")
+ return Py_None;
+ QString col = QString(Name);
+ QString rep = QString(Repl);
+ if (Carrier->HaveDoc)
+ {
+ if (Carrier->doc->PageColors.contains(col) && (Carrier->doc->PageColors.contains(rep) || (rep == "None")))
+ {
+ Carrier->doc->PageColors.remove(col);
+ ReplaceColor(col, rep);
+ }
+ }
+ else
+ {
+ if (Carrier->Prefs.DColors.contains(col))
+ Carrier->Prefs.DColors.remove(col);
+ }
+ return Py_None;
+}
+
+PyObject *scribus_replcolor(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ char *Repl = "None";
+ if (!PyArg_ParseTuple(args, "s|s", &Name, &Repl))
+ return NULL;
+ Py_INCREF(Py_None);
+ if (Name == "")
+ return Py_None;
+ QString col = QString(Name);
+ QString rep = QString(Repl);
+ if (!Carrier->HaveDoc)
+ return Py_None;
+ if (Carrier->doc->PageColors.contains(col) && (Carrier->doc->PageColors.contains(rep) || (rep == "None")))
+ ReplaceColor(col, rep);
+ return Py_None;
+}
+
/trunk/Scribus/scribus/plugins/scriptplugin/cmdcolor.cpp
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/cmdobj.h
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdobj.h (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdobj.h (revision 82)
@@ -0,0 +1,19 @@
+#ifndef CMDOBJ_H
+#define CMDOBJ_H
+
+#include <Python.h>
+
+/** Object related Commands */
+PyObject *scribus_newrect(PyObject *self, PyObject* args);
+PyObject *scribus_newellipse(PyObject *self, PyObject* args);
+PyObject *scribus_newimage(PyObject *self, PyObject* args);
+PyObject *scribus_newtext(PyObject *self, PyObject* args);
+PyObject *scribus_newline(PyObject *self, PyObject* args);
+PyObject *scribus_polyline(PyObject *self, PyObject* args);
+PyObject *scribus_polygon(PyObject *self, PyObject* args);
+PyObject *scribus_bezierline(PyObject *self, PyObject* args);
+PyObject *scribus_pathtext(PyObject *self, PyObject* args);
+PyObject *scribus_deleteobj(PyObject *self, PyObject* args);
+
+#endif
+
/trunk/Scribus/scribus/plugins/scriptplugin/cmdobj.h
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/cmdpage.h
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdpage.h (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdpage.h (revision 82)
@@ -0,0 +1,16 @@
+#ifndef CMDPAGE_H
+#define CMDPAGE_H
+
+#include <Python.h>
+
+/** Page related Commands */
+PyObject *scribus_newpage(PyObject *self, PyObject* args);
+PyObject *scribus_actualpage(PyObject *self, PyObject* args);
+PyObject *scribus_redraw(PyObject *self, PyObject* args);
+PyObject *scribus_savepageeps(PyObject *self, PyObject* args);
+PyObject *scribus_deletepage(PyObject *self, PyObject* args);
+PyObject *scribus_gotopage(PyObject *self, PyObject* args);
+PyObject *scribus_pagecount(PyObject *self, PyObject* args);
+
+#endif
+
/trunk/Scribus/scribus/plugins/scriptplugin/cmdpage.h
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/cmdutil.h
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdutil.h (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdutil.h (revision 82)
@@ -0,0 +1,12 @@
+#ifndef CMDUTIL_H
+#define CMDUTIL_H
+
+#include <Python.h>
+#include "scribus.h"
+
+double PointToValue(double Val);
+double ValToPts(double Val, int ein);
+double ValueToPoint(double Val);
+int GetItem(QString Name);
+#endif
+
/trunk/Scribus/scribus/plugins/scriptplugin/cmdutil.h
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/cmdgetprop.h
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdgetprop.h (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdgetprop.h (revision 82)
@@ -0,0 +1,24 @@
+#ifndef CMDGETPROP_H
+#define CMDGETPROP_H
+
+#include <Python.h>
+
+/** Query-Functions */
+PyObject *scribus_getfillcolor(PyObject *self, PyObject* args);
+PyObject *scribus_getlinecolor(PyObject *self, PyObject* args);
+PyObject *scribus_getlinewidth(PyObject *self, PyObject* args);
+PyObject *scribus_getlineshade(PyObject *self, PyObject* args);
+PyObject *scribus_getlinejoin(PyObject *self, PyObject* args);
+PyObject *scribus_getlineend(PyObject *self, PyObject* args);
+PyObject *scribus_getlinestyle(PyObject *self, PyObject* args);
+PyObject *scribus_getfillshade(PyObject *self, PyObject* args);
+PyObject *scribus_getcornerrad(PyObject *self, PyObject* args);
+PyObject *scribus_getimgscale(PyObject *self, PyObject* args);
+PyObject *scribus_getimgname(PyObject *self, PyObject* args);
+PyObject *scribus_getposi(PyObject *self, PyObject* args);
+PyObject *scribus_getsize(PyObject *self, PyObject* args);
+PyObject *scribus_getrotation(PyObject *self, PyObject* args);
+PyObject *scribus_getallobj(PyObject *self, PyObject* args);
+
+#endif
+
/trunk/Scribus/scribus/plugins/scriptplugin/cmdgetprop.h
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/cmdtext.h
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdtext.h (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdtext.h (revision 82)
@@ -0,0 +1,24 @@
+#ifndef CMDTEXT_H
+#define CMDTEXT_H
+
+#include <Python.h>
+
+PyObject *scribus_getfontsize(PyObject *self, PyObject* args);
+PyObject *scribus_getfont(PyObject *self, PyObject* args);
+PyObject *scribus_gettextsize(PyObject *self, PyObject* args);
+PyObject *scribus_gettext(PyObject *self, PyObject* args);
+PyObject *scribus_getlinespace(PyObject *self, PyObject* args);
+PyObject *scribus_setboxtext(PyObject *self, PyObject* args);
+PyObject *scribus_inserttext(PyObject *self, PyObject* args);
+PyObject *scribus_setfont(PyObject *self, PyObject* args);
+PyObject *scribus_setfontsize(PyObject *self, PyObject* args);
+PyObject *scribus_setlinespace(PyObject *self, PyObject* args);
+PyObject *scribus_setalign(PyObject *self, PyObject* args);
+PyObject *scribus_selecttext(PyObject *self, PyObject* args);
+PyObject *scribus_deletetext(PyObject *self, PyObject* args);
+PyObject *scribus_settextfill(PyObject *self, PyObject* args);
+PyObject *scribus_settextstroke(PyObject *self, PyObject* args);
+PyObject *scribus_settextshade(PyObject *self, PyObject* args);
+
+#endif
+
/trunk/Scribus/scribus/plugins/scriptplugin/cmdtext.h
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/cmdmani.h
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdmani.h (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdmani.h (revision 82)
@@ -0,0 +1,23 @@
+#ifndef CMDMANI_H
+#define CMDMANI_H
+
+#include <Python.h>
+
+/** Manipulating Objects */
+PyObject *scribus_moveobjrel(PyObject *self, PyObject* args);
+PyObject *scribus_moveobjabs(PyObject *self, PyObject* args);
+PyObject *scribus_rotobjrel(PyObject *self, PyObject* args);
+PyObject *scribus_rotobjabs(PyObject *self, PyObject* args);
+PyObject *scribus_sizeobjabs(PyObject *self, PyObject* args);
+PyObject *scribus_getselobjnam(PyObject *self, PyObject* args);
+PyObject *scribus_selcount(PyObject *self, PyObject* args);
+PyObject *scribus_selectobj(PyObject *self, PyObject* args);
+PyObject *scribus_deselect(PyObject *self, PyObject* args);
+PyObject *scribus_groupobj(PyObject *self, PyObject* args);
+PyObject *scribus_ungroupobj(PyObject *self, PyObject* args);
+PyObject *scribus_scalegroup(PyObject *self, PyObject* args);
+PyObject *scribus_loadimage(PyObject *self, PyObject* args);
+PyObject *scribus_scaleimage(PyObject *self, PyObject* args);
+
+#endif
+
/trunk/Scribus/scribus/plugins/scriptplugin/cmdmani.h
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/cmdmisc.cpp
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdmisc.cpp (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdmisc.cpp (revision 82)
@@ -0,0 +1,244 @@
+#include "cmdvar.h"
+#include "cmdutil.h"
+#include "cmdmisc.h"
+
+PyObject *scribus_setredraw(PyObject *self, PyObject* args)
+{
+ int e;
+ if (!PyArg_ParseTuple(args, "i", &e))
+ return NULL;
+ Py_INCREF(Py_None);
+ if (!Carrier->HaveDoc)
+ return Py_None;
+ Carrier->doc->DoDrawing = static_cast<bool>(e);
+ return Py_None;
+}
+
+PyObject *scribus_fontnames(PyObject *self, PyObject* args)
+{
+ PyObject *l;
+ int cc = 0;
+ if (!PyArg_ParseTuple(args, ""))
+ return NULL;
+ l = PyList_New(Carrier->Prefs.AvailFonts.count());
+ SCFontsIterator it(Carrier->Prefs.AvailFonts);
+ for ( ; it.current() ; ++it)
+ {
+ PyList_SetItem(l, cc, PyString_FromString(it.currentKey()));
+ cc++;
+ }
+ return l;
+}
+
+PyObject *scribus_getlayers(PyObject *self, PyObject* args)
+{
+ PyObject *l;
+ if (!PyArg_ParseTuple(args, ""))
+ return NULL;
+ if (Carrier->HaveDoc)
+ {
+ l = PyList_New(doc->Layers.count());
+ for (uint lam=0; lam < doc->Layers.count(); lam++)
+ {
+ PyList_SetItem(l, lam, PyString_FromString(doc->Layers[lam].Name));
+ }
+ }
+ else
+ l = PyList_New(0);
+ return l;
+}
+
+PyObject *scribus_setactlayer(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int i = -1;
+ if (!PyArg_ParseTuple(args, "s", &Name))
+ return NULL;
+ Py_INCREF(Py_None);
+ if ((!Carrier->HaveDoc) || (Name == ""))
+ return Py_None;
+ for (uint lam=0; lam < doc->Layers.count(); lam++)
+ {
+ if (doc->Layers[lam].Name == QString(Name))
+ {
+ i = static_cast<int>(lam);
+ doc->ActiveLayer = i;
+ Carrier->changeLayer(i);
+ break;
+ }
+ }
+ return Py_None;
+}
+
+PyObject *scribus_getactlayer(PyObject *self, PyObject* args)
+{
+ if (!PyArg_ParseTuple(args, ""))
+ return NULL;
+ if (!Carrier->HaveDoc)
+ return PyString_FromString("");
+ return PyString_FromString(doc->Layers[doc->ActiveLayer].Name);
+}
+
+PyObject *scribus_senttolayer(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ char *Layer = "";
+ int i, la;
+ if (!PyArg_ParseTuple(args, "s|s", &Layer, &Name))
+ return NULL;
+ Py_INCREF(Py_None);
+ if ((!Carrier->HaveDoc) || (Layer == ""))
+ return Py_None;
+ i = GetItem(QString(Name));
+ if (i != -1)
+ {
+ la = -1;
+ PageItem *b = doc->ActPage->Items.at(i);
+ doc->ActPage->SelectItemNr(i);
+ for (uint lam=0; lam < doc->Layers.count(); lam++)
+ {
+ if (doc->Layers[lam].Name == QString(Layer))
+ {
+ b->LayerNr = static_cast<int>(lam);
+ break;
+ }
+ }
+ }
+ return Py_None;
+}
+
+PyObject *scribus_layervisible(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int vis = 1;
+ if (!PyArg_ParseTuple(args, "si", &Name, &vis))
+ return NULL;
+ Py_INCREF(Py_None);
+ if ((!Carrier->HaveDoc) || (Name == ""))
+ return Py_None;
+ for (uint lam=0; lam < doc->Layers.count(); lam++)
+ {
+ if (doc->Layers[lam].Name == QString(Name))
+ {
+ doc->Layers[lam].Sichtbar = vis;
+ break;
+ }
+ }
+ return Py_None;
+}
+
+PyObject *scribus_layerprint(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int vis = 1;
+ if (!PyArg_ParseTuple(args, "si", &Name, &vis))
+ return NULL;
+ Py_INCREF(Py_None);
+ if ((!Carrier->HaveDoc) || (Name == ""))
+ return Py_None;
+ for (uint lam=0; lam < doc->Layers.count(); lam++)
+ {
+ if (doc->Layers[lam].Name == QString(Name))
+ {
+ doc->Layers[lam].Drucken = vis;
+ break;
+ }
+ }
+ return Py_None;
+}
+
+PyObject *scribus_glayervisib(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int i = 0;
+ if (!PyArg_ParseTuple(args, "s", &Name))
+ return NULL;
+ if ((!Carrier->HaveDoc) || (Name == ""))
+ return PyInt_FromLong(0L);
+ for (uint lam=0; lam < doc->Layers.count(); lam++)
+ {
+ if (doc->Layers[lam].Name == QString(Name))
+ {
+ i = static_cast<int>(doc->Layers[lam].Sichtbar);
+ break;
+ }
+ }
+ return PyInt_FromLong(static_cast<long>(i));
+}
+
+PyObject *scribus_glayerprint(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int i = 0;
+ if (!PyArg_ParseTuple(args, "s", &Name))
+ return NULL;
+ if ((!Carrier->HaveDoc) || (Name == ""))
+ return PyInt_FromLong(0L);
+ for (uint lam=0; lam < doc->Layers.count(); lam++)
+ {
+ if (doc->Layers[lam].Name == QString(Name))
+ {
+ i = static_cast<int>(doc->Layers[lam].Drucken);
+ break;
+ }
+ }
+ return PyInt_FromLong(static_cast<long>(i));
+}
+
+PyObject *scribus_removelayer(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ int num, num2;
+ if (!PyArg_ParseTuple(args, "s", &Name))
+ return NULL;
+ Py_INCREF(Py_None);
+ if ((!Carrier->HaveDoc) || (Name == "") || (doc->Layers.count() == 1))
+ return Py_None;
+ for (uint lam=0; lam < doc->Layers.count(); lam++)
+ {
+ if (doc->Layers[lam].Name == QString(Name))
+ {
+ QValueList<Layer>::iterator it2;
+ it2 = doc->Layers.at(lam);
+ num2 = (*it2).LNr;
+ num = (*it2).Level;
+ doc->Layers.remove(it2);
+ QValueList<Layer>::iterator it;
+ for (uint l = 0; l < doc->Layers.count(); l++)
+ {
+ it = doc->Layers.at(l);
+ if ((*it).Level > num)
+ (*it).Level -= 1;
+ if ((*it).LNr > num2)
+ (*it).LNr -= 1;
+ }
+ Carrier->LayerRemove(lam);
+ doc->ActiveLayer = 0;
+ Carrier->changeLayer(0);
+ break;
+ }
+ }
+ return Py_None;
+}
+
+PyObject *scribus_createlayer(PyObject *self, PyObject* args)
+{
+ char *Name = "";
+ if (!PyArg_ParseTuple(args, "s", &Name))
+ return NULL;
+ Py_INCREF(Py_None);
+ if ((!Carrier->HaveDoc) || (Name == ""))
+ return Py_None;
+ QString tmp;
+ struct Layer ll;
+ ll.LNr = doc->Layers.count();
+ ll.Level = doc->Layers.count();
+ ll.Name = QString(Name);
+ ll.Sichtbar = true;
+ ll.Drucken = true;
+ doc->Layers.append(ll);
+ doc->ActiveLayer = ll.LNr;
+ Carrier->changeLayer(ll.LNr);
+ return Py_None;
+}
+
/trunk/Scribus/scribus/plugins/scriptplugin/cmdmisc.cpp
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/scriptplugin.cpp
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/scriptplugin.cpp (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/scriptplugin.cpp (revision 82)
@@ -0,0 +1,505 @@
+/***************************************************************************
+ scriptplugin.cpp - description
+ -------------------
+ begin : Thu Oct 3 08:00:00 CEST 2002
+ copyright : (C) 2002 by Franz Schmid
+ email : Franz.Schmid@altmuehlnet.de
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+#include "scriptplugin.h"
+#include "scriptplugin.moc"
+#include "customfdialog.h"
+#include "helpbrowser.h"
+#include "config.h"
+#include <qmessagebox.h>
+#include <qtextcodec.h>
+#include <qdom.h>
+#include <qtextstream.h>
+#include <cstdlib>
+#include "cmdvar.h"
+#include "cmdutil.h"
+#include "cmddialog.h"
+#include "cmddoc.h"
+#include "cmdpage.h"
+#include "cmdobj.h"
+#include "cmdgetprop.h"
+#include "cmdsetprop.h"
+#include "cmdtext.h"
+#include "cmdmani.h"
+#include "cmdcolor.h"
+#include "cmdmisc.h"
+
+QString Name()
+{
+ return QObject::tr("About Scripter...");
+}
+
+int Type()
+{
+ return 4;
+}
+
+void InitPlug(QWidget *d, ScribusApp *plug)
+{
+ QString cm;
+ Py_Initialize();
+ Carrier = plug;
+ RetVal = 0;
+ initscribus(Carrier);
+ Tes = new MenuTest(d);
+ men = new QPopupMenu();
+ Tes->rmen = new QPopupMenu();
+ Tes->SavedRecentScripts.clear();
+ Tes->ReadPlugPrefs();
+ Tes->RecentScripts.clear();
+ if (Tes->SavedRecentScripts.count() != 0)
+ {
+ uint max = QMIN(Carrier->Prefs.RecentDCount, Tes->SavedRecentScripts.count());
+ for (uint m = 0; m < max; m++)
+ {
+ QFileInfo fd(Tes->SavedRecentScripts[m]);
+ if (fd.exists())
+ {
+ Tes->RecentScripts.append(Tes->SavedRecentScripts[m]);
+ Tes->rmen->insertItem(Tes->SavedRecentScripts[m]);
+ }
+ }
+ }
+ Tes->pcon = new PConsole(d);
+ men->insertItem(QObject::tr("Execute Script..."), Tes, SLOT(slotTest()));
+ Tes->rmenid = men->insertItem(QObject::tr("Recent Scripts"), Tes->rmen);
+ Tes->cons = men->insertItem(QObject::tr("Show Console"), Tes, SLOT(slotInteractiveScript()));
+ men->insertSeparator();
+ men->insertItem(QObject::tr("Online-Help"), Tes, SLOT(slotHelp()));
+ plug->menuBar()->insertItem(QObject::tr("Script"), men, -1, plug->menuBar()->count() - 2);
+ QObject::connect(Tes->pcon->OutWin, SIGNAL(returnPressed()), Tes, SLOT(slotExecute()));
+ QObject::connect(Tes->pcon, SIGNAL(Schliessen()), Tes, SLOT(slotInteractiveScript()));
+ QObject::connect(Tes->rmen, SIGNAL(activated(int)), Tes, SLOT(RecentScript(int)));
+}
+
+void CleanUpPlug()
+{
+ Py_Finalize();
+ Tes->SavePlugPrefs();
+}
+
+void Run(QWidget *d, ScribusApp *plug)
+{
+ QString mess = QObject::tr("Scripter");
+ mess += "\n\n" + QObject::tr("This Plugin allows you to use Python as a");
+ mess += "\n" + QObject::tr("scripting Language for Scribus.");
+ mess += "\n\n" + QObject::tr("Programming:");
+ mess += "\n\t" + QObject::tr("Franz Schmid <Franz.Schmid@altmuehlnet.de>");
+ mess += "\n\t" + QObject::tr("Paul F. Johnson <paulf.johnson@ukonline.co.uk>");
+ mess += "\n\n" + QObject::tr("Documentation:");
+ mess += "\n\t" + QObject::tr("Peter Linnell <netscribe@attbi.com>");
+ mess += "\n\t" + QObject::tr("Franz Schmid <Franz.Schmid@altmuehlnet.de>");
+ QMessageBox::about(d, QObject::tr("About Scripter"), mess);
+}
+
+MenuTest::MenuTest(QWidget* parent) : QObject( parent, "bu")
+{
+}
+
+MenuTest::~MenuTest()
+{
+}
+
+void MenuTest::slotHelp()
+{
+ QString pfad = PREL;
+ QString pfad2;
+ pfad2 = pfad + "/lib/scribus/doc/en/Scripter/index.html";
+ HelpBrowser *dia = new HelpBrowser(0, QObject::tr("Online Reference"), pfad2);
+ dia->show();
+}
+
+void MenuTest::slotTest()
+{
+ QString fileName;
+ CustomFDialog diaf((QWidget*)parent(), QObject::tr("Open"), QObject::tr("Python Scripts (*.py);; All Files (*)"));
+ if (diaf.exec())
+ {
+ fileName = diaf.selectedFile();
+ slotRunScriptFile(fileName);
+ rmen->clear();
+ if (RecentScripts.findIndex(fileName) == -1)
+ RecentScripts.prepend(fileName);
+ else
+ {
+ RecentScripts.remove(fileName);
+ RecentScripts.prepend(fileName);
+ }
+ uint max = QMIN(Carrier->Prefs.RecentDCount, RecentScripts.count());
+ for (uint m = 0; m < max; m++)
+ {
+ rmen->insertItem(RecentScripts[m]);
+ }
+ }
+}
+
+void MenuTest::RecentScript(int id)
+{
+ QString fn = rmen->text(id);
+ QFileInfo fd(fn);
+ if (!fd.exists())
+ {
+ RecentScripts.remove(fn);
+ rmen->clear();
+ uint max = QMIN(Carrier->Prefs.RecentDCount, RecentScripts.count());
+ for (uint m = 0; m < max; m++)
+ {
+ rmen->insertItem(RecentScripts[m]);
+ }
+ return;
+ }
+ slotRunScriptFile(fn);
+}
+
+void MenuTest::slotRunScriptFile(QString fileName)
+{
+ char* comm[1];
+ QFileInfo fi(fileName);
+ QCString na = fi.fileName().latin1();
+ QDir::setCurrent(fi.dirPath(true));
+// PyThreadState *stateo = PyThreadState_Get();
+ PyThreadState *stateo = PyEval_SaveThread();
+ PyThreadState *state = Py_NewInterpreter();
+ initscribus(Carrier);
+ QString cm = "import sys\nsys.path[0] = \""+fi.dirPath(true)+"\"\n";
+ cm += "try:\n\texecfile(\""+fileName+"\")\nexcept SystemExit:\n\tpass\n";
+ QCString cmd = cm.latin1();
+ comm[0] = na.data();
+ PySys_SetArgv(1, comm);
+ PyRun_SimpleString(cmd.data());
+ Py_EndInterpreter(state);
+ PyEval_RestoreThread(stateo);
+}
+
+QString MenuTest::slotRunScript(QString Script)
+{
+ char* comm[1];
+ QString cm;
+ InValue = Script;
+ QString CurDir = QDir::currentDirPath();
+ if(PyThreadState_Get() != NULL)
+ {
+ initscribus(Carrier);
+ if (RetVal == 0)
+ {
+ cm = "import sys\nsys.path[0] = \""+CurDir+"\"\n";
+ cm += "import cStringIO\n";
+ cm += "from scribus import *\n";
+ cm += "bu = cStringIO.StringIO()\n";
+ cm += "sys.stdout = bu\n";
+ cm += "sys.stderr = bu\n";
+ cm += "import code\n";
+ cm += "ia = code.InteractiveConsole(globals())\n";
+ }
+ cm += "sc = getval()\n";
+ cm += "rv = ia.push(sc)\n";
+ cm += "if rv == 1:\n";
+ cm += "\tre = \"...\"\n";
+ cm += "else:\n";
+ cm += "\tre = bu.getvalue()\n";
+ cm += "retval(re, rv)\n";
+ }
+ QCString cmd = cm.latin1();
+ comm[0] = "scribus";
+ PySys_SetArgv(1, comm);
+ PyRun_SimpleString(cmd.data());
+ if (RetVal == 0)
+ {
+ RetString += ">>>";
+ pcon->OutWin->Prompt = ">>>";
+ }
+ else
+ pcon->OutWin->Prompt = "...";
+ return RetString;
+}
+
+void MenuTest::slotInteractiveScript()
+{
+ if (pcon->isVisible())
+ {
+ men->changeItem(cons, tr("Show Console"));
+ pcon->hide();
+ }
+ else
+ {
+ men->changeItem(cons, tr("Hide Console"));
+ pcon->show();
+ }
+}
+
+void MenuTest::slotExecute()
+{
+ pcon->OutWin->append(slotRunScript(pcon->OutWin->LastComm));
+ pcon->OutWin->moveCursor(QTextEdit::MoveEnd, false);
+ pcon->OutWin->scrollToBottom();
+ pcon->OutWin->ensureCursorVisible();
+ if (Carrier->HaveDoc)
+ Carrier->doc->ActPage->repaint();
+}
+
+void MenuTest::ReadPlugPrefs()
+{
+ QDomDocument docu("scriptrc");
+ QString ho = getenv("HOME");
+ QFile f(ho+"/.scribus/scripter.rc");
+ if(!f.open(IO_ReadOnly))
+ return;
+ if(!docu.setContent(&f))
+ {
+ f.close();
+ return;
+ }
+ f.close();
+ QDomElement elem=docu.documentElement();
+ if (elem.tagName() != "SCRIPTRC")
+ return;
+ QDomNode DOC=elem.firstChild();
+ while(!DOC.isNull())
+ {
+ QDomElement dc=DOC.toElement();
+ if (dc.tagName()=="RECENT")
+ SavedRecentScripts.append(dc.attribute("NAME"));
+ DOC=DOC.nextSibling();
+ }
+}
+
+void MenuTest::SavePlugPrefs()
+{
+ QDomDocument docu("scriptrc");
+ QString st="<SCRIPTRC></SCRIPTRC>";
+ docu.setContent(st);
+ QDomElement elem=docu.documentElement();
+ for (uint rd=0; rd < Tes->RecentScripts.count(); rd++)
+ {
+ QDomElement rde=docu.createElement("RECENT");
+ rde.setAttribute("NAME",Tes->RecentScripts[rd]);
+ elem.appendChild(rde);
+ }
+ QString ho = getenv("HOME");
+ QFile f(ho+"/.scribus/scripter.rc");
+ if(!f.open(IO_WriteOnly))
+ return;
+ QTextStream s(&f);
+ s<<docu.toCString();
+ f.close();
+}
+
+/****************************************************************************************/
+/* */
+/* Definitionen der Python-Befehle */
+/* */
+/****************************************************************************************/
+
+static PyObject *scribus_retval(PyObject *self, PyObject* args)
+{
+ char *Name;
+ int retV;
+ if (!PyArg_ParseTuple(args, "si", &Name, &retV))
+ return NULL;
+ RetString = QString(Name);
+ RetVal = retV;
+ return PyInt_FromLong(0L);
+}
+
+static PyObject *scribus_getval(PyObject *self, PyObject* args)
+{
+ if (!PyArg_ParseTuple(args, ""))
+ return NULL;
+ return PyString_FromString(InValue);
+}
+
+static PyMethodDef scribus_methods[] = {
+ {"NewDocDialog", scribus_newdocdia, METH_VARARGS},
+ {"FileDialog", scribus_filedia, METH_VARARGS},
+ {"NewDoc", scribus_newdoc, METH_VARARGS},
+ {"CloseDoc", scribus_closedoc, METH_VARARGS},
+ {"HaveDoc", scribus_havedoc, METH_VARARGS},
+ {"OpenDoc", scribus_opendoc, METH_VARARGS},
+ {"SaveDoc", scribus_savedoc, METH_VARARGS},
+ {"SaveDocAs", scribus_savedocas, METH_VARARGS},
+ {"SetInfo", scribus_setinfo, METH_VARARGS},
+ {"SetMargins", scribus_setmargins, METH_VARARGS},
+ {"SetUnit", scribus_setunit, METH_VARARGS},
+ {"GetUnit", scribus_getunit, METH_VARARGS},
+ {"CurrentPage", scribus_actualpage, METH_VARARGS},
+ {"SetRedraw", scribus_setredraw, METH_VARARGS},
+ {"RedrawAll", scribus_redraw, METH_VARARGS},
+ {"SavePageAsEPS", scribus_savepageeps, METH_VARARGS},
+ {"NewPage", scribus_newpage, METH_VARARGS},
+ {"DeletePage", scribus_deletepage, METH_VARARGS},
+ {"GotoPage", scribus_gotopage, METH_VARARGS},
+ {"PageCount", scribus_pagecount, METH_VARARGS},
+ {"CreateRect", scribus_newrect, METH_VARARGS},
+ {"CreateEllipse", scribus_newellipse, METH_VARARGS},
+ {"CreateImage", scribus_newimage, METH_VARARGS},
+ {"CreateLine", scribus_newline, METH_VARARGS},
+ {"CreatePolyLine", scribus_polyline, METH_VARARGS},
+ {"CreatePolygon", scribus_polygon, METH_VARARGS},
+ {"CreateBezierLine", scribus_bezierline, METH_VARARGS},
+ {"CreatePathText", scribus_pathtext, METH_VARARGS},
+ {"CreateText", scribus_newtext, METH_VARARGS},
+ {"DeleteObject", scribus_deleteobj, METH_VARARGS},
+ {"GetFillColor", scribus_getfillcolor, METH_VARARGS},
+ {"GetLineColor", scribus_getlinecolor, METH_VARARGS},
+ {"GetLineWidth", scribus_getlinewidth, METH_VARARGS},
+ {"GetLineShade", scribus_getlineshade, METH_VARARGS},
+ {"GetLineJoin", scribus_getlinejoin, METH_VARARGS},
+ {"GetLineCap", scribus_getlineend, METH_VARARGS},
+ {"GetLineStyle", scribus_getlinestyle, METH_VARARGS},
+ {"GetFillShade", scribus_getfillshade, METH_VARARGS},
+ {"GetCornerRadius", scribus_getcornerrad, METH_VARARGS},
+ {"GetImageScale", scribus_getimgscale, METH_VARARGS},
+ {"GetImageFile", scribus_getimgname, METH_VARARGS},
+ {"GetPosition", scribus_getposi, METH_VARARGS},
+ {"GetSize", scribus_getsize, METH_VARARGS},
+ {"GetRotation", scribus_getrotation, METH_VARARGS},
+ {"GetFontSize", scribus_getfontsize, METH_VARARGS},
+ {"GetFont", scribus_getfont, METH_VARARGS},
+ {"GetTextLength", scribus_gettextsize, METH_VARARGS},
+ {"GetTextColor", scribus_getlinecolor, METH_VARARGS},
+ {"GetTextShade", scribus_getlineshade, METH_VARARGS},
+ {"GetLineSpacing", scribus_getlinespace, METH_VARARGS},
+ {"GetText", scribus_gettext, METH_VARARGS},
+ {"GetAllObjects", scribus_getallobj, METH_VARARGS},
+ {"SetGradientFill", scribus_setgradfill, METH_VARARGS},
+ {"SetFillColor", scribus_setfillcolor, METH_VARARGS},
+ {"SetLineColor", scribus_setlinecolor, METH_VARARGS},
+ {"SetMultiLine", scribus_setmultiline, METH_VARARGS},
+ {"SetLineWidth", scribus_setlinewidth, METH_VARARGS},
+ {"SetLineShade", scribus_setlineshade, METH_VARARGS},
+ {"SetLineJoin", scribus_setlinejoin, METH_VARARGS},
+ {"SetLineCap", scribus_setlineend, METH_VARARGS},
+ {"SetLineStyle", scribus_setlinestyle, METH_VARARGS},
+ {"SetFillShade", scribus_setfillshade, METH_VARARGS},
+ {"SetCornerRadius", scribus_setcornerrad, METH_VARARGS},
+ {"LoadImage", scribus_loadimage, METH_VARARGS},
+ {"ScaleImage", scribus_scaleimage, METH_VARARGS},
+ {"SetText", scribus_setboxtext, METH_VARARGS},
+ {"InsertText", scribus_inserttext, METH_VARARGS},
+ {"SelectText", scribus_selecttext, METH_VARARGS},
+ {"DeleteText", scribus_deletetext, METH_VARARGS},
+ {"SetFont", scribus_setfont, METH_VARARGS},
+ {"SetFontSize", scribus_setfontsize, METH_VARARGS},
+ {"SetTextColor", scribus_settextfill, METH_VARARGS},
+ {"SetTextStroke", scribus_settextstroke, METH_VARARGS},
+ {"SetTextShade", scribus_settextshade, METH_VARARGS},
+ {"SetLineSpacing", scribus_setlinespace, METH_VARARGS},
+ {"SetTextAlignment", scribus_setalign, METH_VARARGS},
+ {"MoveObject", scribus_moveobjrel, METH_VARARGS},
+ {"MoveObjectAbs", scribus_moveobjabs, METH_VARARGS},
+ {"RotateObject", scribus_rotobjrel, METH_VARARGS},
+ {"RotateObjectAbs", scribus_rotobjabs, METH_VARARGS},
+ {"SizeObject", scribus_sizeobjabs, METH_VARARGS},
+ {"GroupObjects", scribus_groupobj, METH_VARARGS},
+ {"UnGroupObject", scribus_ungroupobj, METH_VARARGS},
+ {"ScaleGroup", scribus_scalegroup, METH_VARARGS},
+ {"GetSelectedObject", scribus_getselobjnam, METH_VARARGS},
+ {"SelectionCount", scribus_selcount, METH_VARARGS},
+ {"SelectObject", scribus_selectobj, METH_VARARGS},
+ {"DeselectAll", scribus_deselect, METH_VARARGS},
+ {"GetColorNames", scribus_colornames, METH_VARARGS},
+ {"GetColor", scribus_getcolor, METH_VARARGS},
+ {"ChangeColor", scribus_setcolor, METH_VARARGS},
+ {"DefineColor", scribus_newcolor, METH_VARARGS},
+ {"DeleteColor", scribus_delcolor, METH_VARARGS},
+ {"ReplaceColor", scribus_replcolor, METH_VARARGS},
+ {"GetFontNames", scribus_fontnames, METH_VARARGS},
+ {"GetLayers", scribus_getlayers, METH_VARARGS},
+ {"SetActiveLayer", scribus_setactlayer, METH_VARARGS},
+ {"GetActiveLayer", scribus_getactlayer, METH_VARARGS},
+ {"SentToLayer", scribus_senttolayer, METH_VARARGS},
+ {"SetLayerVisible", scribus_layervisible, METH_VARARGS},
+ {"SetLayerPrintable", scribus_layerprint, METH_VARARGS},
+ {"IsLayerVisible", scribus_glayervisib, METH_VARARGS},
+ {"IsLayerPrintable", scribus_glayerprint, METH_VARARGS},
+ {"CreateLayer", scribus_createlayer, METH_VARARGS},
+ {"DeleteLayer", scribus_removelayer, METH_VARARGS},
+ {"retval", scribus_retval, METH_VARARGS},
+ {"getval", scribus_getval, METH_VARARGS},
+ {NULL, NULL} /* sentinel */
+};
+
+void initscribus(ScribusApp *pl)
+{
+ PyObject *m, *d;
+ PyImport_AddModule("scribus");
+ m = Py_InitModule("scribus", scribus_methods);
+ d = PyModule_GetDict(m);
+ PyDict_SetItemString(d, "Points", Py_BuildValue("i", 0));
+ PyDict_SetItemString(d, "Millimeters", Py_BuildValue("i", 1));
+ PyDict_SetItemString(d, "Inches", Py_BuildValue("i", 2));
+ PyDict_SetItemString(d, "Picas", Py_BuildValue("i", 3));
+ PyDict_SetItemString(d, "Portrait", Py_BuildValue("i", 0));
+ PyDict_SetItemString(d, "Landscape", Py_BuildValue("i", 1));
+ PyDict_SetItemString(d, "NoFacingPages", Py_BuildValue("i", 0));
+ PyDict_SetItemString(d, "FacingPages", Py_BuildValue("i", 1));
+ PyDict_SetItemString(d, "FirstPageRight", Py_BuildValue("i", 0));
+ PyDict_SetItemString(d, "FirstPageLeft", Py_BuildValue("i", 1));
+ PyDict_SetItemString(d, "LeftAlign", Py_BuildValue("i", 0));
+ PyDict_SetItemString(d, "RightAlign", Py_BuildValue("i", 2));
+ PyDict_SetItemString(d, "Centered", Py_BuildValue("i", 1));
+ PyDict_SetItemString(d, "Forced", Py_BuildValue("i", 3));
+ PyDict_SetItemString(d, "NoGradient", Py_BuildValue("i", 0));
+ PyDict_SetItemString(d, "HorizontalGradient", Py_BuildValue("i", 1));
+ PyDict_SetItemString(d, "VerticalGradient", Py_BuildValue("i", 2));
+ PyDict_SetItemString(d, "DiagonalGradient", Py_BuildValue("i", 3));
+ PyDict_SetItemString(d, "CrossDiagonalGradient", Py_BuildValue("i", 4));
+ PyDict_SetItemString(d, "RadialGradient", Py_BuildValue("i", 5));
+ PyDict_SetItemString(d, "SolidLine", Py_BuildValue("i", Qt::SolidLine));
+ PyDict_SetItemString(d, "DashLine", Py_BuildValue("i", Qt::DashLine));
+ PyDict_SetItemString(d, "DotLine", Py_BuildValue("i", Qt::DotLine));
+ PyDict_SetItemString(d, "DashDotLine", Py_BuildValue("i", Qt::DashDotLine));
+ PyDict_SetItemString(d, "DashDotDotLine", Py_BuildValue("i", Qt::DashDotDotLine));
+ PyDict_SetItemString(d, "MiterJoin", Py_BuildValue("i", Qt::MiterJoin));
+ PyDict_SetItemString(d, "BevelJoin", Py_BuildValue("i", Qt::BevelJoin));
+ PyDict_SetItemString(d, "RoundJoin", Py_BuildValue("i", Qt::RoundJoin));
+ PyDict_SetItemString(d, "FlatCap", Py_BuildValue("i", Qt::FlatCap));
+ PyDict_SetItemString(d, "SquareCap", Py_BuildValue("i", Qt::SquareCap));
+ PyDict_SetItemString(d, "RoundCap", Py_BuildValue("i", Qt::RoundCap));
+ PyDict_SetItemString(d, "Paper_A0", Py_BuildValue("(ff)", 2380.0, 3368.0));
+ PyDict_SetItemString(d, "Paper_A1", Py_BuildValue("(ff)", 1684.0, 2380.0));
+ PyDict_SetItemString(d, "Paper_A2", Py_BuildValue("(ff)", 1190.0, 1684.0));
+ PyDict_SetItemString(d, "Paper_A3", Py_BuildValue("(ff)", 842.0, 1190.0));
+ PyDict_SetItemString(d, "Paper_A4", Py_BuildValue("(ff)", 595.0, 842.0));
+ PyDict_SetItemString(d, "Paper_A5", Py_BuildValue("(ff)", 421.0, 595.0));
+ PyDict_SetItemString(d, "Paper_A6", Py_BuildValue("(ff)", 297.0, 421.0));
+ PyDict_SetItemString(d, "Paper_A7", Py_BuildValue("(ff)", 210.0, 297.0));
+ PyDict_SetItemString(d, "Paper_A8", Py_BuildValue("(ff)", 148.0, 210.0));
+ PyDict_SetItemString(d, "Paper_A9", Py_BuildValue("(ff)", 105.0, 148.0));
+ PyDict_SetItemString(d, "Paper_B0", Py_BuildValue("(ff)", 2836.0, 4008.0));
+ PyDict_SetItemString(d, "Paper_B1", Py_BuildValue("(ff)", 2004.0, 2836.0));
+ PyDict_SetItemString(d, "Paper_B2", Py_BuildValue("(ff)", 1418.0, 2004.0));
+ PyDict_SetItemString(d, "Paper_B3", Py_BuildValue("(ff)", 1002.0, 1418.0));
+ PyDict_SetItemString(d, "Paper_B4", Py_BuildValue("(ff)", 709.0, 1002.0));
+ PyDict_SetItemString(d, "Paper_B5", Py_BuildValue("(ff)", 501.0, 709.0));
+ PyDict_SetItemString(d, "Paper_B6", Py_BuildValue("(ff)", 355.0, 501.0));
+ PyDict_SetItemString(d, "Paper_B7", Py_BuildValue("(ff)", 250.0, 355.0));
+ PyDict_SetItemString(d, "Paper_B8", Py_BuildValue("(ff)", 178.0, 250.0));
+ PyDict_SetItemString(d, "Paper_B9", Py_BuildValue("(ff)", 125.0, 178.0));
+ PyDict_SetItemString(d, "Paper_B10", Py_BuildValue("(ff)", 89.0, 125.0));
+ PyDict_SetItemString(d, "Paper_C5E", Py_BuildValue("(ff)", 462.0, 649.0));
+ PyDict_SetItemString(d, "Paper_Comm10E", Py_BuildValue("(ff)", 298.0, 683.0));
+ PyDict_SetItemString(d, "Paper_DLE", Py_BuildValue("(ff)", 312.0, 624.0));
+ PyDict_SetItemString(d, "Paper_Executive", Py_BuildValue("(ff)", 542.0, 720.0));
+ PyDict_SetItemString(d, "Paper_Folio", Py_BuildValue("(ff)", 595.0, 935.0));
+ PyDict_SetItemString(d, "Paper_Ledger", Py_BuildValue("(ff)", 1224.0, 792.0));
+ PyDict_SetItemString(d, "Paper_Legal", Py_BuildValue("(ff)", 612.0, 1008.0));
+ PyDict_SetItemString(d, "Paper_Letter", Py_BuildValue("(ff)", 612.0, 792.0));
+ PyDict_SetItemString(d, "Paper_Tabloid", Py_BuildValue("(ff)", 792.0, 1224.0));
+ Carrier = pl;
+ doc = Carrier->doc;
+}
+
/trunk/Scribus/scribus/plugins/scriptplugin/scriptplugin.cpp
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/samples/3columnUSLTR.py
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/samples/3columnUSLTR.py (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/samples/3columnUSLTR.py (revision 82)
@@ -0,0 +1,19 @@
+from scribus import *
+Margins = (50, 50, 50, 50)
+size=(612,792)
+if NewDoc(Paper_Letter, Margins, Landscape, 1, Points, NoFacingPages, FirstPageLeft):
+ a = CreateText(50, 50, 230, 512)
+ SetTextAlignment(1,a)
+ SetText("Column A", a)
+ SetFontSize(12, a)
+ b = CreateText(280, 50, 230, 512)
+ SetTextAlignment(1,b)
+ SetText("Column B", b)
+ SetFontSize(12, b)
+ c = CreateText(510, 50, 230, 512)
+ SetTextAlignment(1,b)
+ SetText("Column C", c)
+ SetFontSize(12, c)
+ SaveDocAs("3columnUS.sla")
+ CloseDoc()
+
/trunk/Scribus/scribus/plugins/scriptplugin/samples/3columnUSLTR.py
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/samples/Calender.py
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/samples/Calender.py (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/samples/Calender.py (revision 82)
@@ -0,0 +1,52 @@
+# This Script creates a Calendar Sheet for the Current Month
+import calendar
+import time
+from scribus import *
+if HaveDoc():
+ Month = time.localtime(time.time())[1]
+ Year = time.localtime(time.time())[0]
+ Objects = []
+ MonthList = ["January","February","March","April","May","June","July","August","September","October","November","December"]
+ DaysList = ["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]
+ Xcoor = 10
+ Ycoor = 30
+ DayC = 0
+ Calend = calendar.monthcalendar(Year, Month)
+ ob = CreateText(10, 10, 245, 20)
+ Title = MonthList[Month-1] + " " + str(Year)
+ SetText(Title, ob)
+ Objects.append(ob)
+ for lx in range(45, 245, 35):
+ ob = CreateLine(lx, 30, lx, 20*len(Calend)+50)
+ Objects.append(ob)
+ for ly in range(50, 20*len(Calend)+50, 20):
+ ob = CreateLine(10, ly, 255, ly)
+ Objects.append(ob)
+ ob = CreateRect(10, 30, 245, 20*len(Calend)+20)
+ SetFillColor("None", ob)
+ Objects.append(ob)
+ for day in range(7):
+ ob = CreateText(Xcoor, Ycoor, 35, 20)
+ SetTextAlignment(Centered, ob)
+ SetFontSize(12, ob)
+ if day == 6:
+ SetTextColor("Red", ob)
+ SetText(DaysList[day], ob)
+ Objects.append(ob)
+ Xcoor = Xcoor + 35
+ Ycoor = Ycoor + 20
+ for lines in Calend:
+ Xcoor = 10
+ DayC = 0
+ for rows in lines:
+ if rows != 0:
+ ob = CreateText(Xcoor, Ycoor, 35, 20)
+ SetTextAlignment(Centered, ob)
+ if DayC == 6:
+ SetTextColor("Red", ob)
+ SetText(str(rows), ob)
+ Objects.append(ob)
+ Xcoor = Xcoor + 35
+ DayC = DayC + 1
+ Ycoor = Ycoor + 20
+ GroupObjects(Objects)
/trunk/Scribus/scribus/plugins/scriptplugin/samples/Calender.py
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/samples/htmlimport.py
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/samples/htmlimport.py (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/samples/htmlimport.py (revision 82)
@@ -0,0 +1,97 @@
+from scribus import *
+
+from sgmllib import SGMLParser
+from htmlentitydefs import entitydefs
+import os
+
+
+DEFAULT_SIZE = 10
+HEADERS = {'h1': 48, 'h2': 36, 'h3': 24,
+ 'h4': 18, 'h5': 14, 'h6': 12 }
+NEWLINE = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6',
+ 'br', 'p', 'li', 'div', 'tr']
+
+
+class HTMLParser(SGMLParser):
+
+ def __init__(self, textbox):
+ SGMLParser.__init__(self)
+ self.in_body = 0
+ self.textbox = textbox
+ self.textbox.setSize(DEFAULT_SIZE)
+
+ def start_body(self, attrs):
+ self.in_body = 1
+
+ def end_body(self):
+ self.in_body = 0
+
+ def unknown_starttag(self, name, attrs):
+ if name in NEWLINE:
+ self.textbox.append('\n')
+ if name in HEADERS.keys():
+ self.textbox.setSize(HEADERS[name])
+
+ def unknown_endtag(self, name):
+ if name in HEADERS.keys():
+ self.textbox.setSize(DEFAULT_SIZE)
+ if name in NEWLINE:
+ self.textbox.append('\n')
+
+ def handle_data(self, raw_data):
+ if self.in_body:
+ data = ' '.join(
+ raw_data.replace('\n', ' ').split())
+ if raw_data.startswith(' '):
+ data = ' ' + data
+ if raw_data.endswith(' ') and len(raw_data) > 1:
+ data = data + ' '
+ self.textbox.append(data)
+
+ def unknown_entityref(self, entity):
+ self.handle_data(entitydefs.get(entity, ''))
+
+
+
+def openFileDialog():
+ cmd = 'kdialog --getopenfilename "." "*.html|*.htm"'
+ pipe = os.popen(cmd)
+ filename = pipe.read()[:-1]
+ pipe.close()
+ return filename
+
+
+def messageBox(msg):
+ cmd = 'kdialog --msgbox "%s"' % msg
+ os.system(cmd)
+
+
+class TextBox:
+
+ def __init__(self, x, y, width, height):
+ self.boxid = CreateText(x, y, width, height)
+
+ def setSize(self, size):
+ # XXX: disabled, doesn't work like expected
+ pass #SetFontSize(size, self.boxid)
+
+ def append(self, text):
+ InsertText(text, GetTextLength(self.boxid),
+ self.boxid)
+
+
+
+
+def main():
+ if HaveDoc():
+ filename = openFileDialog()
+ if filename:
+ SetUnit(1)
+ textbox = TextBox(20, 20, 70, 250)
+ parser = HTMLParser(textbox)
+ parser.feed(open(filename).read())
+ else:
+ messageBox("No document selected")
+
+
+main()
/trunk/Scribus/scribus/plugins/scriptplugin/samples/htmlimport.py
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/samples/Makefile.am
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/samples/Makefile.am (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/samples/Makefile.am (revision 82)
@@ -0,0 +1,19 @@
+####### kdevelop will overwrite this part!!! (begin)##########
+
+
+EXTRA_DIST = Sample1.py Calender.py ReadMe
+
+install-data-local:
+ $(mkinstalldirs) $(prefix)/lib/scribus/samples/
+ $(INSTALL_DATA) $(srcdir)/Sample1.py $(prefix)/lib/scribus/samples/Sample1.py
+ $(mkinstalldirs) $(prefix)/lib/scribus/samples/
+ $(INSTALL_DATA) $(srcdir)/Calender.py $(prefix)/lib/scribus/samples/Calendar.py
+ $(mkinstalldirs) $(prefix)/lib/scribus/samples/
+ $(INSTALL_DATA) $(srcdir)/ReadMe $(prefix)/lib/scribus/samples/ReadMe
+
+uninstall-local:
+ -rm -f $(prefix)/lib/scribus/samples/Sample1.py
+ -rm -f $(prefix)/lib/scribus/samples/Calendar.py
+ -rm -f $(prefix)/lib/scribus/samples/ReadMe
+
+####### kdevelop will overwrite this part!!! (end)############
/trunk/Scribus/scribus/plugins/scriptplugin/samples/Makefile.am
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/samples/Sample1.py
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/samples/Sample1.py (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/samples/Sample1.py (revision 82)
@@ -0,0 +1,10 @@
+from scribus import *
+Margins = (10, 10, 10, 30)
+if NewDoc(Paper_A4, Margins, Portrait, 1, Points, NoFacingPages, FirstPageRight):
+ a = CreateText(50, 50, 200, 80)
+ SetText("A Test for Scribus", a)
+ SetFontSize(20, a)
+ b = CreateEllipse(267, 391, 60, 60)
+ SetFillColor("Red", b)
+ SaveDocAs("Sample1.scd")
+ CloseDoc()
/trunk/Scribus/scribus/plugins/scriptplugin/samples/Sample1.py
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/samples/3columnA4.py
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/samples/3columnA4.py (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/samples/3columnA4.py (revision 82)
@@ -0,0 +1,18 @@
+from scribus import *
+Margins = (50, 50, 50, 50)
+size=(612,792)
+if NewDoc(Paper_A4, Margins, Landscape, 1, Points, NoFacingPages, FirstPageLeft):
+ a = CreateText(50, 50, 230, 512)
+ SetTextAlignment(1,a)
+ SetText("Column A", a)
+ SetFontSize(12, a)
+ b = CreateText(280, 50, 230, 512)
+ SetTextAlignment(1,b)
+ SetText("Column B", b)
+ SetFontSize(12, b)
+ c = CreateText(510, 50, 230, 512)
+ SetTextAlignment(1,b)
+ SetText("Column C", c)
+ SetFontSize(12, c)
+ SaveDocAs("3columnA4.sla")
+ CloseDoc()
/trunk/Scribus/scribus/plugins/scriptplugin/samples/3columnA4.py
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/samples/ReadMe
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/samples/ReadMe (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/samples/ReadMe (revision 82)
@@ -0,0 +1,6 @@
+This folder contains some Example Scripts:
+
+Sample1.py = Very simple Example, creates a Docmument with some Objects, saves the Document and closes it.
+Calendar.py = Creates a Calendar of the current Month in the current Document as a Group
+
+Copy these Examples to any location you like and play with them.
/trunk/Scribus/scribus/plugins/scriptplugin/samples/ReadMe
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/cmddialog.cpp
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmddialog.cpp (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmddialog.cpp (revision 82)
@@ -0,0 +1,25 @@
+#include "cmdvar.h"
+#include "cmddialog.h"
+
+PyObject *scribus_newdocdia(PyObject *self, PyObject* args)
+{
+ if (!PyArg_ParseTuple(args, ""))
+ return NULL;
+ bool ret = Carrier->slotFileNew();
+ if (ret)
+ doc = Carrier->doc;
+ return PyInt_FromLong(static_cast<long>(ret));
+}
+
+PyObject *scribus_filedia(PyObject *self, PyObject* args)
+{
+ char *caption;
+ char *filter;
+ char *defName;
+ int pre = 0;
+ int mode = 0;
+ if (!PyArg_ParseTuple(args, "sss|ii", &caption, &filter, &defName, &pre, &mode))
+ return NULL;
+ return PyString_FromString(Carrier->CFileDialog(caption, filter, defName, static_cast<bool>(pre), static_cast<bool>(mode), 0, 0));
+}
+
/trunk/Scribus/scribus/plugins/scriptplugin/cmddialog.cpp
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/conswin.h
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/conswin.h (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/conswin.h (revision 82)
@@ -0,0 +1,42 @@
+/***************************************************************************
+ conswin.h - description
+ -------------------
+ begin : Mon Okt 14 2002
+ copyright : (C) 2002 by Franz Schmid
+ email : Franz.Schmid@altmuehlnet.de
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#ifndef CONSWIN_H
+#define CONSWIN_H
+
+#include <qtextedit.h>
+
+/**
+ *@author Franz Schmid
+ */
+
+class ConsWin : public QTextEdit
+{
+ Q_OBJECT
+public:
+ ConsWin(QWidget* parent);
+ ~ConsWin() {} ;
+ void keyPressEvent(QKeyEvent *k);
+ void contentsMousePressEvent(QMouseEvent *m);
+ void contentsMouseReleaseEvent(QMouseEvent *);
+ void contentsMouseMoveEvent(QMouseEvent *);
+ void contentsMouseDoubleClickEvent(QMouseEvent *);
+ QString LastComm;
+ QString Prompt;
+};
+
+#endif
/trunk/Scribus/scribus/plugins/scriptplugin/conswin.h
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/cmdsetprop.h
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdsetprop.h (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdsetprop.h (revision 82)
@@ -0,0 +1,20 @@
+#ifndef CMDSETPROP_H
+#define CMDSETPROP_H
+
+#include <Python.h>
+
+/** Setting Object Properties */
+PyObject *scribus_setgradfill(PyObject *self, PyObject* args);
+PyObject *scribus_setfillcolor(PyObject *self, PyObject* args);
+PyObject *scribus_setlinecolor(PyObject *self, PyObject* args);
+PyObject *scribus_setlinewidth(PyObject *self, PyObject* args);
+PyObject *scribus_setlineshade(PyObject *self, PyObject* args);
+PyObject *scribus_setlinejoin(PyObject *self, PyObject* args);
+PyObject *scribus_setlineend(PyObject *self, PyObject* args);
+PyObject *scribus_setlinestyle(PyObject *self, PyObject* args);
+PyObject *scribus_setfillshade(PyObject *self, PyObject* args);
+PyObject *scribus_setcornerrad(PyObject *self, PyObject* args);
+PyObject *scribus_setmultiline(PyObject *self, PyObject* args);
+
+#endif
+
/trunk/Scribus/scribus/plugins/scriptplugin/cmdsetprop.h
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/pconsole.h
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/pconsole.h (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/pconsole.h (revision 82)
@@ -0,0 +1,28 @@
+#ifndef PCONSOLE_H
+#define PCONSOLE_H
+
+// #include <qdialog.h>
+#include <qvariant.h>
+#include <qlayout.h>
+#include <qtooltip.h>
+#include <qwhatsthis.h>
+#include <conswin.h>
+
+class PConsole : public QWidget
+{
+ Q_OBJECT
+
+public:
+ PConsole( QWidget* parent );
+ ~PConsole() {};
+ void closeEvent(QCloseEvent *ce);
+ ConsWin* OutWin;
+
+signals:
+ void Schliessen();
+
+protected:
+ QVBoxLayout* PConsoleLayout;
+};
+
+#endif // PCONSOLE_H
/trunk/Scribus/scribus/plugins/scriptplugin/pconsole.h
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/scriptplugin/Makefile.am
===================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/Makefile.am (nonexistent)
+++ trunk/Scribus/scribus/plugins/scriptplugin/Makefile.am (revision 82)
@@ -0,0 +1,11 @@
+SUBDIRS = doc samples
+pluginsdir = $(prefix)/lib/scribus/plugins
+AM_CPPFLAGS = -I$(top_builddir)/scribus $(PYTHONINC)
+plugins_LTLIBRARIES = libscriptplugin.la
+INCLUDES = $(LIBFREETYPE_CFLAGS) $(all_includes)
+libscriptplugin_la_LDFLAGS = -version-info 0:0:0
+libscriptplugin_la_METASOURCES = AUTO
+libscriptplugin_la_SOURCES = cmdutil.cpp cmddialog.cpp cmddoc.cpp cmdpage.cpp cmdobj.cpp cmdgetprop.cpp cmdsetprop.cpp cmdtext.cpp cmdmani.cpp cmdcolor.cpp cmdmisc.cpp conswin.cpp pconsole.cpp scriptplugin.cpp
+EXTRA_DIST = cmdvar.h cmdutil.cpp cmdutil.h cmddialog.cpp cmddialog.h cmddoc.cpp cmddoc.h cmdpage.cpp cmdpage.h cmdobj.cpp cmdobj.h cmdgetprop.cpp cmdgetprop.h cmdsetprop.cpp cmdsetprop.h cmdtext.cpp cmdtext.h cmdmani.cpp cmdmani.h cmdcolor.cpp cmdcolor.h cmdmisc.cpp cmdmisc.h scriptplugin.cpp scriptplugin.h pconsole.cpp pconsole.h conswin.cpp conswin.h
+KDE_OPTIONS = qtonly
+AM_LDFLAGS = -Xlinker -s $(PYTHONLIB) $(LIBPYTHON)
/trunk/Scribus/scribus/plugins/scriptplugin/Makefile.am
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: trunk/Scribus/scribus/plugins/Makefile.am
===================================================================
--- trunk/Scribus/scribus/plugins/Makefile.am (revision 81)
+++ trunk/Scribus/scribus/plugins/Makefile.am (revision 82)
@@ -1,5 +1,5 @@
####### kdevelop will overwrite this part!!! (begin)##########
-SUBDIRS = libchar svgexplugin svgimplugin printpreview
+SUBDIRS = libchar svgexplugin svgimplugin printpreview scriptplugin
####### kdevelop will overwrite this part!!! (end)############
/trunk/Scribus/scribus/libpdf/pdflib.cpp
2894,7 → 2894,7
QFileInfo fi = QFileInfo(fn);
QString ext = fi.extension(false).lower();
QImage img;
QString im, tmp, dummy, cmd1, cmd2, BBox;
QString im, tmp, tmpy, dummy, cmd1, cmd2, BBox;
QChar tc;
bool found = false;
int ret = -1;
3026,7 → 3026,7
h = h * aufl;
cmd1 = "gs -q -dNOPAUSE -sDEVICE=png16m -r"+IToStr(afl)+" -sOutputFile=/tmp/sc.png -g";
cmd2 = " -c showpage -c quit";
ret = system(cmd1 + tmp.setNum(qRound(b)) + "x" + tmp.setNum(qRound(h)) + " " + fn + cmd2);
ret = system(cmd1 + tmp.setNum(qRound(b)) + "x" + tmpy.setNum(qRound(h)) + " " + fn + cmd2);
if (ret == 0)
{
QImage image;
/trunk/Scribus/scribus/po/scribus.de_DE.po
2927,3 → 2927,41
msgid "Lang.:"
msgstr "Sprache:"
 
msgid "Execute Script..."
msgstr "Script ausführen..."
 
msgid "Python Scripts (*.py);; All Files (*)"
msgstr "Python Scripts (*.py);; Alle Dateien (*)"
 
msgid "About Scripter"
msgstr "Über Scripter"
 
msgid "About Scripter..."
msgstr "Über Scripter..."
 
msgid "Scripter"
msgstr "Scripter"
 
msgid "This Plugin allows you to use Python as a"
msgstr "Dieses Plugin erlaubt es Python als"
 
msgid "scripting Language for Scribus."
msgstr "Script Sprache für Scribus zu benutzen."
 
msgid "Online Reference"
msgstr "Scripter-Referenz"
 
msgid "Online-Help"
msgstr "Handbuch"
 
msgid "Show Console"
msgstr "Konsole zeigen"
 
msgid "Hide Console"
msgstr "Konsole verbergen"
 
msgid "Script Console"
msgstr "Script Konsole"
 
msgid "Recent Scripts"
msgstr "Letzte Scripte"
/trunk/Scribus/scribus/po/scribus.cs_CZ.po
2910,3 → 2910,41
msgid "Position:"
msgstr "Pozice:"
 
msgid "Execute Script..."
msgstr "Vykonat skript..."
 
msgid "Python Scripts (*.py);; All Files (*)"
msgstr "Python skripty (*.py);; V¹echny soubory (*)"
 
msgid "About Scripter"
msgstr "O Scripteru"
 
msgid "About Scripter..."
msgstr "O Scripteru..."
 
msgid "Scripter"
msgstr "Scripter"
 
msgid "This Plugin allows you to use Python as a"
msgstr "Tento modul vám umo¾òuje pou¾ít Python jako"
 
msgid "scripting Language for Scribus."
msgstr "skriptovací jazyk programu Scribus."
 
msgid "Online Reference"
msgstr "Reference"
 
msgid "Online-Help"
msgstr "Nápovìda"
 
msgid "Show Console"
msgstr "Ukázat konzoli"
 
msgid "Hide Console"
msgstr "Skrýt konzoli"
 
msgid "Script Console"
msgstr "Konzole skriptù"
 
msgid "Recent Scripts"
msgstr "Naposledy u¾ité skripty"
/trunk/Scribus/scribus/po/scribus.fr.po
1376,7 → 1376,7
#: scribus/colorm.cpp:94
#: scribus/mergedoc.cpp:89
#: scribus/scribus.cpp:2141
msgid "Documents (*.sla *.sla.gz *.scd *.scd.gz);;All Files (*)"
msgid "Documents (*.sla *.sla.gz *.scd *.scd.gz);; All Files (*)"
msgstr "Documents (*.sla *.sla.gz *.scd *.scd.gz);;Tous les fichiers (*)"
 
#: scribus/colorm.cpp:96
1774,7 → 1774,7
msgstr "Enregistrer sous"
 
#: scribus/druck.cpp:583
msgid "Postscript-Files (*.ps);;All Files (*)"
msgid "Postscript-Files (*.ps);; All Files (*)"
msgstr "Fichiers PS (*.ps);;Tous les fichiers (*)"
 
#: scribus/edit1format.cpp:9
1964,7 → 1964,7
 
#: scribus/editor.cpp:59
#: scribus/editor.cpp:74
msgid "JavaScripts (*.js);;All Files (*)"
msgid "JavaScripts (*.js);; All Files (*)"
msgstr "Javascripts (*.js);;Tous les fichiers (*)"
 
#: scribus/fontprefs.cpp:14
3566,7 → 3566,7
 
#: scribus/scrap.cpp:196
#: scribus/scrap.cpp:208
msgid "Scrapbooks (*.scs);;All Files (*)"
msgid "Scrapbooks (*.scs);; All Files (*)"
msgstr "Albums (*.scs);;Tous les fichiers (*)"
 
#: scribus/scrap.cpp:323
4087,7 → 4087,7
msgstr "Images"
 
#: scribus/scribus.cpp:2472
msgid ");;Vectorimages (*.eps *.pdf);;All Files (*)"
msgid ");;Vectorimages (*.eps *.pdf);; All Files (*)"
msgstr ");;Fichiers vectoriels (*.eps *.pdf);;Tous les fichiers (*)"
 
#: scribus/scribus.cpp:2490
4109,7 → 4109,7
"%1"
 
#: scribus/scribus.cpp:2539
msgid "Documents (*.sla *.sla.gz *.scd *scd.gz);;All Files (*)"
msgid "Documents (*.sla *.sla.gz *.scd *scd.gz);; All Files (*)"
msgstr "Documents (*.sla *.sla.gz *.scd *.scd.gz);;Tous les fichiers (*)"
 
#: scribus/plugins/svgexplugin/svgexplugin.cpp:48
4202,7 → 4202,7
msgstr "Ghostscript : vous ne pouvez pas utiliser d'images EPS"
 
#: scribus/scribus.cpp:5253
msgid "EPS-Files (*.eps);;All Files (*)"
msgid "EPS-Files (*.eps);; All Files (*)"
msgstr "Fichiers EPS (*.eps);;Tous les fichiers (*)"
 
#: scribus/scribus.cpp:5788
4736,6 → 4736,44
msgstr "Lisser les objets graphiques"
 
#: scribus/plugins/svgexplugin/svgexplugin.cpp:41
msgid "SVG-Images (*.svg);;All Files (*)"
msgid "SVG-Images (*.svg);; All Files (*)"
msgstr "Fichiers SVG (*.svg);;Tous les fichiers (*)"
 
msgid "Execute Script..."
msgstr "Démarrer un Script..."
 
msgid "Python Scripts (*.py);; All Files (*)"
msgstr "Python Scripts (*.py);; Tous les fichiers (*)"
 
msgid "About Scripter"
msgstr "À propos de Scripter"
 
msgid "About Scripter..."
msgstr "À propos de Scripter..."
 
msgid "Scripter"
msgstr "Scripter"
 
msgid "This Plugin allows you to use Python as a"
msgstr "Ce plugiciel est pour utiliser Python comme un"
 
msgid "scripting Language for Scribus."
msgstr "langage de script pour Scribus."
 
msgid "Online Reference"
msgstr "Référence en ligne"
 
msgid "Online-Help"
msgstr "Aide en ligne"
 
msgid "Show Console"
msgstr "Afficher la Console"
 
msgid "Hide Console"
msgstr "Masquer la Console"
 
msgid "Script Console"
msgstr "Console de Script"
 
msgid "Recent Scripts"
msgstr "Scripts récents"
/trunk/Scribus/scribus/hruler.h
44,9 → 44,9
int Markp;
bool repX;
bool Mpressed;
QFont rfont;
private: // Private attributes
/** Zeichensatz des Lineals */
QFont rfont;
ScribusDoc *doku;
public slots: // Public slots
/** Zeichnet den Pfeil */
/trunk/Scribus/scribus/scribusXml.cpp
1662,7 → 1662,7
QString ScriXmlDoc::WriteElem(QPtrList<PageItem> *Selitems, ScribusDoc *doc)
{
int ts, ts2, tsh, tsh2, tst, tst2, tsb, tsb2, tshs, tshs2, tsc, tsc2;
QString text, tf, tf2, tc, tc2, tcs, tcs2, tmp;
QString text, tf, tf2, tc, tc2, tcs, tcs2, tmp, tmpy;
double te, te2, xf, yf;
PageItem *item;
QDomDocument docu("scribus");
1961,7 → 1961,7
QString txnu = "";
for(uint kt=0;kt<item->Ptext.count();++kt)
{
txnu += tmp.setNum(item->Ptext.at(kt)->xp) + " " + tmp.setNum(item->Ptext.at(kt)->yp) + " ";
txnu += tmp.setNum(item->Ptext.at(kt)->xp) + " " + tmpy.setNum(item->Ptext.at(kt)->yp) + " ";
}
ob.setAttribute("TEXTCOOR", txnu);
ob.setAttribute("NUMGROUP",static_cast<int>(item->Groups.count()));
1977,7 → 1977,7
for (uint nxx=0; nxx<item->PoLine.size(); ++nxx)
{
item->PoLine.point(nxx, &xf, &yf);
polp += tmp.setNum(xf) + " " + tmp.setNum(yf) + " ";
polp += tmp.setNum(xf) + " " + tmpy.setNum(yf) + " ";
}
ob.setAttribute("POCOOR", polp);
ob.setAttribute("BACKITEM", -1);
2046,7 → 2046,7
void ScriXmlDoc::WritePages(ScribusView *view, QDomDocument docu, QDomElement dc, QProgressBar *dia2, uint maxC)
{
int ts, ts2, tsh, tsh2, tst, tst2, tsb, tsb2, tshs, tshs2, tsc, tsc2;
QString text, tf, tf2, tc, tc2, tcs, tcs2, tmp, Ndir;
QString text, tf, tf2, tc, tc2, tcs, tcs2, tmp, tmpy, Ndir;
double te, te2, xf, yf;
uint ObCount = maxC;
Page *page;
2343,7 → 2343,7
for (uint nxx=0; nxx<item->PoLine.size(); ++nxx)
{
item->PoLine.point(nxx, &xf, &yf);
polp += tmp.setNum(xf) + " " + tmp.setNum(yf) + " ";
polp += tmp.setNum(xf) + " " + tmpy.setNum(yf) + " ";
}
ob.setAttribute("POCOOR", polp);
if (item->BackBox != 0)
/trunk/Scribus/scribus/qm/scribus.cs.qm
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/trunk/Scribus/scribus/qm/scribus.fr.qm
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/trunk/Scribus/scribus/qm/scribus.de.qm
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/trunk/Scribus/scribus.kdevprj
23,7 → 23,7
cppflags=
cxxflags=\s-O0 -Wall
ldadd=-ldl -lcms -ltiff -lm $(LIB_QT) -lXext -lX11
ldflags=\s-s -export-dynamic\s
ldflags=\s-s -export-dynamic\s
 
[General]
AMChanged=false
31,9 → 31,9
configure_args=
email=Franz.Schmid@altmuehlnet.de
kdevprj_version=1.3
lfv_open_groups=
lfv_open_groups=Quellen
make_options=\s-j1
makefiles=Makefile.am,scribus/Makefile.am,scribus/icons/Makefile.am,scribus/libabout/Makefile.am,scribus/libprefs/Makefile.am,scribus/plugins/libchar/Makefile.am,scribus/plugins/printpreview/Makefile,scribus/plugins/svgexplugin/Makefile.am,scribus/plugins/svgimplugin/Makefile.am,scribus/plugins/Makefile.am,scribus/libpostscript/Makefile.am,scribus/profiles/Makefile.am,scribus/libpdf/Makefile.am,scribus/dicts/Makefile.am,scribus/po/Makefile.am,scribus/qm/Makefile.am,scribus/plugins/printpreview/Makefile.am
makefiles=Makefile.am,scribus/Makefile.am,scribus/icons/Makefile.am,scribus/libabout/Makefile.am,scribus/libprefs/Makefile.am,scribus/plugins/libchar/Makefile.am,scribus/plugins/scriptplugin/Makefile.am,scribus/plugins/scriptplugin/doc/Makefile.am,scribus/plugins/scriptplugin/samples/Makefile.am,scribus/plugins/svgexplugin/Makefile.am,scribus/plugins/svgimplugin/Makefile.am,scribus/plugins/Makefile.am,scribus/libpostscript/Makefile.am,scribus/profiles/Makefile.am,scribus/libpdf/Makefile.am,scribus/dicts/Makefile.am,scribus/po/Makefile.am,scribus/qm/Makefile.am,scribus/plugins/printpreview/Makefile.am
modifyMakefiles=false
project_name=Scribus
project_type=normal_qt2
40,7 → 40,7
sgml_file=
short_info=
sub_dir=scribus/
version=1.1.1
version=1.1.2cvs
version_control=CVS
workspace=1
 
1799,6 → 1799,351
install_location=
type=HEADER
 
[scribus/plugins/scriptplugin/Makefile.am]
files=scribus/plugins/scriptplugin/cmdmisc.cpp,scribus/plugins/scriptplugin/cmdmisc.h,scribus/plugins/scriptplugin/cmdcolor.cpp,scribus/plugins/scriptplugin/cmdcolor.h,scribus/plugins/scriptplugin/cmdmani.cpp,scribus/plugins/scriptplugin/cmdmani.h,scribus/plugins/scriptplugin/cmdsetprop.cpp,scribus/plugins/scriptplugin/cmdsetprop.h,scribus/plugins/scriptplugin/cmdtext.cpp,scribus/plugins/scriptplugin/cmdtext.h,scribus/plugins/scriptplugin/cmdgetprop.cpp,scribus/plugins/scriptplugin/cmdgetprop.h,scribus/plugins/scriptplugin/cmdvar.h,scribus/plugins/scriptplugin/cmdobj.cpp,scribus/plugins/scriptplugin/cmdobj.h,scribus/plugins/scriptplugin/cmdpage.cpp,scribus/plugins/scriptplugin/cmdpage.h,scribus/plugins/scriptplugin/cmddoc.cpp,scribus/plugins/scriptplugin/cmddoc.h,scribus/plugins/scriptplugin/cmdutil.cpp,scribus/plugins/scriptplugin/cmdutil.h,scribus/plugins/scriptplugin/cmddialog.cpp,scribus/plugins/scriptplugin/cmddialog.h,scribus/plugins/scriptplugin/scriptplugin.cpp,scribus/plugins/scriptplugin/scriptplugin.h,scribus/plugins/scriptplugin/pconsole.cpp,scribus/plugins/scriptplugin/pconsole.h,scribus/plugins/scriptplugin/conswin.cpp,scribus/plugins/scriptplugin/conswin.h
sharedlib_LDFLAGS=-version-info 0:0:0
sharedlib_rootname=scriptplugin
sub_dirs=doc,samples
type=shared_library
 
[scribus/plugins/scriptplugin/cmdcolor.cpp]
dist=true
install=false
install_location=
type=SOURCE
 
[scribus/plugins/scriptplugin/cmdcolor.h]
dist=true
install=false
install_location=
type=HEADER
 
[scribus/plugins/scriptplugin/cmddialog.cpp]
dist=true
install=false
install_location=
type=SOURCE
 
[scribus/plugins/scriptplugin/cmddialog.h]
dist=true
install=false
install_location=
type=HEADER
 
[scribus/plugins/scriptplugin/cmddoc.cpp]
dist=true
install=false
install_location=
type=SOURCE
 
[scribus/plugins/scriptplugin/cmddoc.h]
dist=true
install=false
install_location=
type=HEADER
 
[scribus/plugins/scriptplugin/cmdgetprop.cpp]
dist=true
install=false
install_location=
type=SOURCE
 
[scribus/plugins/scriptplugin/cmdgetprop.h]
dist=true
install=false
install_location=
type=HEADER
 
[scribus/plugins/scriptplugin/cmdmani.cpp]
dist=true
install=false
install_location=
type=SOURCE
 
[scribus/plugins/scriptplugin/cmdmani.h]
dist=true
install=false
install_location=
type=HEADER
 
[scribus/plugins/scriptplugin/cmdmisc.cpp]
dist=true
install=false
install_location=
type=SOURCE
 
[scribus/plugins/scriptplugin/cmdmisc.h]
dist=true
install=false
install_location=
type=HEADER
 
[scribus/plugins/scriptplugin/cmdobj.cpp]
dist=true
install=false
install_location=
type=SOURCE
 
[scribus/plugins/scriptplugin/cmdobj.h]
dist=true
install=false
install_location=
type=HEADER
 
[scribus/plugins/scriptplugin/cmdpage.cpp]
dist=true
install=false
install_location=
type=SOURCE
 
[scribus/plugins/scriptplugin/cmdpage.h]
dist=true
install=false
install_location=
type=HEADER
 
[scribus/plugins/scriptplugin/cmdsetprop.cpp]
dist=true
install=false
install_location=
type=SOURCE
 
[scribus/plugins/scriptplugin/cmdsetprop.h]
dist=true
install=false
install_location=
type=HEADER
 
[scribus/plugins/scriptplugin/cmdtext.cpp]
dist=true
install=false
install_location=
type=SOURCE
 
[scribus/plugins/scriptplugin/cmdtext.h]
dist=true
install=false
install_location=
type=HEADER
 
[scribus/plugins/scriptplugin/cmdutil.cpp]
dist=true
install=false
install_location=
type=SOURCE
 
[scribus/plugins/scriptplugin/cmdutil.h]
dist=true
install=false
install_location=
type=HEADER
 
[scribus/plugins/scriptplugin/cmdvar.h]
dist=true
install=false
install_location=
type=HEADER
 
[scribus/plugins/scriptplugin/conswin.cpp]
dist=true
install=false
install_location=
type=SOURCE
 
[scribus/plugins/scriptplugin/conswin.h]
dist=true
install=false
install_location=
type=HEADER
 
[scribus/plugins/scriptplugin/doc/Makefile.am]
sub_dirs=en
type=normal
 
[scribus/plugins/scriptplugin/doc/en/Makefile.am]
files=scribus/plugins/scriptplugin/doc/en/index.html,scribus/plugins/scriptplugin/doc/en/node1.html,scribus/plugins/scriptplugin/doc/en/node10.html,scribus/plugins/scriptplugin/doc/en/node11.html,scribus/plugins/scriptplugin/doc/en/node12.html,scribus/plugins/scriptplugin/doc/en/node13.html,scribus/plugins/scriptplugin/doc/en/node14.html,scribus/plugins/scriptplugin/doc/en/node15.html,scribus/plugins/scriptplugin/doc/en/node16.html,scribus/plugins/scriptplugin/doc/en/node17.html,scribus/plugins/scriptplugin/doc/en/node18.html,scribus/plugins/scriptplugin/doc/en/node2.html,scribus/plugins/scriptplugin/doc/en/node3.html,scribus/plugins/scriptplugin/doc/en/Scripter.png,scribus/plugins/scriptplugin/doc/en/node9.html,scribus/plugins/scriptplugin/doc/en/node8.html,scribus/plugins/scriptplugin/doc/en/node7.html,scribus/plugins/scriptplugin/doc/en/node6.html,scribus/plugins/scriptplugin/doc/en/node5.html,scribus/plugins/scriptplugin/doc/en/node4.html,scribus/plugins/scriptplugin/doc/en/scribus.css,scribus/plugins/scriptplugin/doc/en/node19.html
sub_dirs=
type=normal
 
[scribus/plugins/scriptplugin/doc/en/Scripter.png]
dist=true
install=true
install_location=$$(prefix)/lib/scribus/doc/en/Scripter/Scripter.png
type=DATA
 
[scribus/plugins/scriptplugin/doc/en/index.html]
dist=true
install=true
install_location=$$(prefix)/lib/scribus/doc/en/Scripter/index.html
type=DATA
 
[scribus/plugins/scriptplugin/doc/en/node1.html]
dist=true
install=true
install_location=$$(prefix)/lib/scribus/doc/en/Scripter/node1.html
type=DATA
 
[scribus/plugins/scriptplugin/doc/en/node10.html]
dist=true
install=true
install_location=$$(prefix)/lib/scribus/doc/en/Scripter/node10.html
type=DATA
 
[scribus/plugins/scriptplugin/doc/en/node11.html]
dist=true
install=true
install_location=$$(prefix)/lib/scribus/doc/en/Scripter/node11.html
type=DATA
 
[scribus/plugins/scriptplugin/doc/en/node12.html]
dist=true
install=true
install_location=$$(prefix)/lib/scribus/doc/en/Scripter/node12.html
type=DATA
 
[scribus/plugins/scriptplugin/doc/en/node13.html]
dist=true
install=true
install_location=$$(prefix)/lib/scribus/doc/en/Scripter/node13.html
type=DATA
 
[scribus/plugins/scriptplugin/doc/en/node14.html]
dist=true
install=true
install_location=$$(prefix)/lib/scribus/doc/en/Scripter/node14.html
type=DATA
 
[scribus/plugins/scriptplugin/doc/en/node15.html]
dist=true
install=true
install_location=$$(prefix)/lib/scribus/doc/en/Scripter/node15.html
type=DATA
 
[scribus/plugins/scriptplugin/doc/en/node16.html]
dist=true
install=true
install_location=$$(prefix)/lib/scribus/doc/en/Scripter/node16.html
type=DATA
 
[scribus/plugins/scriptplugin/doc/en/node17.html]
dist=true
install=true
install_location=$$(prefix)/lib/scribus/doc/en/Scripter/node17.html
type=DATA
 
[scribus/plugins/scriptplugin/doc/en/node18.html]
dist=true
install=true
install_location=$$(prefix)/lib/scribus/doc/en/Scripter/node18.html
type=DATA
 
[scribus/plugins/scriptplugin/doc/en/node19.html]
dist=true
install=true
install_location=$$(prefix)/lib/scribus/doc/en/Scripter/node19.html
type=DATA
 
[scribus/plugins/scriptplugin/doc/en/node2.html]
dist=true
install=true
install_location=$$(prefix)/lib/scribus/doc/en/Scripter/node2.html
type=DATA
 
[scribus/plugins/scriptplugin/doc/en/node3.html]
dist=true
install=true
install_location=$$(prefix)/lib/scribus/doc/en/Scripter/node3.html
type=DATA
 
[scribus/plugins/scriptplugin/doc/en/node4.html]
dist=true
install=true
install_location=$$(prefix)/lib/scribus/doc/en/Scripter/node4.html
type=DATA
 
[scribus/plugins/scriptplugin/doc/en/node5.html]
dist=true
install=true
install_location=$$(prefix)/lib/scribus/doc/en/Scripter/node5.html
type=DATA
 
[scribus/plugins/scriptplugin/doc/en/node6.html]
dist=true
install=true
install_location=$$(prefix)/lib/scribus/doc/en/Scripter/node6.html
type=DATA
 
[scribus/plugins/scriptplugin/doc/en/node7.html]
dist=true
install=true
install_location=$$(prefix)/lib/scribus/doc/en/Scripter/node7.html
type=DATA
 
[scribus/plugins/scriptplugin/doc/en/node8.html]
dist=true
install=true
install_location=$$(prefix)/lib/scribus/doc/en/Scripter/node8.html
type=DATA
 
[scribus/plugins/scriptplugin/doc/en/node9.html]
dist=true
install=true
install_location=$$(prefix)/lib/scribus/doc/en/Scripter/node9.html
type=DATA
 
[scribus/plugins/scriptplugin/doc/en/scribus.css]
dist=true
install=true
install_location=$$(prefix)/lib/scribus/doc/en/Scripter/scribus.css
type=DATA
 
[scribus/plugins/scriptplugin/pconsole.cpp]
dist=true
install=false
install_location=
type=SOURCE
 
[scribus/plugins/scriptplugin/pconsole.h]
dist=true
install=false
install_location=
type=HEADER
 
[scribus/plugins/scriptplugin/samples/Calender.py]
dist=true
install=true
install_location=$$(prefix)/lib/scribus/samples/Calendar.py
type=DATA
 
[scribus/plugins/scriptplugin/samples/Makefile.am]
files=scribus/plugins/scriptplugin/samples/Sample1.py,scribus/plugins/scriptplugin/samples/Calender.py,scribus/plugins/scriptplugin/samples/ReadMe
sub_dirs=
type=normal
 
[scribus/plugins/scriptplugin/samples/ReadMe]
dist=true
install=true
install_location=$$(prefix)/lib/scribus/samples/ReadMe
type=DATA
 
[scribus/plugins/scriptplugin/samples/Sample1.py]
dist=true
install=true
install_location=$$(prefix)/lib/scribus/samples/Sample1.py
type=DATA
 
[scribus/plugins/scriptplugin/scriptplugin.cpp]
dist=true
install=false
install_location=
type=SOURCE
 
[scribus/plugins/scriptplugin/scriptplugin.h]
dist=true
install=false
install_location=
type=HEADER
 
[scribus/plugins/svgexplugin/Makefile.am]
files=scribus/plugins/svgexplugin/svgexplugin.cpp,scribus/plugins/svgexplugin/svgexplugin.h
sharedlib_LDFLAGS=-version-info 0:0:0