2 * \file ControlBibitem.C
3 * Read the file COPYING
6 * \author Angus Leeming
8 * Full author contact details are available in file CREDITS
14 #pragma implementation
17 #include "ControlBibitem.h"
18 #include "BufferView.h"
21 ControlBibitem::ControlBibitem(LyXView & lv, Dialogs & d)
22 : ControlCommand(lv, d)
26 void ControlBibitem::applyParamsToInset()
29 // confirm, is this only necessary for FormBibTeX ???
30 if (params().getContents() != inset()->params().getContents())
31 bufferview()->ChangeCitationsIfUnique(inset()->params().getContents(),
32 params().getContents());
34 inset()->setParams(params());
35 bufferview()->updateInset(inset(), true);
37 // We need to do a redraw because the maximum
38 // InsetBibKey width could have changed
39 #warning please check you mean repaint() not update(),
40 #warning and whether the repaint() is needed at all
41 bufferview()->repaint();
42 bufferview()->fitCursor();