2 * \file ControlBibitem.C
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
7 * \author Angus Leeming
9 * Full author contact details are available in file CREDITS
15 #include "ControlBibitem.h"
16 #include "BufferView.h"
19 ControlBibitem::ControlBibitem(LyXView & lv, Dialogs & d)
20 : ControlCommand(lv, d)
24 void ControlBibitem::applyParamsToInset()
27 // confirm, is this only necessary for FormBibTeX ???
28 if (params().getContents() != inset()->params().getContents())
29 bufferview()->ChangeCitationsIfUnique(inset()->params().getContents(),
30 params().getContents());
32 inset()->setParams(params());
33 bufferview()->updateInset(inset(), true);
35 // We need to do a redraw because the maximum
36 // InsetBibKey width could have changed
37 #warning please check you mean repaint() not update(),
38 #warning and whether the repaint() is needed at all
39 bufferview()->repaint();
40 bufferview()->fitCursor();