]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormCitation.C
Yet more dialog tweaking from Rob.
[lyx.git] / src / frontends / xforms / FormCitation.C
index 76ace4c0bb3ca88e1737f0888c5e9fbb31f16bc2..1baba09b8cda7a5f8b058bbe5dbc466d177fb931 100644 (file)
@@ -1,9 +1,11 @@
 /**
  * \file xforms/FormCitation.C
- * Copyright 2000-2001 The LyX Team.
- * See the file COPYING.
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * \author Angus Leeming <leeming@lyx.org>
+ * \author Angus Leeming 
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 #include <config.h>
@@ -65,24 +67,6 @@ void fillChoice(FD_citation * dialog, vector<string> vec)
        setEnabled(dialog->choice_style, !vec.empty());
        if (vec.empty())
                return;
-
-       // The width of the choice varies with the contents.
-       // Ensure that it is centred in the frame.
-
-       int width = 0;
-       for (vector<string>::const_iterator it = vec.begin();
-            it != vec.end(); ++it) {
-               width = max(width, string_width(*it));
-       }
-
-       int const dx =
-               max(5, int(0.5 * (dialog->frame_style->w - width)));
-
-       fl_set_object_geometry(dialog->choice_style,
-                              dialog->frame_style->x + dx,
-                              dialog->choice_style->y,
-                              width,
-                              dialog->choice_style->h);
 }
 
 
@@ -116,7 +100,7 @@ typedef FormCB<ControlCitation, FormDB<FD_citation> > base_class;
 
 
 FormCitation::FormCitation()
-       : base_class(_("Citation"), false)
+       : base_class(_("Citation"))
 {}