X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fxforms%2FFormParagraph.C;h=66e2b819e701a5e399fe4f7df3e7e7c5f2c2a576;hb=eba67bc3120dc301bf193c3f3b570f51f00a4654;hp=0e2f85a95f2195921c8874985ba2d3c0a9d12d12;hpb=8effd3eec4f9f143572875416ed8815e2a26cd12;p=lyx.git diff --git a/src/frontends/xforms/FormParagraph.C b/src/frontends/xforms/FormParagraph.C index 0e2f85a95f..66e2b819e7 100644 --- a/src/frontends/xforms/FormParagraph.C +++ b/src/frontends/xforms/FormParagraph.C @@ -49,6 +49,19 @@ FormParagraph::~FormParagraph() } +void FormParagraph::redraw() +{ + if( form() && form()->visible ) + fl_redraw_form( form() ); + else + return; + + FL_FORM * outer_form = fl_get_active_folder(dialog_->tabbed_folder); + if (outer_form && outer_form->visible) + fl_redraw_form( outer_form ); +} + + FL_FORM * FormParagraph::form() const { if (dialog_) return dialog_->form; @@ -65,7 +78,7 @@ void FormParagraph::build() minw_ = form()->w; minh_ = form()->h; - // manage the restore, ok, apply and cancel/close buttons + // Manage the ok, apply, restore and cancel/close buttons bc_.setOK(dialog_->button_ok); bc_.setApply(dialog_->button_apply); bc_.setCancel(dialog_->button_cancel); @@ -136,8 +149,7 @@ void FormParagraph::apply() } -// we can safely ignore the parameter because we can always update -void FormParagraph::update(bool) +void FormParagraph::update() { if (!dialog_) return; @@ -470,7 +482,7 @@ void FormParagraph::extra_update() par->pextra_width.c_str()); fl_set_input(extra_->input_pextra_widthp, par->pextra_widthp.c_str()); - switch(par->pextra_alignment) { + switch (par->pextra_alignment) { case LyXParagraph::MINIPAGE_ALIGN_TOP: fl_set_button(extra_->radio_pextra_top, 1); break;