Author: jghali
Date: Mon May  4 01:19:59 2020
New Revision: 23686

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23686
Log:
Deprecate scripter's getStyle() and setStyle() and rename them to 
getParagraphStyle() and setParagraphStyle()

Modified:
    trunk/Scribus/doc/de/scripterapi-manobj.html
    trunk/Scribus/doc/en/scripterapi-manobj.html
    trunk/Scribus/doc/fr/scripterapi-manobj.html
    trunk/Scribus/doc/it/scripterapi-manobj.html
    trunk/Scribus/doc/ru/scripterapi-manobj.html
    trunk/Scribus/scribus/plugins/scriptplugin/cmdobj.cpp
    trunk/Scribus/scribus/plugins/scriptplugin/cmdobj.h
    trunk/Scribus/scribus/plugins/scriptplugin/scriptplugin.cpp

Modified: trunk/Scribus/doc/de/scripterapi-manobj.html
URL: 
http://scribus.net/websvn/diff.php?repname=Scribus&rev=23686&path=/trunk/Scribus/doc/de/scripterapi-manobj.html
==============================================================================
--- trunk/Scribus/doc/de/scripterapi-manobj.html        (original)
+++ trunk/Scribus/doc/de/scripterapi-manobj.html        Mon May  4 01:19:59 2020
@@ -21,11 +21,15 @@
 <dd><code>duplicateObject(["name"]) -&gt; string</code>
 <p>Creates a Duplicate of the selected Object (or Selection Group).</p></dd>
 
+<dt><a 
name="-getParagraphStyle"><strong>getParagraphStyle</strong></a>(...)</dt>
+<dd><code>getParagraphStyle(["name"])</code>
+<p>Return name of style applied to object named "name". If "name" is not 
given, the currently selected object is used.<p>
+<p>If current object has a text selection, the name of style applied to start 
of selection is returned. Otherwise the name of the item default style is 
returned.</p>
+<p>May raise WrongFrameTypeError.</p></dd>
+
 <dt><a name="-getStyle"><strong>getStyle</strong></a>(...)</dt>
 <dd><code>getStyle(["name"])</code>
-<p>Return name of style applied to object named \"name\". If \"name\" is not 
given, the currently selected object is used.<p>
-<p>If current object has a text selection, the name of style applied to start 
of selection is returned. Otherwise the name of the item default style is 
returned.</p>
-<p>May raise WrongFrameTypeError.</p></dd>
+<p>Deprecated. Use getParagraphStyle() instead.</p></dd>
 
 <dt><a name="-groupObjects"><strong>groupObjects</strong></a>(...)</dt>
 <dd><code>groupObjects(list)</code>
@@ -69,6 +73,10 @@
 <dd><code>setCharacterStyle("style" [, "name"])</code>
 <p>Apply the named character "style" to the object named "name". If object 
name is given, style is applied to the current text selection in object "name". 
If no object name is given, style is applied on selected object.</p></dd>
 
+<dt><a 
name="-setParagraphStyle"><strong>setParagraphStyle</strong></a>(...)</dt>
+<dd><code>setParagraphStyle("style" [, "name"])</code>
+<p>Apply the named paragraph "style" to the object named "name". If object 
name is given, style is applied to the current text selection in object "name". 
If no object name is given, style is applied on selected object.</p></dd>
+
 <dt><a 
name="-setScaleFrameToImage"><strong>setScaleFrameToImage</strong></a>(...)</dt>
 <dd><code>setScaleFrameToImage([name])</code>
 <p>Set frame size on the selected or specified image frame to image size.</p>
@@ -81,7 +89,7 @@
 
 <dt><a name="-setStyle"><strong>setStyle</strong></a>(...)</dt>
 <dd><code>setStyle("style" [, "name"])</code>
-<p>Apply the named "style" to the object named "name". If object name is 
given, style is applied to the current text selection in object "name". If no 
object name is given, style is applied on selected object.</p></dd>
+<p>Deprecated. Use setParagraphStyle() instead.</p></dd>
 
 <dt><a name="-sizeObject"><strong>sizeObject</strong></a>(...)</dt>
 <dd><code>sizeObject(width, height [, "name"])</code>

