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 #pragma implementation
18 #include "ControlBibitem.h"
19 #include "BufferView.h"
22 ControlBibitem::ControlBibitem(LyXView & lv, Dialogs & d)
23 : ControlCommand(lv, d)
27 void ControlBibitem::applyParamsToInset()
30 // confirm, is this only necessary for FormBibTeX ???
31 if (params().getContents() != inset()->params().getContents())
32 bufferview()->ChangeCitationsIfUnique(inset()->params().getContents(),
33 params().getContents());
35 inset()->setParams(params());
36 bufferview()->updateInset(inset(), true);
38 // We need to do a redraw because the maximum
39 // InsetBibKey width could have changed
40 #warning please check you mean repaint() not update(),
41 #warning and whether the repaint() is needed at all
42 bufferview()->repaint();
43 bufferview()->fitCursor();