]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/ref_inset.h
rename commandtags.h to lfuns.h and renumber/cleanup. Rebuild the tree !
[lyx.git] / src / mathed / ref_inset.h
index e3c9728e846c3dbd6897afdc64776e62f0424b1b..0132d78ab3a61a777b32fd461408014bafe1f4f7 100644 (file)
@@ -1,9 +1,6 @@
 #ifndef REF_INSET_H
 #define REF_INSET_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
 #include "command_inset.h"
 
@@ -21,11 +18,13 @@ public:
        ///
        void infoize(std::ostream & os) const;
        ///
-       result_type dispatch(FuncRequest 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;
@@ -34,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;
                ///
@@ -43,7 +44,7 @@ public:
                ///
                string short_gui_name;
        };
-       static type_info types[];
+       static ref_type_info types[];
        ///
        static int getType(string const & name);
        ///