]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_atom.h
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_atom.h
index 215f102f0f05ec937d817ba71338fe68a3f90c7e..286b41ea76d060894d22af1ac8e2af0943ea1313 100644 (file)
@@ -35,6 +35,7 @@ Andre'
 
 */
 
+class InsetBase;
 class MathInset;
 
 class MathAtom {
@@ -43,7 +44,7 @@ public:
        // std::containers
        MathAtom();
        /// the "real constructor"
-       explicit MathAtom(MathInset * p);
+       explicit MathAtom(InsetBase * p);
        /// copy constructor, invokes nucleus_->clone()
        MathAtom(MathAtom const &);
        /// we really need to clean up
@@ -55,6 +56,9 @@ public:
        /// access to the inset
        MathInset const * operator->() const { return nucleus_; }
 
+       /// width cache. Not nice...
+       mutable int width_;
+
 private:
        ///
        MathInset * nucleus_;