Modified: trunk/Scribus/doc/en/scripterapi-manobj.html
URL: 
http://scribus.net/websvn/diff.php?repname=Scribus&rev=23686&path=/trunk/Scribus/doc/en/scripterapi-manobj.html
==============================================================================
--- trunk/Scribus/doc/en/scripterapi-manobj.html        (original)
+++ trunk/Scribus/doc/en/scripterapi-manobj.html        Mon May  4 01:19:59 2020
@@ -21,11 +21,15 @@
 <dd><code>duplicateObject(["name"]) -&gt; string</code>
 <p>Creates a Duplicate of the selected Object (or Selection Group).</p></dd>
 
+<dt><a 
name="-getParagraphStyle"><strong>getParagraphStyle</strong></a>(...)</dt>
+<dd><code>getParagraphStyle(["name"])</code>
+<p>Return name of style applied to object named "name". If "name" is not 
given, the currently selected object is used.<p>
+<p>If current object has a text selection, the name of style applied to start 
of selection is returned. Otherwise the name of the item default style is 
returned.</p>
+<p>May raise WrongFrameTypeError.</p></dd>
+
 <dt><a name="-getStyle"><strong>getStyle</strong></a>(...)</dt>
 <dd><code>getStyle(["name"])</code>
-<p>Return name of style applied to object named \"name\". If \"name\" is not 
given, the currently selected object is used.<p>
-<p>If current object has a text selection, the name of style applied to start 
of selection is returned. Otherwise the name of the item default style is 
returned.</p>
-<p>May raise WrongFrameTypeError.</p></dd>
+<p>Deprecated. Use getParagraphStyle() instead.</p></dd>
 
 <dt><a name="-groupObjects"><strong>groupObjects</strong></a>(...)</dt>
 <dd><code>groupObjects(list)</code>
@@ -69,6 +73,10 @@
 <dd><code>setCharacterStyle("style" [, "name"])</code>
 <p>Apply the named character "style" to the object named "name". If object 
name is given, style is applied to the current text selection in object "name". 
If no object name is given, style is applied on selected object.</p></dd>
 
+<dt><a 
name="-setParagraphStyle"><strong>setParagraphStyle</strong></a>(...)</dt>
+<dd><code>setParagraphStyle("style" [, "name"])</code>
+<p>Apply the named paragraph "style" to the object named "name". If object 
name is given, style is applied to the current text selection in object "name". 
If no object name is given, style is applied on selected object.</p></dd>
+
 <dt><a 
name="-setScaleFrameToImage"><strong>setScaleFrameToImage</strong></a>(...)</dt>
 <dd><code>setScaleFrameToImage([name])</code>
 <p>Set frame size on the selected or specified image frame to image size.</p>
@@ -81,7 +89,7 @@
 
 <dt><a name="-setStyle"><strong>setStyle</strong></a>(...)</dt>
 <dd><code>setStyle("style" [, "name"])</code>
-<p>Apply the named "style" to the object named "name". If object name is 
given, style is applied to the current text selection in object "name". If no 
object name is given, style is applied on selected object.</p></dd>
+<p>Deprecated. Use setParagraphStyle() instead.</p></dd>
 
 <dt><a name="-sizeObject"><strong>sizeObject</strong></a>(...)</dt>
 <dd><code>sizeObject(width, height [, "name"])</code>

Modified: trunk/Scribus/doc/fr/scripterapi-manobj.html
URL: 
http://scribus.net/websvn/diff.php?repname=Scribus&rev=23686&path=/trunk/Scribus/doc/fr/scripterapi-manobj.html
==============================================================================
--- trunk/Scribus/doc/fr/scripterapi-manobj.html        (original)
+++ trunk/Scribus/doc/fr/scripterapi-manobj.html        Mon May  4 01:19:59 2020
@@ -21,11 +21,15 @@
 <dd><code>duplicateObject(["nom"]) -&gt; chaîne</code>
 <p>Crée une copie du ou des objects sélectionnés dans le document 
courant.</p></dd>
 
-<dt><a name="-getStyle"><strong>getStyle</strong></a>(...)</dt>
-<dd><code>getStyle(["nom"])  -&gt; chaîne</code>
+<dt><a 
name="-getParagraphStyle"><strong>getParagraphStyle</strong></a>(...)</dt>
+<dd><code>getParagraphStyle(["nom"])  -&gt; chaîne</code>
 <p>Retourne le nom du style appliqué à l'objet "nom". Si aucun nom d'objet 
