]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBibitem.h
Whitespace.
[lyx.git] / src / insets / InsetBibitem.h
index 200630355f7cfd5e319b616943a74d985f5f737b..f18356b9d469286795f718c21952eab6f87a158a 100644 (file)
 #ifndef INSET_BIBITEM_H
 #define INSET_BIBITEM_H
 
-#include "BiblioInfo.h"
+
 #include "InsetCommand.h"
 
 
 namespace lyx {
 
+class BiblioInfo;
+
 /////////////////////////////////////////////////////////////////////////
 //
 // InsetBibItem
@@ -35,45 +37,65 @@ public:
        InsetBibitem(Buffer *, InsetCommandParams const &);
        ///
        ~InsetBibitem();
+
        ///
-       static ParamInfo const & findInfo(std::string const &);
+       void updateCommand(docstring const & new_key, bool dummy = false);
+
+       /// \name Public functions inherited from Inset class
+       //@{
        ///
-       static std::string defaultCommand() { return "bibitem"; }
+       InsetCode lyxCode() const { return BIBITEM_CODE; }
        ///
-       static bool isCompatibleCommand(std::string const & s) 
-               { return s == "bibitem"; }
-private:
+       bool hasSettings() const { return true; }
+       /// \copydoc Inset::initView()
        /// verify label and update references.
-       /// Overloaded from Inset::initView.
        void initView();
        ///
        bool isLabeled() const { return true; }
        ///
        void read(Lexer & lex);
        ///
-       docstring screenLabel() const;
-       ///
-       bool hasSettings() const { return true; }
+       int plaintext(odocstringstream &, OutputParams const &,
+                     size_t max_length = INT_MAX) const;
        ///
-       InsetCode lyxCode() const { return BIBITEM_CODE; }
+       docstring xhtml(XHTMLStream &, OutputParams const &) const;
        ///
-       docstring bibLabel() const;
+       void collectBibKeys(InsetIterator const &) const;
+       /// update the counter of this inset
+       void updateBuffer(ParIterator const &, UpdateType);
+       ///@}
+
+       /// \name Static public methods obligated for InsetCommand derived classes
+       //@{
        ///
-       int plaintext(odocstream &, OutputParams const &) const;
+       static ParamInfo const & findInfo(std::string const &);
        ///
-       docstring xhtml(XHTMLStream &, OutputParams const &) const;
+       static std::string defaultCommand() { return "bibitem"; }
        ///
-       virtual void fillWithBibKeys(BiblioInfo &, InsetIterator const &) const;
-       /// Update the counter of this inset
-       void updateBuffer(ParIterator const &, UpdateType);
+       static bool isCompatibleCommand(std::string const & s)
+               { return s == "bibitem"; }
+       ///@}
+
+private:
        ///
-       void updateCommand(docstring const & new_key, bool dummy = false);
+       docstring bibLabel() const;
+
+       /// \name Private functions inherited from Inset class
+       //@{
        ///
        void doDispatch(Cursor & cur, FuncRequest & cmd);
        ///
        Inset * clone() const { return new InsetBibitem(*this); }
+       ///@}
+
+       /// \name Private functions inherited from InsetCommand class
+       //@{
+       ///
+       docstring screenLabel() const;
+       //@}
 
        friend docstring bibitemWidest(Buffer const & buffer, OutputParams const &);
+
        /// The label that is set by updateBuffer
        docstring autolabel_;
        ///
@@ -84,6 +106,7 @@ private:
 /// Return the widest label in the Bibliography.
 docstring bibitemWidest(Buffer const &, OutputParams const &);
 
+
 } // namespace lyx
 
 #endif // INSET_BIBITEM_H