r23430 by jghali - #16003: Scripter: rename traceText() to outlineText()

scribus-commit scribus-commit at lists.scribus.net
Sat Dec 28 21:35:41 UTC 2019


Author: jghali
Date: Sat Dec 28 21:35:41 2019
New Revision: 23430

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23430
Log:
#16003: Scripter: rename traceText() to outlineText()

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

Modified: trunk/Scribus/doc/de/scripterapi-setobjprop.html
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23430&path=/trunk/Scribus/doc/de/scripterapi-setobjprop.html
==============================================================================
--- trunk/Scribus/doc/de/scripterapi-setobjprop.html	(original)
+++ trunk/Scribus/doc/de/scripterapi-setobjprop.html	Sat Dec 28 21:35:41 2019
@@ -12,6 +12,10 @@
 <dd><code>loadImage("filename" [, "name"])</code>
 <p>Loads the picture "picture" into the image frame "name". If "name" is not given the currently selected item is used.</p>
 <p>May raise <a href="scripterapi.html#WrongFrameTypeError">WrongFrameTypeError</a> if the target frame is not an image frame</p></dd></dt>
+
+<dt><a name="-outlineText"><strong>outlineText</strong></a>(...)</dt>
+<dd><code>outlineText(["name"])</code>
+<p>Convert the text frame "name" to outlines. If "name" is not given the currently selected item is used.</p></dd>
 
 <dt><a name="-scaleImage"><strong>scaleImage</strong></a>(...)</dt>
 <dd><code>scaleImage(x, y [, "name"])</code>
@@ -116,7 +120,7 @@
 
 <dt><a name="-traceText"><strong>traceText</strong></a>(...)</dt>
 <dd><code>traceText(["name"])</code>
-<p>Convert the text frame "name" to outlines. If "name" is not given the currently selected item is used.</p></dd>
+<p>Deprecated, use outlineText() instead.</p></dd>
 
 </dl>
 </body>

Modified: trunk/Scribus/doc/en/scripterapi-setobjprop.html
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23430&path=/trunk/Scribus/doc/en/scripterapi-setobjprop.html
==============================================================================
--- trunk/Scribus/doc/en/scripterapi-setobjprop.html	(original)
+++ trunk/Scribus/doc/en/scripterapi-setobjprop.html	Sat Dec 28 21:35:41 2019
@@ -12,6 +12,10 @@
 <dd><code>loadImage("filename" [, "name"])</code>
 <p>Loads the picture "picture" into the image frame "name". If "name" is not given the currently selected item is used.</p>
 <p>May raise <a href="scripterapi.html#WrongFrameTypeError">WrongFrameTypeError</a> if the target frame is not an image frame</p></dd></dt>
+
+<dt><a name="-outlineText"><strong>outlineText</strong></a>(...)</dt>
+<dd><code>outlineText(["name"])</code>
+<p>Convert the text frame "name" to outlines. If "name" is not given the currently selected item is used.</p></dd>
 
 <dt><a name="-scaleImage"><strong>scaleImage</strong></a>(...)</dt>
 <dd><code>scaleImage(x, y [, "name"])</code>
@@ -116,7 +120,7 @@
 
 <dt><a name="-traceText"><strong>traceText</strong></a>(...)</dt>
 <dd><code>traceText(["name"])</code>
-<p>Convert the text frame "name" to outlines. If "name" is not given the currently selected item is used.</p></dd>
+<p>Deprecated, use outlineText() instead.</p></dd>
 
 </dl>
 </body>

Modified: trunk/Scribus/doc/fr/scripterapi-setobjprop.html
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23430&path=/trunk/Scribus/doc/fr/scripterapi-setobjprop.html
==============================================================================
--- trunk/Scribus/doc/fr/scripterapi-setobjprop.html	(original)
+++ trunk/Scribus/doc/fr/scripterapi-setobjprop.html	Sat Dec 28 21:35:41 2019
@@ -12,6 +12,10 @@
 <dd><code>loadImage("nomFichier" [, "nom"])</code>
 <p>Charge l'image "nomFichier" dans le cadre d'image "nom". Si le "nom" n'est pas fourni, l'élément sélectionné est utilisé. </p>
 <p>Peut générer <a href="scripterapi.html#WrongFrameTypeError">WrongFrameTypeError</a> si le cadre cible n'est pas un cadre d'image</p></dd></dt>