n'est fourni, l'élément sélectionné est utilisé.</p> 
 <p>Si l'objet courant poss&egrave;de une sélection de texte, le nom retourné 
est celui du style appliqué au début de la sélection. Sinon le nom retourné 
est celui du style appliqué par défaut.</p>
 <p>Peut générer l'exception WrongFrameTypeError.</p></dd>
+
+<dt><a name="-getStyle"><strong>getStyle</strong></a>(...)</dt>
+<dd><code>getStyle(["nom"])  -&gt; chaîne</code>
+<p>Obsolète. Veuillez utiliser getParagraphStyle() en lieu et place.</p></dd>
 
 <dt><a name="-groupObjects"><strong>groupObjects</strong></a>(...)</dt>
 <dd><code>groupObjects(liste)  -&gt; chaîne</code>
@@ -73,6 +77,10 @@
 <dd><code>setCharacterStyle("style" [, "nom"])</code>
 <p>Applique le "style" de caract&egrave;re désigné à l'objet "nom". Si un 
nom d'objet est fourni, le style est appliqué à la sélection de texte 
courante de l'objet donné. Si aucun objet n'est fourni, le style est appliqué 
à l'objet sélectionné.</p></dd>
 
+<dt><a 
name="-setParagraphStyle"><strong>setParagraphStyle</strong></a>(...)</dt>
+<dd><code>setParagraphStyle("style" [, "nom"])</code>
+<p>Applique le "style" de paragraphe désigné à l'objet "nom". Si un nom 
d'objet est fourni, le style est appliqué à la sélection de texte courante 
de l'objet donné. Si aucun objet n'est fourni, le style est appliqué à 
l'objet sélectionné.</p></dd>
+
 <dt><a 
name="-setScaleFrameToImage"><strong>setScaleFrameToImage</strong></a>(...)</dt>
 <dd><code>setScaleFrameToImage([nom])</code>
 <p>Redimensionne l'objet "nom" aux dimensions de l'image. Si "nom" n'est pas 
fourni, l'élément sélectionné est utilisé</p>
@@ -86,7 +94,7 @@
 
 <dt><a name="-setStyle"><strong>setStyle</strong></a>(...)</dt>
 <dd><code>setStyle("style" [, "nom"])</code>
-<p>Applique le "style" désigné à l'objet "nom". Si un nom d'objet est 
fourni, le style est appliqué à la sélection de texte courante de l'objet 
donné. Si aucun objet n'est fourni, le style est appliqué à l'objet 
sélectionné.</p></dd>
+<p>Obsolète. Veuillez utiliser setParagraphStyle() en lieu et place.</p></dd>
 
 <dt><a name="-sizeObject"><strong>sizeObject</strong></a>(...)</dt>
 <dd><code>sizeObject(largeur, hauteur [, "nom"])</code>

Modified: trunk/Scribus/doc/it/scripterapi-manobj.html
URL: 
http://scribus.net/websvn/diff.php?repname=Scribus&rev=23686&path=/trunk/Scribus/doc/it/scripterapi-manobj.html
==============================================================================
--- trunk/Scribus/doc/it/scripterapi-manobj.html        (original)
+++ trunk/Scribus/doc/it/scripterapi-manobj.html        Mon May  4 01:19:59 2020
@@ -21,11 +21,15 @@
 <dd><code>duplicateObject(["name"]) -&gt; string</code>
 <p>Creates a Duplicate of the selected Object (or Selection Group).</p></dd>
 
+<dt><a 
name="-getParagraphStyle"><strong>getParagraphStyle</strong></a>(...)</dt>
+<dd><code>getParagraphStyle(["name"])</code>
+<p>Return name of style applied to object named "name". If "name" is not 
given, the currently selected object is used.<p>
+<p>If current object has a text selection, the name of style applied to start 
of selection is returned. Otherwise the name of the item default style is 
returned.</p>
+<p>May raise WrongFrameTypeError.</p></dd>
+
 <dt><a name="-getStyle"><strong>getStyle</strong></a>(...)</dt>
 <dd><code>getStyle(["name"])</code>
