]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/ref_inset.h
Fix to bug 2362: Deleting superscript also deletes subscript.
[lyx.git] / src / mathed / ref_inset.h
index 4e33280bd483a85ee7b0b45f10406d9c1529cc40..cf5298ef1a138b16a74dabaadee7633b2a46de6c 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 {
                ///
@@ -60,7 +56,12 @@ public:
        static std::string const & getName(int type);
 protected:
        ///
-       void priv_dispatch(LCursor & cur, FuncRequest const & cmd);
+       virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
+       ///
+       bool getStatus(LCursor &, FuncRequest const &, FuncStatus &) const;
+private:
+       ///
+       virtual std::auto_ptr<InsetBase> doClone() const;
 };
 
 #endif