]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/ref_inset.h
architectural changes to tex2lyx
[lyx.git] / src / mathed / ref_inset.h
index bb9a6c25da9af7a4521bddbd78557c3d78904478..39e2349070f5d85db401b0bbd3eeb549c8f65f0d 100644 (file)
@@ -12,7 +12,7 @@ public:
        ///
        explicit RefInset(string const & data);
        ///
-       MathInset * clone() const;
+       virtual std::auto_ptr<InsetBase> clone() const;
        ///
        //void write(WriteStream & os) const;
        ///
@@ -20,9 +20,11 @@ public:
        ///
        dispatch_result dispatch(FuncRequest const & cmd, idx_type & idx, pos_type & pos);
        ///
-       string screenLabel() const;
+       string const screenLabel() const;
        ///
        void validate(LaTeXFeatures & features) const;
+       ///
+       virtual RefInset * asRefInset() { return this; }
 
        /// plain ascii output
        int ascii(std::ostream & os, int) const;
@@ -31,6 +33,8 @@ public:
        /// docbook output
        int docbook(std::ostream & os, bool) const;
 
+       /// small wrapper for the time being
+       dispatch_result localDispatch(FuncRequest const & cmd);
 
        struct ref_type_info {
                ///