mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-22 16:04:07 +00:00
c265d16ed0
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4998 a592a061-630c-0410-9148-cb99ea01b6c8
48 lines
1.1 KiB
C
48 lines
1.1 KiB
C
/* This file is part of
|
|
* ======================================================
|
|
*
|
|
* LyX, The Document Processor
|
|
*
|
|
* Copyright 2001 The LyX Team.
|
|
*
|
|
* ======================================================
|
|
*
|
|
* \file ControlBibitem.C
|
|
* \author John Levon, moz@compsoc.man.ac.uk
|
|
* \author Angus Leeming <leeming@lyx.org>
|
|
*/
|
|
|
|
#include <config.h>
|
|
|
|
#ifdef __GNUG__
|
|
#pragma implementation
|
|
#endif
|
|
|
|
#include "ControlBibitem.h"
|
|
#include "BufferView.h"
|
|
|
|
|
|
ControlBibitem::ControlBibitem(LyXView & lv, Dialogs & d)
|
|
: ControlCommand(lv, d)
|
|
{}
|
|
|
|
|
|
void ControlBibitem::applyParamsToInset()
|
|
{
|
|
// FIXME:
|
|
// confirm, is this only necessary for FormBibTeX ???
|
|
if (params().getContents() != inset()->params().getContents())
|
|
bufferview()->ChangeCitationsIfUnique(inset()->params().getContents(),
|
|
params().getContents());
|
|
|
|
inset()->setParams(params());
|
|
bufferview()->updateInset(inset(), true);
|
|
|
|
// We need to do a redraw because the maximum
|
|
// InsetBibKey width could have changed
|
|
#warning please check you mean repaint() not update(),
|
|
#warning and whether the repaint() is needed at all
|
|
bufferview()->repaint();
|
|
bufferview()->fitCursor();
|
|
}
|