]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_atom.h
Fix reading of math macros
[lyx.git] / src / mathed / math_atom.h
index 4a7d1c1a51bbce0a434cfde56cda4a9ef239849f..760b8777b8c4bdea056014190564c23594e09cea 100644 (file)
@@ -7,6 +7,14 @@
 #pragma interface
 #endif
 
+/**
+ * Wrapper for MathInset * with copy-semantics
+ *
+ * \author André Pönitz
+ *
+ * Full author contact details are available in file CREDITS
+ */
+
 /**
 The 'atom' is the major blob in math typesetting.  And 'atom' consists
 of a nucleus, an optional superscript, and an optional subscript.
@@ -45,15 +53,10 @@ public:
        ~MathAtom();
        /// assignment invokes nucleus_->clone()
        void operator=(MathAtom const &);
-       /// change inset under the hood
-       void operator=(MathInset * p);
-       /// change inset under the hood
-       void reset(MathInset * p);
        /// access to the inset (checked with gprof)
-       MathInset const * nucleus() const { return nucleus_; }
        MathInset       * nucleus()       { return nucleus_; }
        /// access to the inset
-       MathInset * operator->() const { return nucleus_; }
+       MathInset const * operator->() const { return nucleus_; }
 
 private:
        ///