]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetcite.h
The speed patch: redraw only rows that have changed
[lyx.git] / src / insets / insetcite.h
index 6025d8ecfe390299656f1c9d12913f8d071f5fc1..0733e93486ea60f3271797bf90698991ee2e62bf 100644 (file)
@@ -15,7 +15,8 @@
 
 
 #include "insetcommand.h"
-#include "frontends/controllers/biblio.h"
+#include "bufferparams.h"
+
 
 /** Used to insert citations
  */
@@ -24,32 +25,40 @@ public:
        ///
        InsetCitation(InsetCommandParams const &);
        ///
-       std::auto_ptr<InsetBase> clone() const {
-               return std::auto_ptr<InsetBase>(new InsetCitation(params()));
-       }
-       ///
        std::string const getScreenLabel(Buffer const &) const;
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       InsetOld::Code lyxCode() const { return InsetOld::CITE_CODE; }
+       InsetBase::Code lyxCode() const { return InsetBase::CITE_CODE; }
        ///
-       int plaintext(Buffer const &, std::ostream &, int linelen) const;
+       int plaintext(Buffer const &, std::ostream &, OutputParams const &) const;
        ///
        int latex(Buffer const &, std::ostream &,
                  OutputParams const &) const;
        ///
+       int docbook(Buffer const &, std::ostream &,
+                 OutputParams const &) const;
+       /// the string that is passed to the TOC
+       virtual int textString(Buffer const &, std::ostream & os,
+               OutputParams const &) const;
+       ///
        void validate(LaTeXFeatures &) const;
 
 private:
+       virtual std::auto_ptr<InsetBase> doClone() const
+       {
+               return std::auto_ptr<InsetBase>(new InsetCitation(params()));
+       }
+
        /// This function does the donkey work of creating the pretty label
        std::string const generateLabel(Buffer const &) const;
 
-       struct Cache {
+       class Cache {
+       public:
                ///
-               Cache() : engine(biblio::ENGINE_BASIC) {}
+               Cache() : engine(lyx::biblio::ENGINE_BASIC) {}
                ///
-               biblio::CiteEngine engine;
+               lyx::biblio::CiteEngine engine;
                ///
                InsetCommandParams params;
                ///