]> git.lyx.org Git - features.git/blobdiff - src/insets/insetbase.h
some renaming + safety stuff
[features.git] / src / insets / insetbase.h
index be2ed477d8eec58627c3d2a8383e0f2c4b52a6e0..a7de6df4ed622041bbe979f32df81eadcd7b7945 100644 (file)
 
 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 {
@@ -46,6 +48,11 @@ public:
        /// 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);