Using createParagraphStyle: Difference between revisions

From Scribus Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{Scripting Index}}
{{Scripting Index}}
This is something of a companion to [[Using createCharStyle]].
This is something of a companion to [[Using createCharStyle]].
Although in Scribus there is an implicit character style whenever you create a paragraph style, in Scripter these are two distinct commands, but we'll see how the two can be linked.
Here is the overall picture of syntax:
<tt>scribus.createParagraphStyle("name", linespacingmode, linespacing, alignment, leftmargin, rightmargin, gapbefore, gapafter, firstindent, hasdropcap, dropcaplines, dropcapoffset, "charstyle")</tt>
As in the companion piece, quotes around a parameter indicate it is a string surrounded by quotes, and the absence of quotes indicates a numerical value.
===Commands===

Revision as of 23:55, 3 September 2011

This article is part of the Scripts series.

This is something of a companion to Using createCharStyle.

Although in Scribus there is an implicit character style whenever you create a paragraph style, in Scripter these are two distinct commands, but we'll see how the two can be linked.

Here is the overall picture of syntax:

scribus.createParagraphStyle("name", linespacingmode, linespacing, alignment, leftmargin, rightmargin, gapbefore, gapafter, firstindent, hasdropcap, dropcaplines, dropcapoffset, "charstyle")

As in the companion piece, quotes around a parameter indicate it is a string surrounded by quotes, and the absence of quotes indicates a numerical value.

Commands