Add const versions of Inset::asInsetMath.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30819 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2009-08-01 21:39:14 +00:00
parent 95fb3513ca
commit 93e39157b6
2 changed files with 4 additions and 0 deletions

View File

@ -121,6 +121,8 @@ public:
/// identification as math inset
virtual InsetMath * asInsetMath() { return 0; }
/// identification as math inset
virtual InsetMath const * asInsetMath() const { return 0; }
/// true for 'math' math inset, but not for e.g. mbox
virtual bool inMathed() const { return false; }
/// is this inset based on the InsetText class?

View File

@ -95,6 +95,8 @@ class InsetMath : public Inset {
public:
/// identification as math inset
InsetMath * asInsetMath() { return this; }
/// identification as math inset
InsetMath const * asInsetMath() const { return this; }
/// this is overridden in math text insets (i.e. mbox)
bool inMathed() const { return true; }