]> git.lyx.org Git - lyx.git/blobdiff - src/insets/inseturl.h
The speed patch: redraw only rows that have changed
[lyx.git] / src / insets / inseturl.h
index 8555331683ae7a367f85deaeb2b49f12c4ca6977..6536be76e06c064f67165d1a0d598625bc2a493f 100644 (file)
@@ -15,7 +15,7 @@
 
 #include "insetcommand.h"
 
-struct LaTeXFeatures;
+class LaTeXFeatures;
 
 /** The url inset
  */
@@ -25,13 +25,7 @@ public:
        explicit
        InsetUrl(InsetCommandParams const &);
        ///
-       ~InsetUrl();
-       ///
-       virtual std::auto_ptr<InsetBase> clone() const {
-               return std::auto_ptr<InsetBase>(new InsetUrl(params()));
-       }
-       ///
-       InsetOld::Code lyxCode() const { return InsetOld::URL_CODE; }
+       InsetBase::Code lyxCode() const { return InsetBase::URL_CODE; }
        ///
        void validate(LaTeXFeatures &) const;
        ///
@@ -52,11 +46,13 @@ public:
        ///
        int docbook(Buffer const &, std::ostream &,
                    OutputParams const &) const;
-protected:
-       ///
-       virtual
-       DispatchResult
-       priv_dispatch(FuncRequest const & cmd, idx_type &, pos_type &);
+       /// the string that is passed to the TOC
+       virtual int textString(Buffer const &, std::ostream & os,
+               OutputParams const &) const;
+private:
+       virtual std::auto_ptr<InsetBase> doClone() const {
+               return std::auto_ptr<InsetBase>(new InsetUrl(params()));
+       }
 };
 
 #endif