]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormBibitem.C
Bugfixes: checkboxes to radiobuttons (from J�rgen S) and remove a little
[lyx.git] / src / frontends / xforms / FormBibitem.C
index dd01a436097c6c509d53b45d18c6598f80ae31da..0b85396a77120cb9b43a1cef3f9f83830a7579bf 100644 (file)
@@ -3,8 +3,8 @@
  * Copyright 2001 the LyX Team
  * Read the file COPYING
  *
- * \author Angus Leeming
- * \author John Levon
+ * \author Angus Leeming, a.leeming@ic.ac.uk 
+ * \author John Levon, moz@compsoc.man.ac.uk
  */
 
 #ifdef __GNUG__
 #endif
 
 #include <config.h>
+#include "xformsBC.h"
 #include "ControlBibitem.h"
 #include "FormBibitem.h"
 #include "form_bibitem.h"
 #include "gettext.h"
-#include "xformsBC.h"
 #include "support/lstrings.h" // compare
 
+typedef FormCB<ControlBibitem, FormDB<FD_form_bibitem> > base_class;
+
 FormBibitem::FormBibitem(ControlBibitem & c)
-       : FormBase2<ControlBibitem, FD_form_bibitem>(c, _("Bibliography Entry"))
+       : base_class(c, _("Bibliography Entry"))
 {}
 
 
@@ -28,17 +30,12 @@ void FormBibitem::build()
 {
        dialog_.reset(build_bibitem());
 
-       // Workaround dumb xforms sizing bug
-       minw_ = form()->w;
-       minh_ = form()->h;
-
        fl_set_input_return(dialog_->key,   FL_RETURN_CHANGED);
        fl_set_input_return(dialog_->label, FL_RETURN_CHANGED);
 
         // Manage the ok, apply, restore and cancel/close buttons
        bc().setOK(dialog_->button_ok);
        bc().setCancel(dialog_->button_cancel);
-       bc().refresh();
 
        bc().addReadOnly(dialog_->key);
        bc().addReadOnly(dialog_->label);