#include "insets/InsetBibitem.h"
#include "insets/InsetBranch.h"
+#include "insets/InsetCitation.h"
#include "insets/InsetCommand.h"
#include "insets/InsetFlex.h"
#include "insets/InsetGraphics.h"
break;
}
+ case CITE_CODE: {
+ InsetCitation & cit = static_cast<InsetCitation &>(*it);
+ // This actually only needs to be done if the cite engine
+ // differs, but we do it in general.
+ cit.redoLabel();
+ // We need to update the list of citations.
+ need_update = true;
+ break;
+ }
+
case BIBITEM_CODE: {
// check for duplicates
InsetBibitem & bib = static_cast<InsetBibitem &>(*it);
}
-bool reduceSelectionToOneCell(Cursor & cur)
+bool reduceSelectionToOneCell(CursorData & cur)
{
if (!cur.selection() || !cur.inMathed())
return false;
}
-bool multipleCellsSelected(Cursor const & cur)
+bool multipleCellsSelected(CursorData const & cur)
{
if (!cur.selection() || !cur.inMathed())
return false;
namespace {
-void copySelectionToStack(Cursor const & cur, CutStack & cutstack)
+void copySelectionToStack(CursorData const & cur, CutStack & cutstack)
{
// this doesn't make sense, if there is no selection
if (!cur.selection())
}
-docstring grabSelection(Cursor const & cur)
+docstring grabSelection(CursorData const & cur)
{
if (!cur.selection())
return docstring();