]> 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 fd90c887fca04c1e5379d75ca2ab062d767e2d2d..0733e93486ea60f3271797bf90698991ee2e62bf 100644 (file)
@@ -25,15 +25,11 @@ 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 &, OutputParams const &) const;
        ///
@@ -42,14 +38,23 @@ public:
        ///
        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(lyx::biblio::ENGINE_BASIC) {}
                ///