]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/ref_inset.h
Fix math cursor positioning bug
[lyx.git] / src / mathed / ref_inset.h
index 4e33280bd483a85ee7b0b45f10406d9c1529cc40..5e30a3dfaa0fab0755d4e49e6a08653722b6aea2 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,10 @@ public:
        /// linuxdoc output
        int linuxdoc(std::ostream & os, OutputParams const &) const;
        /// docbook output
-       int docbook(std::ostream & os, OutputParams const &) const;
+       int docbook(Buffer const & buf, std::ostream & os, OutputParams const &) const;
 
        /// small wrapper for the time being
-       DispatchResult localDispatch(FuncRequest const & cmd);
+       DispatchResult localDispatch(FuncRequest & cmd);
 
        struct ref_type_info {
                ///
@@ -59,8 +58,10 @@ public:
        ///
        static std::string const & getName(int type);
 protected:
+       virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
+private:
        ///
-       void priv_dispatch(LCursor & cur, FuncRequest const & cmd);
+       virtual std::auto_ptr<InsetBase> doClone() const;
 };
 
 #endif