mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
parent
91fe8e54d2
commit
7e34e65943
@ -40,6 +40,7 @@
|
|||||||
|
|
||||||
#include "insets/InsetBibitem.h"
|
#include "insets/InsetBibitem.h"
|
||||||
#include "insets/InsetBranch.h"
|
#include "insets/InsetBranch.h"
|
||||||
|
#include "insets/InsetCitation.h"
|
||||||
#include "insets/InsetCommand.h"
|
#include "insets/InsetCommand.h"
|
||||||
#include "insets/InsetFlex.h"
|
#include "insets/InsetFlex.h"
|
||||||
#include "insets/InsetGraphics.h"
|
#include "insets/InsetGraphics.h"
|
||||||
@ -322,6 +323,16 @@ pasteSelectionHelper(DocIterator const & cur, ParagraphList const & parlist,
|
|||||||
break;
|
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: {
|
case BIBITEM_CODE: {
|
||||||
// check for duplicates
|
// check for duplicates
|
||||||
InsetBibitem & bib = static_cast<InsetBibitem &>(*it);
|
InsetBibitem & bib = static_cast<InsetBibitem &>(*it);
|
||||||
|
@ -82,6 +82,8 @@ public:
|
|||||||
static bool isCompatibleCommand(std::string const &);
|
static bool isCompatibleCommand(std::string const &);
|
||||||
//@}
|
//@}
|
||||||
///
|
///
|
||||||
|
void redoLabel() { cache.recalculate = true; }
|
||||||
|
///
|
||||||
CitationStyle getCitationStyle(BufferParams const & bp, std::string const & input,
|
CitationStyle getCitationStyle(BufferParams const & bp, std::string const & input,
|
||||||
std::vector<CitationStyle> const & valid_styles) const;
|
std::vector<CitationStyle> const & valid_styles) const;
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user