On Saturday 23 March 2002 6:33 pm, John Levon wrote:
> On Fri, Mar 22, 2002 at 11:59:24AM +0000, Angus Leeming wrote:
> > Could those who know what I'm talking about have a look please. (John,
> > Jürgen, Lars, etc, etc, etc)
>
> It's really the case that ALL insettext's don't accept paragraph changes
> ??? What about minipage !

This is now history. Jürgen came forward with something better.

If your FormGraphics.C is up to date it should have a changedParagraph so:

void FormParagraph::changedParagraph()
{
        /// Record the paragraph
        Paragraph const * const p = getCurrentParagraph();
        if (p == 0 || p == par_)
                return;

        // For now, don't bother checking if the params are different.

        // Will the underlying paragraph accept our changes?
        Inset * const inset = p->inInset();
        bool const accept = !(inset && inset->forceDefaultParagraphs(inset));
        bc().valid(accept);

        if (!accept) {
                postWarning(_("Cannot apply paragraph settings to this inset!"));
        }
}

Moreover, the Dialogs::updateParagraph signal is now emmitted in 
InsetText::edit. Ie, when the cursor enters the inset, telling the dialog to 
check (here) if the changes can be applied. We also need to emit the signal 
once we leave the inset (eg return to the original par) but I don't know how 
to do that.

> Angus, can't you get my patch attached to the bug to work properly ?

Dunno. Haven't tried it ;-)

> regards
> john

Angus

Reply via email to