]> git.lyx.org Git - features.git/commitdiff
asRefInset
authorAngus Leeming <leeming@lyx.org>
Tue, 25 Feb 2003 18:21:48 +0000 (18:21 +0000)
committerAngus Leeming <leeming@lyx.org>
Tue, 25 Feb 2003 18:21:48 +0000 (18:21 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6265 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/ChangeLog
src/mathed/math_inset.h
src/mathed/ref_inset.h

index 67cc0901b86f6d5f65046af8eab032088fbecd00..42633bf18abb96817d52bde63db5f1bec7c1b9ae 100644 (file)
@@ -3,6 +3,9 @@
        * ref_inset.C (dispatch): add an '\end_inset' to the string passed to
        the dialog.
 
+       * math_inset.h:
+       * ref_inset.h (asRefInset): new method, replacing asInsetRef.
+
 2003-02-21  Angus Leeming  <leeming@lyx.org>
 
        * formulabase.C (localDispatch): retire LFUN_REF_INSERT. Add
index c95540085882ea3749f7445545743d98fffe2e53..22dd39c60edded78df8f0e4b0e5f4a9564e23b34 100644 (file)
@@ -62,7 +62,7 @@ class MathSpaceInset;
 class MathSymbolInset;
 class MathUnknownInset;
 
-class InsetRef;
+class RefInset;
 
 class NormalStream;
 class OctaveStream;
@@ -218,7 +218,7 @@ public:
        virtual MathSymbolInset const   * asSymbolInset() const   { return 0; }
        virtual MathUnknownInset        * asUnknownInset()        { return 0; }
        virtual MathUnknownInset const  * asUnknownInset() const  { return 0; }
-       virtual InsetRef                * asInsetRef()            { return 0; }
+       virtual RefInset                * asRefInset()            { return 0; }
 
        /// identifies things that can get scripts
        virtual bool isScriptable() const { return false; }
index bb9a6c25da9af7a4521bddbd78557c3d78904478..fe1880b4f6ebd0f075413d812b770477ff5b6009 100644 (file)
@@ -23,6 +23,8 @@ public:
        string screenLabel() const;
        ///
        void validate(LaTeXFeatures & features) const;
+       ///
+       virtual RefInset * asRefInset() { return this; }
 
        /// plain ascii output
        int ascii(std::ostream & os, int) const;