FormPrint::FormPrint(LyXView * lv, Dialogs * d)
- : FormBase(lv, d, _("Print"),
- BUFFER_DEPENDENT, HIDE, new OkApplyCancelPolicy),
+ : FormBaseBD(lv, d, _("Print"), new OkApplyCancelPolicy),
dialog_(0), target_(2), order_(2), which_(3)
{
// let the dialog be shown
{
dialog_ = build_print();
- // manage the ok, apply and cancel/close buttons
+ // Workaround dumb xforms sizing bug
+ minw_ = form()->w;
+ minh_ = form()->h;
+
+ // Manage the ok, apply and cancel/close buttons
bc_.setOK(dialog_->button_ok);
bc_.setApply(dialog_->button_apply);
bc_.setCancel(dialog_->button_cancel);
}
-void FormPrint::connect()
-{
- FormBase::connect();
- fl_set_form_minsize(dialog_->form,
- dialog_->form->w,
- dialog_->form->h);
-}
-
-
FL_FORM * FormPrint::form() const
{
if (dialog_) return dialog_->form;
fl_set_input(dialog_->input_count,
tostr(pp.count_copies).c_str());
+ bc_.valid();
}
}