r22257 by gpittman -

scribus-commit scribus-commit at lists.scribus.net
Sun Dec 17 00:15:58 UTC 2017


Author: gpittman
Date: Sun Dec 17 00:15:58 2017
New Revision: 22257

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22257
Log:
added a separate manual page for master pages, plus additional notes on createParagraphStyle()

Added:
    trunk/Scribus/doc/en/scripterapi-masterpages.html
Modified:
    trunk/Scribus/doc/en/menu.xml
    trunk/Scribus/doc/en/scripterapi-object.html

Modified: trunk/Scribus/doc/en/menu.xml
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22257&path=/trunk/Scribus/doc/en/menu.xml
==============================================================================
--- trunk/Scribus/doc/en/menu.xml	(original)
+++ trunk/Scribus/doc/en/menu.xml	Sun Dec 17 00:15:58 2017
@@ -120,6 +120,7 @@
 		<submenuitem text="Scripter API" file="scripterapi.html">
 			<submenuitem text="Document Commands" file="scripterapi-doc.html"/>
 			<submenuitem text="Page Commands" file="scripterapi-page.html"/>
+			<submenuitem text="Commands for Master Pages" file="scripterapi-masterpages.html"/>
 			<submenuitem text="Creating & Destroying Objects" file="scripterapi-object.html"/>
 			<submenuitem text="Selecting Objects" file="scripterapi-select.html"/>
 			<submenuitem text="Setting Object Properties" file="scripterapi-setobjprop.html"/>

Modified: trunk/Scribus/doc/en/scripterapi-object.html
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22257&path=/trunk/Scribus/doc/en/scripterapi-object.html
==============================================================================
--- trunk/Scribus/doc/en/scripterapi-object.html	(original)
+++ trunk/Scribus/doc/en/scripterapi-object.html	Sun Dec 17 00:15:58 2017
@@ -114,6 +114,10 @@
 <li>"charstyle" [optional] -> char style to use</li>
 </ul>
 </p>
+<p>If you wish to skip a number of settings, unfortunately, this command will not accept null values, i.e., a series of commas. You <i>must</i> put some integer value for each of the potential parameters. For example, imagine you wish to only specify a name for the Paragraph Style, and the Character Style. Your command should be something like:</p>
+<p><strong>scribus.createParagraphStyle("MyNewStyle",0,0,0,0,0,0,0,0,0,"MyCharStyle")</strong></p>
+<p>On the other hand, if you only wanted to specify a name and linespacing mode, you can quit whenever after you finished with non-zero data:</p>
+<p><strong>scribus.createParagraphStyle("MyOtherNewStyle",1)</strong></p>
 </dd>
 
 <dt><a name="-createPathText"><strong>createPathText</strong></a>(...)</dt>




More information about the scribus-commit mailing list