]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/ref_inset.h
fix #1073
[lyx.git] / src / mathed / ref_inset.h
index 852fc320d199cd61dee105ae560a092119188955..0132d78ab3a61a777b32fd461408014bafe1f4f7 100644 (file)
@@ -1,9 +1,10 @@
 #ifndef REF_INSET_H
 #define REF_INSET_H
 
+
 #include "command_inset.h"
 
-// for \ref 
+// for \ref
 class RefInset : public CommandInset {
 public:
        ///
@@ -17,11 +18,13 @@ public:
        ///
        void infoize(std::ostream & os) const;
        ///
-       int dispatch(string const & cmd, idx_type idx, pos_type pos);
+       dispatch_result dispatch(FuncRequest const & cmd, idx_type & idx, pos_type & pos);
        ///
        string screenLabel() const;
        ///
        void validate(LaTeXFeatures & features) const;
+       ///
+       virtual RefInset * asRefInset() { return this; }
 
        /// plain ascii output
        int ascii(std::ostream & os, int) const;
@@ -30,8 +33,10 @@ public:
        /// docbook output
        int docbook(std::ostream & os, bool) const;
 
+       /// small wrapper for the time being
+       dispatch_result localDispatch(FuncRequest const & cmd);
 
-       struct type_info {
+       struct ref_type_info {
                ///
                string latex_name;
                ///
@@ -39,7 +44,7 @@ public:
                ///
                string short_gui_name;
        };
-       static type_info types[];
+       static ref_type_info types[];
        ///
        static int getType(string const & name);
        ///