]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_data.h
more IU
[lyx.git] / src / mathed / math_data.h
index 1d6728126ab9ba5226af693ae89780ab980d5900..05caf55d00133252657fa8b662078383d6ab0515 100644 (file)
@@ -1,18 +1,15 @@
 // -*- C++ -*-
 /**
- *   You are free to use and modify this code under the terms of
- *   the GNU General Public Licence version 2 or later.
- */
-
-/** \class MathArray
-    \brief Low level container for math insets
- *  \author Alejandro Aguilar Sierra
- *  \author André Pönitz
- *  \author Lars Gullik Bjønnes
+ * \file math_data.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * Full author contact details are available in file CREDITS
-    \version February 2001
-  */
+ * \author Alejandro Aguilar Sierra
+ * \author André Pönitz
+ * \author Lars Gullik Bjønnes
+ *
+ * Full author contact details are available in file CREDITS.
+ */
 
 #ifndef MATH_DATA_H
 #define MATH_DATA_H
@@ -32,8 +29,6 @@ class TextMetricsInfo;
 class TextPainter;
 
 
-
-
 class MathArray : private std::vector<MathAtom> {
 public:
        /// re-use inhertited stuff
@@ -105,11 +100,13 @@ public:
        /// checked read access
        MathAtom const & operator[](pos_type) const;
        /// rebuild cached metrics information
-       Dimension const & metrics(MetricsInfo & mi) const;
+       void metrics(MetricsInfo & mi) const;
+       /// rebuild cached metrics information
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
        /// redraw cell using cache metrics information
        void draw(PainterInfo & pi, int x, int y) const;
        /// rebuild cached metrics information
-       Dimension const & metricsT(TextMetricsInfo const & mi) const;
+       void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
        /// redraw cell using cache metrics information
        void drawT(TextPainter & pi, int x, int y) const;
        /// mark cell for re-drawing
@@ -146,7 +143,7 @@ public:
        /// width of this cell
        int width() const { return dim_.wid; }
        /// dimensions of cell
-       Dimension const & dim() const   { return dim_; }
+       Dimension const & dim() const { return dim_; }
        /// dimensions of cell
        void setDim(Dimension const & d) const { dim_ = d; }
        /// bounding box of this cell