/**
* \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>
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);
}
FormCitation::FormCitation()
- : base_class(_("Citation"), false)
+ : base_class(_("Citation"))
{}