]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlBibitem.C
Really dull and boring header shit
[lyx.git] / src / frontends / controllers / ControlBibitem.C
1 /**
2  * \file ControlBibitem.C
3  * Read the file COPYING
4  *
5  * \author John Levon
6  * \author Angus Leeming
7  *
8  * Full author contact details are available in file CREDITS
9  */
10
11 #include <config.h>
12
13 #ifdef __GNUG__
14 #pragma implementation
15 #endif
16
17 #include "ControlBibitem.h"
18 #include "BufferView.h"
19
20
21 ControlBibitem::ControlBibitem(LyXView & lv, Dialogs & d)
22         : ControlCommand(lv, d)
23 {}
24
25
26 void ControlBibitem::applyParamsToInset()
27 {
28         // FIXME:
29         // confirm, is this only necessary for FormBibTeX ???
30         if (params().getContents() != inset()->params().getContents())
31                 bufferview()->ChangeCitationsIfUnique(inset()->params().getContents(),
32                                                     params().getContents());
33
34         inset()->setParams(params());
35         bufferview()->updateInset(inset(), true);
36
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();
43 }