-<p>Return name of style applied to object named \"name\". If \"name\" is not 
given, the currently selected object is used.<p>
-<p>If current object has a text selection, the name of style applied to start 
of selection is returned. Otherwise the name of the item default style is 
returned.</p>
-<p>May raise WrongFrameTypeError.</p></dd>
+<p>Deprecated. Use getParagraphStyle() instead.</p></dd>
 
 <dt><a name="-groupObjects"><strong>groupObjects</strong></a>(...)</dt>
 <dd><code>groupObjects(list)</code>
@@ -69,6 +73,10 @@
 <dd><code>setCharacterStyle("style" [, "name"])</code>
 <p>Apply the named character "style" to the object named "name". If object 
name is given, style is applied to the current text selection in object "name". 
If no object name is given, style is applied on selected object.</p></dd>
 
+<dt><a 
name="-setParagraphStyle"><strong>setParagraphStyle</strong></a>(...)</dt>
+<dd><code>setParagraphStyle("style" [, "name"])</code>
+<p>Apply the named paragraph "style" to the object named "name". If object 
name is given, style is applied to the current text selection in object "name". 
If no object name is given, style is applied on selected object.</p></dd>
+
 <dt><a 
name="-setScaleFrameToImage"><strong>setScaleFrameToImage</strong></a>(...)</dt>
 <dd><code>setScaleFrameToImage([name])</code>
 <p>Set frame size on the selected or specified image frame to image size.</p>
@@ -81,7 +89,7 @@
 
 <dt><a name="-setStyle"><strong>setStyle</strong></a>(...)</dt>
 <dd><code>setStyle("style" [, "name"])</code>
-<p>Apply the named "style" to the object named "name". If object name is 
given, style is applied to the current text selection in object "name". If no 
object name is given, style is applied on selected object.</p></dd>
+<p>Deprecated. Use setParagraphStyle() instead.</p></dd>
 
 <dt><a name="-sizeObject"><strong>sizeObject</strong></a>(...)</dt>
 <dd><code>sizeObject(width, height [, "name"])</code>

Modified: trunk/Scribus/doc/ru/scripterapi-manobj.html
URL: 
http://scribus.net/websvn/diff.php?repname=Scribus&rev=23686&path=/trunk/Scribus/doc/ru/scripterapi-manobj.html
==============================================================================
--- trunk/Scribus/doc/ru/scripterapi-manobj.html        (original)
+++ trunk/Scribus/doc/ru/scripterapi-manobj.html        Mon May  4 01:19:59 2020
@@ -21,11 +21,15 @@
 <dd><code>duplicateObject(["name"]) -&gt; string</code>
 <p>Creates a Duplicate of the selected Object (or Selection Group).</p></dd>
 
+<dt><a 
name="-getParagraphStyle"><strong>getParagraphStyle</strong></a>(...)</dt>
+<dd><code>getParagraphStyle(["name"])</code>
+<p>Return name of style applied to object named "name". If "name" is not 
given, the currently selected object is used.<p>
+<p>If current object has a text selection, the name of style applied to start 
of selection is returned. Otherwise the name of the item default style is 
returned.</p>
+<p>May raise WrongFrameTypeError.</p></dd>
+
 <dt><a name="-getStyle"><strong>getStyle</strong></a>(...)</dt>
 <dd><code>getStyle(["name"])</code>
-<p>Return name of style applied to object named \"name\". If \"name\" is not 
given, the currently selected object is used.<p>
-<p>If current object has a text selection, the name of style applied to start 
of selection is returned. Otherwise the name of the item default style is 
returned.</p>
-<p>May raise WrongFrameTypeError.</p></dd>
+<p>Deprecated. Use getParagraphStyle() instead.</p></dd>
 
 <dt><a name="-groupObjects"><strong>groupObjects</strong></a>(...)</dt>
 <dd><code>groupObjects(list)</code>
@@ -69,6 +73,10 @@
 <dd><code>setCharacterStyle("style" [, "name"])</code>
 <p>Apply the named character "style" to the object named "name". If object 
name is given, style is applied to the current text selection in object "name". 
If no object name is given, style is applied on selected object.</p></dd>
 
