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 <a.leeming@ic.ac.uk>
18 #pragma implementation
23 #include "ButtonControllerBase.h"
24 #include "ControlBibitem.h"
31 ControlBibitem::ControlBibitem(LyXView & lv, Dialogs & d)
32 : ControlCommand(lv, d)
34 d_.showBibitem.connect(slot(this, &ControlBibitem::showInset));
37 void ControlBibitem::applyParamsToInset()
40 // confirm, is this only necessary for FormBibTeX ???
41 if (params().getContents() != inset()->params().getContents())
42 lv_.view()->ChangeCitationsIfUnique(inset()->params().getContents(),
43 params().getContents());
45 inset()->setParams(params());
46 lv_.view()->updateInset(inset(), true);
48 // We need to do a redraw because the maximum
49 // InsetBibKey width could have changed
51 lv_.view()->fitCursor(lv_.view()->getLyXText());