]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_atom.h
architectural changes to tex2lyx
[lyx.git] / src / mathed / math_atom.h
index 1bf41fd2b571127bb7073c7b5187ab5b6e2455ab..286b41ea76d060894d22af1ac8e2af0943ea1313 100644 (file)
@@ -3,11 +3,8 @@
 #ifndef MATH_ATOM_H
 #define MATH_ATOM_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
-/** 
+/**
  * Wrapper for MathInset * with copy-semantics
  *
  * \author André Pönitz
@@ -38,6 +35,7 @@ Andre'
 
 */
 
+class InsetBase;
 class MathInset;
 
 class MathAtom {
@@ -46,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
@@ -58,6 +56,9 @@ public:
        /// access to the inset
        MathInset const * operator->() const { return nucleus_; }
 
+       /// width cache. Not nice...
+       mutable int width_;
+
 private:
        ///
        MathInset * nucleus_;