+<dt><a 
name="-setParagraphStyle"><strong>setParagraphStyle</strong></a>(...)</dt>
+<dd><code>setParagraphStyle("style" [, "name"])</code>
+<p>Apply the named paragraph "style" to the object named "name". If object 
name is given, style is applied to the current text selection in object "name". 
If no object name is given, style is applied on selected object.</p></dd>
+
 <dt><a 
name="-setScaleFrameToImage"><strong>setScaleFrameToImage</strong></a>(...)</dt>
 <dd><code>setScaleFrameToImage([name])</code>
 <p>Set frame size on the selected or specified image frame to image size.</p>
@@ -81,7 +89,7 @@
 
 <dt><a name="-setStyle"><strong>setStyle</strong></a>(...)</dt>
 <dd><code>setStyle("style" [, "name"])</code>
-<p>Apply the named "style" to the object named "name". If object name is 
given, style is applied to the current text selection in object "name". If no 
object name is given, style is applied on selected object.</p></dd>
+<p>Deprecated. Use setParagraphStyle() instead.</p></dd>
 
 <dt><a name="-sizeObject"><strong>sizeObject</strong></a>(...)</dt>
 <dd><code>sizeObject(width, height [, "name"])</code>

Modified: trunk/Scribus/scribus/plugins/scriptplugin/cmdobj.cpp
URL: 
http://scribus.net/websvn/diff.php?repname=Scribus&rev=23686&path=/trunk/Scribus/scribus/plugins/scriptplugin/cmdobj.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdobj.cpp       (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdobj.cpp       Mon May  4 
01:19:59 2020
@@ -584,7 +584,7 @@
  * Vaclav Smilauer, 2017-21-21
  * Return style name of the object (or currently selected object)
  */
