]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/ref_inset.h
Andreas' patch to prevent crash on click on previewd inset
[lyx.git] / src / mathed / ref_inset.h
index 8ca6155f79429ae2d0e927e9f8e786a2835a9161..7e3c58ce2d006fd8dbde820bd64c3821eec140e5 100644 (file)
@@ -14,6 +14,7 @@
 
 
 #include "command_inset.h"
+class Buffer;
 
 // for \ref
 class RefInset : public CommandInset {
@@ -23,8 +24,6 @@ public:
        ///
        explicit RefInset(std::string const & data);
        ///
-       virtual std::auto_ptr<InsetBase> clone() const;
-       ///
        //void write(WriteStream & os) const;
        ///
        void infoize(std::ostream & os) const;
@@ -40,10 +39,7 @@ public:
        /// linuxdoc output
        int linuxdoc(std::ostream & os, OutputParams const &) const;
        /// docbook output
-       int docbook(std::ostream & os, OutputParams const &) const;
-
-       /// small wrapper for the time being
-       DispatchResult localDispatch(FuncRequest const & cmd);
+       int docbook(Buffer const & buf, std::ostream & os, OutputParams const &) const;
 
        struct ref_type_info {
                ///
@@ -59,10 +55,10 @@ public:
        ///
        static std::string const & getName(int type);
 protected:
+       virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
+private:
        ///
-       virtual
-       DispatchResult
-       priv_dispatch(LCursor & cur, FuncRequest const & cmd);
+       virtual std::auto_ptr<InsetBase> doClone() const;
 };
 
 #endif