How to get the paragraph style

Previous topic - Next topic

agricola

Hi everybody,

I want to get (or read out) the paragraph style that is currently applied to a text frame or to a certain portion of the text within a text frame by means of scripting.
Let's say, I'm searching for a scribus-function like "getStyle(selectedFrame)" or something like that, knowing, that there is a function "setStyle(styleName, selectedFrame)",
doing just the opposite.

Many thanks for your ideas and help!

michaelu

getStyle is implemented in the newer Scribus versions. It must have been added between 1.5.2 and 1.5.6. It returns the paragraph, not the character style, or None, if no style is set, for the current selection.   Usage: style=scribus.getStyle(["name"])