-PyObject *scribus_getstyle(PyObject* /* self */, PyObject* args)
+PyObject *scribus_getparagraphstyle(PyObject* /* self */, PyObject* args)
 {
        char *name = const_cast<char*>("");
        if (!PyArg_ParseTuple(args, "|es", "utf-8", &name))
@@ -624,7 +624,7 @@
  * Apply the named style to the currently selected object.
  * pv, 2004-09-13, optionaly param objectName + "check the page" stuff
  */
-PyObject *scribus_setstyle(PyObject* /* self */, PyObject* args)
+PyObject *scribus_setparagraphstyle(PyObject* /* self */, PyObject* args)
 {
        char *style = const_cast<char*>("");
        char *name = const_cast<char*>("");
@@ -901,6 +901,7 @@
          << scribus_deleteobj__doc__
          << scribus_duplicateobject__doc__
          << scribus_getcharstylenames__doc__
+         << scribus_getparagraphstyle__doc__
          << scribus_getstyle__doc__
          << scribus_getstylenames__doc__
          << scribus_newellipse__doc__
@@ -915,6 +916,7 @@
          << scribus_polygon__doc__
          << scribus_polyline__doc__
          << scribus_setcharstyle__doc__
+         << scribus_setparagraphstyle__doc__
          << scribus_setstyle__doc__
          << scribus_textflow__doc__;
 }

Modified: trunk/Scribus/scribus/plugins/scriptplugin/cmdobj.h
URL: 
http://scribus.net/websvn/diff.php?repname=Scribus&rev=23686&path=/trunk/Scribus/scribus/plugins/scriptplugin/cmdobj.h
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdobj.h (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdobj.h Mon May  4 01:19:59 2020
@@ -237,35 +237,47 @@
 
 
 /*! docstring */
-PyDoc_STRVAR(scribus_getstyle__doc__,
-QT_TR_NOOP("getStyle([\"name\"])\n\
+PyDoc_STRVAR(scribus_getparagraphstyle__doc__,
+QT_TR_NOOP("getParagraphStyle([\"name\"])\n\
 \n\
 Return name of style applied to object named \"name\". If \"name\" is not 
given,\n\
 the currently selected object is used. If current object has a text selection, 
\n\
 the name of style applied to start of selection is returned. Otherwise the 
name \n\
 of the item default style is returned.\n\
 "));
+
+PyDoc_STRVAR(scribus_getstyle__doc__,
+QT_TR_NOOP("getStyle([\"name\"])\n\
+\n\
+Deprecated. Use getParagraphStyle() instead.\n\
+"));
 /**
  Vaclav Smilauer, 2017-12-21
  Return style name of the object (or currently selected object)
  */
-PyObject *scribus_getstyle(PyObject * /*self*/, PyObject* args);
-
-
-/*! docstring */
+PyObject *scribus_getparagraphstyle(PyObject * /*self*/, PyObject* args);
+
+
+/*! docstring */
+PyDoc_STRVAR(scribus_setparagraphstyle__doc__,
+QT_TR_NOOP("setParagraphStyle(\"style\" [, \"name\"])\n\
+\n\
+Apply the named paragraph \"style\" to the object named \"name\". If object 
name is\n\
+given, style is applied to the current text selection in object \"name\".\n\
+If no object name is given, style is applied on selected object.\n\
+"));
+
 PyDoc_STRVAR(scribus_setstyle__doc__,
 QT_TR_NOOP("setStyle(\"style\" [, \"name\"])\n\
 \n\
-Apply the named \"style\" to the object named \"name\". If object name is\n\
-given, style is applied to the current text selection in object \"name\".\n\
-If no object name is given, style is applied on selected object.\n\
+Deprecated. Use setParagraphStyle() instead.\n\
 "));
 /**
  Craig Ringer, 2004-09-09
  Apply the named style to the currently selected object.
  pv, 2004-09-13, optionaly param objectName + "check the page" stuff
  */
-PyObject *scribus_setstyle(PyObject * /*self*/, PyObject* args);
+PyObject *scribus_setparagraphstyle(PyObject * /*self*/, PyObject* args);
 
 
 /*! docstring */

Modified: trunk/Scribus/scribus/plugins/scriptplugin/scriptplugin.cpp
URL: 
http://scribus.net/websvn/diff.php?repname=Scribus&rev=23686&path=/trunk/Scribus/scribus/plugins/scriptplugin/scriptplugin.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/scriptplugin.cpp (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/scriptplugin.cpp Mon May  4 
01:19:59 2020
@@ -334,12 +334,11 @@
        {const_cast<char*>("getAllObjects"), (PyCFunction)scribus_getallobj, 
METH_VARARGS|METH_KEYWORDS, tr(scribus_getallobj__doc__)},
        {const_cast<char*>("getAllStyles"), (PyCFunction)scribus_getstylenames, 
METH_NOARGS, tr(scribus_getstylenames__doc__)}, //Deprecated
        {const_cast<char*>("getAllText"), scribus_getalltext, METH_VARARGS, 
tr(scribus_getalltext__doc__)},
-       {const_cast<char*>("getCharStyles"), 
(PyCFunction)scribus_getcharstylenames, METH_NOARGS, 
tr(scribus_getcharstylenames__doc__)},
-       {const_cast<char*>("getParagraphStyles"), 
(PyCFunction)scribus_getstylenames, METH_NOARGS, 
tr(scribus_getstylenames__doc__)},
        {const_cast<char*>("getCellStyle"), scribus_getcellstyle, METH_VARARGS, 
tr(scribus_getcellstyle__doc__)},
        {const_cast<char*>("getCellColumnSpan"), scribus_getcellcolumnspan, 
METH_VARARGS, tr(scribus_getcellcolumnspan__doc__)},
        {const_cast<char*>("getCellRowSpan"), scribus_getcellrowspan, 
METH_VARARGS, tr(scribus_getcellrowspan__doc__)},
        {const_cast<char*>("getCellFillColor"), scribus_getcellfillcolor, 
METH_VARARGS, tr(scribus_getcellfillcolor__doc__)},
+       {const_cast<char*>("getCharStyles"), 
(PyCFunction)scribus_getcharstylenames, METH_NOARGS, 
tr(scribus_getcharstylenames__doc__)},
        {const_cast<char*>("getColorNames"), (PyCFunction)scribus_colornames, 
METH_NOARGS, tr(scribus_colornames__doc__)},
        {const_cast<char*>("getColor"), scribus_getcolor, METH_VARARGS, 
tr(scribus_getcolor__doc__)},
        {const_cast<char*>("getColorFloat"), scribus_getcolorfloat, 
METH_VARARGS, tr(scribus_getcolorfloat__doc__)},
@@ -385,13 +384,15 @@
        {const_cast<char*>("getPageSize"), (PyCFunction)scribus_pagedimension, 
METH_NOARGS, tr(scribus_pagedimension__doc__)},
        {const_cast<char*>("getPageNSize"), scribus_getpagensize, METH_VARARGS, 
tr(scribus_getpagensize__doc__)},
        {const_cast<char*>("getPageNMargins"), scribus_getpagenmargins, 
METH_VARARGS, tr(scribus_getpagenmargins__doc__)},
+       {const_cast<char*>("getParagraphStyle"), scribus_getparagraphstyle, 
METH_VARARGS, tr(scribus_getparagraphstyle__doc__) },
+       {const_cast<char*>("getParagraphStyles"), 
(PyCFunction)scribus_getstylenames, METH_NOARGS, 
tr(scribus_getstylenames__doc__)},
        {const_cast<char*>("getPosition"), scribus_getposition, METH_VARARGS, 
tr(scribus_getposition__doc__)},
        {const_cast<char*>("getRotation"), scribus_getrotation, METH_VARARGS, 
tr(scribus_getrotation__doc__)},
        {const_cast<char*>("getObjectType"), scribus_getobjecttype, 
METH_VARARGS, tr(scribus_getobjecttype__doc__)},
        {const_cast<char*>("getObjectAttributes"), scribus_getobjectattributes, 
METH_VARARGS, tr(scribus_getobjectattributes__doc__)},
        {const_cast<char*>("getSelectedObject"), scribus_getselobjnam, 
METH_VARARGS, tr(scribus_getselobjnam__doc__)},
        {const_cast<char*>("getSize"), scribus_getsize, METH_VARARGS, 
tr(scribus_getsize__doc__)},
-       {const_cast<char*>("getStyle"), scribus_getstyle, METH_VARARGS, 
tr(scribus_getstyle__doc__) },
+       {const_cast<char*>("getStyle"), scribus_getparagraphstyle, 
METH_VARARGS, tr(scribus_getstyle__doc__) }, // Deprecated
        {const_cast<char*>("getTableRows"), scribus_gettablerows, METH_VARARGS, 
tr(scribus_gettablerows__doc__)},
        {const_cast<char*>("getTableRowHeight"), scribus_gettablerowheight, 
METH_VARARGS, tr(scribus_gettablerowheight__doc__)},
        {const_cast<char*>("getTableColumns"), scribus_gettablecolumns, 
METH_VARARGS, tr(scribus_gettablecolumns__doc__)},
@@ -540,8 +541,9 @@
        {const_cast<char*>("scrollDocument"), scribus_scrolldocument, 
METH_VARARGS, tr(scribus_scrolldocument__doc__) },
        {const_cast<char*>("setScaleFrameToImage"), 
(PyCFunction)scribus_setscaleframetoimage, METH_VARARGS, 
tr(scribus_setscaleframetoimage__doc__)},
        {const_cast<char*>("setScaleImageToFrame"), 
(PyCFunction)scribus_setscaleimagetoframe, METH_VARARGS|METH_KEYWORDS, 
tr(scribus_setscaleimagetoframe__doc__)},
-       {const_cast<char*>("setStyle"), scribus_setstyle, METH_VARARGS, 
tr(scribus_setstyle__doc__)},
+       {const_cast<char*>("setStyle"), scribus_setparagraphstyle, 
METH_VARARGS, tr(scribus_setstyle__doc__)}, // Deprecated
        {const_cast<char*>("setCharacterStyle"), scribus_setcharstyle, 
METH_VARARGS, tr(scribus_setcharstyle__doc__) },
+       {const_cast<char*>("setParagraphStyle"), scribus_setparagraphstyle, 
METH_VARARGS, tr(scribus_setparagraphstyle__doc__)},
        {const_cast<char*>("setSpotColor"), scribus_setspotcolor, METH_VARARGS, 
tr(scribus_setspotcolor__doc__)},
        {const_cast<char*>("setTableStyle"), scribus_settablestyle, 
METH_VARARGS, tr(scribus_settablestyle__doc__)},
        {const_cast<char*>("setTableLeftBorder"), scribus_settableleftborder, 
METH_VARARGS, tr(scribus_settableleftborder__doc__)},


_______________________________________________
scribus-commit mailing list
[email protected]
http://lists.scribus.net/mailman/listinfo/scribus-commit

Reply via email to