+
+<dt><a name="-outlineText"><strong>outlineText</strong></a>(...)</dt>
+<dd><code>outlineText(["nom"])</code>
+<p>Convertit le cadre de texte "nom" en contours. Si le "nom" n'est pas fourni, l'élément sélectionné est utilisé. </p></dd>
 
 <dt><a name="-scaleImage"><strong>scaleImage</strong></a>(...)</dt>
 <dd><code>scaleImage(x, y [, "nom"])</code>
@@ -119,7 +123,7 @@
 
 <dt><a name="-traceText"><strong>traceText</strong></a>(...)</dt>
 <dd><code>traceText(["nom"])</code>
-<p>Convertit le cadre de texte "nom" en contours. Si le "nom" n'est pas fourni, l'élément sélectionné est utilisé. </p></dd>
+<p>Obsolète, veuillez utiliser outlineText() en lieu et place. </p></dd>
 
 </dl>
 </body>

Modified: trunk/Scribus/doc/it/scripterapi-setobjprop.html
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23430&path=/trunk/Scribus/doc/it/scripterapi-setobjprop.html
==============================================================================
--- trunk/Scribus/doc/it/scripterapi-setobjprop.html	(original)
+++ trunk/Scribus/doc/it/scripterapi-setobjprop.html	Sat Dec 28 21:35:41 2019
@@ -12,6 +12,10 @@
 <dd><code>loadImage("filename" [, "name"])</code>
 <p>Loads the picture "picture" into the image frame "name". If "name" is not given the currently selected item is used.</p>
 <p>May raise <a href="scripterapi.html#WrongFrameTypeError">WrongFrameTypeError</a> if the target frame is not an image frame</p></dd></dt>
+
+<dt><a name="-outlineText"><strong>outlineText</strong></a>(...)</dt>
+<dd><code>outlineText(["name"])</code>
+<p>Convert the text frame "name" to outlines. If "name" is not given the currently selected item is used.</p></dd>
 
 <dt><a name="-scaleImage"><strong>scaleImage</strong></a>(...)</dt>
 <dd><code>scaleImage(x, y [, "name"])</code>
@@ -116,7 +120,7 @@
 
 <dt><a name="-traceText"><strong>traceText</strong></a>(...)</dt>
 <dd><code>traceText(["name"])</code>
-<p>Convert the text frame "name" to outlines. If "name" is not given the currently selected item is used.</p></dd>
+<p>Deprecated, use outlineText() instead.</p></dd>
 
 </dl>
 </body>

Modified: trunk/Scribus/doc/ru/scripterapi-setobjprop.html
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23430&path=/trunk/Scribus/doc/ru/scripterapi-setobjprop.html
==============================================================================
--- trunk/Scribus/doc/ru/scripterapi-setobjprop.html	(original)
+++ trunk/Scribus/doc/ru/scripterapi-setobjprop.html	Sat Dec 28 21:35:41 2019
@@ -12,6 +12,10 @@
 <dd><code>loadImage("filename" [, "name"])</code>
 <p>Loads the picture "picture" into the image frame "name". If "name" is not given the currently selected item is used.</p>
 <p>May raise <a href="scripterapi.html#WrongFrameTypeError">WrongFrameTypeError</a> if the target frame is not an image frame</p></dd></dt>
+
+<dt><a name="-outlineText"><strong>outlineText</strong></a>(...)</dt>
+<dd><code>outlineText(["name"])</code>
+<p>Convert the text frame "name" to outlines. If "name" is not given the currently selected item is used.</p></dd>
 
 <dt><a name="-scaleImage"><strong>scaleImage</strong></a>(...)</dt>
 <dd><code>scaleImage(x, y [, "name"])</code>
@@ -116,7 +120,7 @@
 
 <dt><a name="-traceText"><strong>traceText</strong></a>(...)</dt>
 <dd><code>traceText(["name"])</code>
-<p>Convert the text frame "name" to outlines. If "name" is not given the currently selected item is used.</p></dd>
+<p>Deprecated, use outlineText() instead.</p></dd>
 
 </dl>
 </body>

