class Buffer;
class BufferView;
+class DispatchResult;
class FuncRequest;
+class LaTeXFeatures;
+class MathInset;
class MetricsInfo;
class Dimension;
class PainterInfo;
-class LaTeXFeatures;
-class DispatchResult;
+class UpdatableInset;
/// Common base class to all insets
class InsetBase {
/// replicate ourselves
virtual std::auto_ptr<InsetBase> clone() const = 0;
+ /// identification as math inset
+ virtual MathInset * asMathInset() { return 0; }
+ /// identification as non-math inset
+ virtual UpdatableInset * asUpdatableInset() { return 0; }
+
// the real dispatcher
DispatchResult
dispatch(FuncRequest const & cmd, idx_type & idx, pos_type & pos);