[scribus-dev] applying a style from a plugin

Craig Bradney cbradney at scribus.info
Thu Feb 9 23:29:56 UTC 2017


> On 9 Feb 2017, at 16:38, ale rimoldi <ale.comp_06 at xox.ch> wrote:
> 
> 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
> 


Happy to help Ale, I might have time on the weekend. Talk then.

thanks
Craig




More information about the scribus-dev mailing list