]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetquotes.h
The speed patch: redraw only rows that have changed
[lyx.git] / src / insets / insetquotes.h
index f8d453b98360d3f1de34763d3dac71afe13adb90..c8e8e8caa14a551a79c330905b856c17c7a2e5df 100644 (file)
@@ -18,7 +18,7 @@
 class BufferParams;
 class Language;
 
-struct LaTeXFeatures;
+class LaTeXFeatures;
 
 
 /** Quotes.
@@ -70,8 +70,6 @@ public:
        /// Direct access to inner/outer quotation marks
        InsetQuotes(char c, quote_language l, quote_times t);
        ///
-       virtual std::auto_ptr<InsetBase> clone() const;
-       ///
        void metrics(MetricsInfo &, Dimension &) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
@@ -95,14 +93,21 @@ 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;
        ///
-       InsetOld::Code lyxCode() const;
+       InsetBase::Code lyxCode() const;
        // should this inset be handled like a normal character
        bool isChar() const { return true; }
 
 private:
+       virtual std::auto_ptr<InsetBase> doClone() const;
+
        ///
        quote_language language_;
        ///