asRefInset

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6265 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2003-02-25 18:21:48 +00:00
parent 20e609ae72
commit dc3d76a8a7
3 changed files with 7 additions and 2 deletions

View 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

View 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; }

View 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;