]> 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 3a5d327ba21b552bd0db01645edc43486b8e3938..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;
@@ -36,14 +35,11 @@ public:
        virtual RefInset * asRefInset() { return this; }
 
        /// plain ascii output
-       int ascii(std::ostream & os, int) const;
+       int plaintext(std::ostream & os, OutputParams const &) const;
        /// linuxdoc output
-       int linuxdoc(std::ostream & os) const;
+       int linuxdoc(std::ostream & os, OutputParams const &) const;
        /// docbook output
-       int docbook(std::ostream & os, bool) const;
-
-       /// small wrapper for the time being
-       dispatch_result localDispatch(FuncRequest const & cmd);
+       int docbook(Buffer const & buf, std::ostream & os, OutputParams const &) const;
 
        struct ref_type_info {
                ///
@@ -60,9 +56,12 @@ public:
        static std::string const & getName(int type);
 protected:
        ///
-       virtual
-       dispatch_result
-       priv_dispatch(FuncRequest const & cmd, idx_type & idx, pos_type & pos);
+       virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
+       ///
+       bool getStatus(LCursor &, FuncRequest const &, FuncStatus &) const;
+private:
+       ///
+       virtual std::auto_ptr<InsetBase> doClone() const;
 };
 
 #endif