]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_atom.h
Get rid of lyxstring, remove usage of STRCONV.
[lyx.git] / src / mathed / math_atom.h
index 215f102f0f05ec937d817ba71338fe68a3f90c7e..9e02b7a8d30883d17d865cb1a9154433a66681a6 100644 (file)
@@ -1,18 +1,23 @@
 // -*- C++ -*-
-
-#ifndef MATH_ATOM_H
-#define MATH_ATOM_H
-
-
 /**
- * Wrapper for MathInset * with copy-semantics
+ * \file math_atom.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
  * \author André Pönitz
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
+#ifndef MATH_ATOM_H
+#define MATH_ATOM_H
+
+
 /**
+Wrapper for MathInset * with copy-semantics
+
+--
+
 The 'atom' is the major blob in math typesetting.  And 'atom' consists
 of a nucleus, an optional superscript, and an optional subscript.
 
@@ -35,6 +40,7 @@ Andre'
 
 */
 
+class InsetBase;
 class MathInset;
 
 class MathAtom {
@@ -43,7 +49,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 +61,9 @@ public:
        /// access to the inset
        MathInset const * operator->() const { return nucleus_; }
 
+       /// width cache. Not nice...
+       mutable int width_;
+
 private:
        ///
        MathInset * nucleus_;