X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetBibitem.h;h=41497e18497f48ac185baafe37c29a156a7153a7;hb=239b9919ffe28338d789e6dc9122228f77ab77a7;hp=661795284c8913f873c44c305804df9d1ac8e3cf;hpb=c75d667e788bbb43f98698217afacc107b73d353;p=lyx.git diff --git a/src/insets/InsetBibitem.h b/src/insets/InsetBibitem.h index 661795284c..41497e1849 100644 --- a/src/insets/InsetBibitem.h +++ b/src/insets/InsetBibitem.h @@ -12,12 +12,14 @@ #ifndef INSET_BIBITEM_H #define INSET_BIBITEM_H -#include "BiblioInfo.h" + #include "InsetCommand.h" namespace lyx { +class BiblioInfo; + ///////////////////////////////////////////////////////////////////////// // // InsetBibItem @@ -53,11 +55,12 @@ public: /// void read(Lexer & lex); /// - int plaintext(odocstream &, OutputParams const &) const; + int plaintext(odocstringstream &, OutputParams const &, + size_t max_length = INT_MAX) const; /// docstring xhtml(XHTMLStream &, OutputParams const &) const; /// - void fillWithBibKeys(BiblioInfo &, InsetIterator const &) const; + void collectBibKeys(InsetIterator const &) const; /// update the counter of this inset void updateBuffer(ParIterator const &, UpdateType); ///@} @@ -69,7 +72,7 @@ public: /// static std::string defaultCommand() { return "bibitem"; } /// - static bool isCompatibleCommand(std::string const & s) + static bool isCompatibleCommand(std::string const & s) { return s == "bibitem"; } ///@} @@ -83,6 +86,8 @@ private: void doDispatch(Cursor & cur, FuncRequest & cmd); /// Inset * clone() const { return new InsetBibitem(*this); } + /// Is the content of this inset part of the immediate (visible) text sequence? + bool isPartOfTextSequence() const { return false; } ///@} /// \name Private functions inherited from InsetCommand class