Modified: trunk/Scribus/scribus/plugins/scriptplugin/cmdtext.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23430&path=/trunk/Scribus/scribus/plugins/scriptplugin/cmdtext.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdtext.cpp	(original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdtext.cpp	Sat Dec 28 21:35:41 2019
@@ -1225,7 +1225,7 @@
  * 2004-09-07 (Craig Ringer)
  * 2004-09-14 pv frame type, optional frame name param
  */
-PyObject *scribus_tracetext(PyObject* /* self */, PyObject* args)
+PyObject *scribus_outlinetext(PyObject* /* self */, PyObject* args)
 {
 	char *name = const_cast<char*>("");
 	if (!PyArg_ParseTuple(args, "|es", "utf-8", &name))
@@ -1398,25 +1398,46 @@
 void cmdtextdocwarnings()
 {
 	QStringList s;
-	s << scribus_getfontsize__doc__    << scribus_getfont__doc__
-	  << scribus_gettextlines__doc__   << scribus_gettextsize__doc__
-	  << scribus_getframetext__doc__   << scribus_gettext__doc__
-	  << scribus_getlinespace__doc__   << scribus_getcolumngap__doc__
-	  << scribus_getcolumns__doc__     << scribus_setboxtext__doc__
+	s << scribus_dehyphenatetext__doc__
+	  << scribus_deletetext__doc__
+	  << scribus_getcolumngap__doc__
+	  << scribus_getcolumns__doc__
+	  << scribus_getfont__doc__
+	  << scribus_getfontfeatures__doc__
+	  << scribus_getfontsize__doc__
+	  << scribus_getframetext__doc__
+	  << scribus_getlinespace__doc__
+	  << scribus_gettext__doc__
+	  << scribus_gettextdistances__doc__  
+	  << scribus_gettextlines__doc__
+	  << scribus_gettextsize__doc__
 	  << scribus_gettextverticalalignment__doc__
-	  << scribus_inserttext__doc__     << scribus_inserthtmltext__doc__<< scribus_setfont__doc__
-	  << scribus_setfontsize__doc__    << scribus_setlinespace__doc__
-	  << scribus_setcolumngap__doc__   << scribus_setcolumns__doc__
+	  << scribus_hyphenatetext__doc__
+	  << scribus_inserthtmltext__doc__
+	  << scribus_inserttext__doc__
+	  << scribus_ispdfbookmark__doc__
+	  << scribus_istextoverflowing__doc__
+	  << scribus_linktextframes__doc__
+	  << scribus_outlinetext__doc__
+	  << scribus_selecttext__doc__
+	  << scribus_setalign__doc__
+	  << scribus_setboxtext__doc__
+	  << scribus_setcolumngap__doc__
+	  << scribus_setcolumns__doc__
+	  << scribus_setdirection__doc__
+	  << scribus_setfont__doc__
+	  << scribus_setfontfeatures__doc__
+	  << scribus_setfontsize__doc__
+	  << scribus_setlinespace__doc__
+	  << scribus_setlinespacemode__doc__
+	  << scribus_setpdfbookmark__doc__
+	  << scribus_settextdistances__doc__
+	  << scribus_settextfill__doc__
+	  << scribus_settextscalingh__doc__
+	  << scribus_settextscalingv__doc__
+	  << scribus_settextshade__doc__
+	  << scribus_settextstroke__doc__
 	  << scribus_settextverticalalignment__doc__
-	  << scribus_setalign__doc__       << scribus_selecttext__doc__
-	  << scribus_deletetext__doc__     << scribus_settextfill__doc__
-	  << scribus_settextstroke__doc__  << scribus_settextshade__doc__
-	  << scribus_linktextframes__doc__ << scribus_unlinktextframes__doc__
-	  << scribus_tracetext__doc__      << scribus_istextoverflowing__doc__
-	  << scribus_setpdfbookmark__doc__ << scribus_ispdfbookmark__doc__
-	  << scribus_hyphenatetext__doc__ << scribus_dehyphenatetext__doc__
-	  << scribus_gettextdistances__doc__ << scribus_settextdistances__doc__
-	  << scribus_settextscalingh__doc__ << scribus_settextscalingv__doc__
-	  << scribus_setlinespacemode__doc__ << scribus_setdirection__doc__
-	  << scribus_setfontfeatures__doc__ << scribus_getfontfeatures__doc__;
-}
+	  << scribus_tracetext__doc__
+	  << scribus_unlinktextframes__doc__;
+}

Modified: trunk/Scribus/scribus/plugins/scriptplugin/cmdtext.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23430&path=/trunk/Scribus/scribus/plugins/scriptplugin/cmdtext.h
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdtext.h	(original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdtext.h	Sat Dec 28 21:35:41 2019
@@ -481,16 +481,20 @@
 PyObject *scribus_unlinktextframes(PyObject * self, PyObject* args);
 
 /*! docstring */
+PyDoc_STRVAR(scribus_outlinetext__doc__,
+QT_TR_NOOP("traceText([\"name\"])\n\
+\n\
+Convert the text frame \"name\" to outlines. If \"name\" is not given the\n\
+currently selected item is used."));
 PyDoc_STRVAR(scribus_tracetext__doc__,
 QT_TR_NOOP("traceText([\"name\"])\n\
 \n\
-Convert the text frame \"name\" to outlines. If \"name\" is not given the\n\
-currently selected item is used."));
+Deprecated, use outlineText() instead."));
 /**
  Trace text frames via Scripter.
  2004-09-07 (Craig Ringer)
 */
-PyObject *scribus_tracetext(PyObject * self, PyObject* args);
+PyObject *scribus_outlinetext(PyObject * self, PyObject* args);
 
 PyDoc_STRVAR(scribus_istextoverflowing__doc__,
 QT_TR_NOOP("textOverflows([\"name\", nolinks]) -> integer\n\

Modified: trunk/Scribus/scribus/plugins/scriptplugin/scriptplugin.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23430&path=/trunk/Scribus/scribus/plugins/scriptplugin/scriptplugin.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/scriptplugin.cpp	(original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/scriptplugin.cpp	Sat Dec 28 21:35:41 2019
@@ -441,6 +441,7 @@
 	{const_cast<char*>("newStyleDialog"), scribus_newstyledialog, METH_NOARGS, tr(scribus_newstyledialog__doc__)},
 	{const_cast<char*>("objectExists"),scribus_objectexists, METH_VARARGS, tr(scribus_objectexists__doc__)},
 	{const_cast<char*>("openDoc"), scribus_opendoc, METH_VARARGS, tr(scribus_opendoc__doc__)},
+	{const_cast<char*>("outlineText"), scribus_outlinetext, METH_VARARGS, tr(scribus_outlinetext__doc__)},
 	{const_cast<char*>("pageCount"), (PyCFunction)scribus_pagecount, METH_NOARGS, tr(scribus_pagecount__doc__)},
 	{const_cast<char*>("pageDimension"), (PyCFunction)scribus_pagedimension, METH_NOARGS, "Obsolete function. Don't use it."},
 	{const_cast<char*>("placeEPS"), scribus_placevec, METH_VARARGS, tr(scribus_placeeps__doc__)},
@@ -562,7 +563,7 @@
 	{const_cast<char*>("statusMessage"), scribus_messagebartext, METH_VARARGS, tr(scribus_messagebartext__doc__)},
 	{const_cast<char*>("textFlowMode"), scribus_textflow, METH_VARARGS, tr(scribus_textflow__doc__)},
 	{const_cast<char*>("textOverflows"), (PyCFunction)scribus_istextoverflowing, METH_VARARGS|METH_KEYWORDS, tr(scribus_istextoverflowing__doc__) },
-	{const_cast<char*>("traceText"), scribus_tracetext, METH_VARARGS, tr(scribus_tracetext__doc__)},
+	{const_cast<char*>("traceText"), scribus_outlinetext, METH_VARARGS, tr(scribus_tracetext__doc__)},
 	{const_cast<char*>("unGroupObject"), scribus_ungroupobj, METH_VARARGS, tr(scribus_ungroupobj__doc__)},
 	{const_cast<char*>("unlinkTextFrames"), scribus_unlinktextframes, METH_VARARGS, tr(scribus_unlinktextframes__doc__)},
 	{const_cast<char*>("valueDialog"), scribus_valuedialog, METH_VARARGS, tr(scribus_valuedialog__doc__)},




More information about the scribus-commit mailing list