[scribus-dev] applying a style from a plugin
ale rimoldi
ale.comp_06 at xox.ch
Thu Feb 9 15:38:54 UTC 2017
hi
i'd like to get back and continue my work on the table of contents.
but i need to solve an issue, before i can continue:
this function is supposed to add a paragraph with a specific paragraph
style:
https://github.com/aoloe/scribus-plugin-API/blob/master/src/scribusAPIDocumentItemText.cpp#L476
and this one should apply the style to the current selection
https://github.com/aoloe/scribus-plugin-API/blob/master/src/scribusAPIDocumentItemText.cpp#L500
a few months ago, i did several tries before giving up.
in some cases i could get to apply the style, but i never managed to get
both the style applied and the frame re-rendered with the new formatting.
does anybody know how should i apply the styles (both paragraph and
character will be needed) in a way that, once the plugin has executed
its task, the text is correctly rendered?
any existing snippet in the current scribus code that i can look at?
thanks for your help!
a.l.e
More information about the scribus-dev
mailing list