1 /* This file is part of
2 * ======================================================
4 * LyX, The Document Processor
6 * Copyright 2001 The LyX Team.
8 * ======================================================
10 * \file ControlBibitem.C
11 * \author John Levon, moz@compsoc.man.ac.uk
12 * \author Angus Leeming <leeming@lyx.org>
18 #pragma implementation
21 #include "ControlBibitem.h"
22 #include "BufferView.h"
25 ControlBibitem::ControlBibitem(LyXView & lv, Dialogs & d)
26 : ControlCommand(lv, d)
30 void ControlBibitem::applyParamsToInset()
33 // confirm, is this only necessary for FormBibTeX ???
34 if (params().getContents() != inset()->params().getContents())
35 bufferview()->ChangeCitationsIfUnique(inset()->params().getContents(),
36 params().getContents());
38 inset()->setParams(params());
39 bufferview()->updateInset(inset(), true);
41 // We need to do a redraw because the maximum
42 // InsetBibKey width could have changed
43 #warning please check you mean repaint() not update(),
44 #warning and whether the repaint() is needed at all
45 bufferview()->repaint();
46 bufferview()->fitCursor();