diff --git a/src/mathed/ChangeLog b/src/mathed/ChangeLog index 67cc0901b8..42633bf18a 100644 --- a/src/mathed/ChangeLog +++ b/src/mathed/ChangeLog @@ -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 * formulabase.C (localDispatch): retire LFUN_REF_INSERT. Add diff --git a/src/mathed/math_inset.h b/src/mathed/math_inset.h index c955400858..22dd39c60e 100644 --- a/src/mathed/math_inset.h +++ b/src/mathed/math_inset.h @@ -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; } diff --git a/src/mathed/ref_inset.h b/src/mathed/ref_inset.h index bb9a6c25da..fe1880b4f6 100644 --- a/src/mathed/ref_inset.h +++ b/src/mathed/ref_inset.h @@ -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;