mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
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:
parent
95fb3513ca
commit
93e39157b6
@ -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?
|
||||
|
@ -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; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user