]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathData.h
hopefully fix tex2lyx linking.
[lyx.git] / src / mathed / MathData.h
index 9b679ad211aaec81d2dc3d2b020498309bb769e1..678e9976d57c593e300589a4fcd7ba55e3b77105 100644 (file)
@@ -21,6 +21,9 @@
 
 #include "support/docstream.h"
 
+
+namespace lyx {
+
 class BufferView;
 class LaTeXFeatures;
 class ReplaceData;
@@ -54,7 +57,7 @@ public:
 
 public:
        ///
-       MathArray();
+       MathArray() {}
        ///
        MathArray(const_iterator from, const_iterator to);
        ///
@@ -114,13 +117,13 @@ public:
        void touch() const;
 
        /// access to cached x coordinate of last drawing
-       int xo(BufferView & bv) const;
+       int xo(BufferView const & bv) const;
        /// access to cached y coordinate of last drawing
-       int yo(BufferView & bv) const;
+       int yo(BufferView const & bv) const;
        /// access to cached x coordinate of mid point of last drawing
-       int xm(BufferView & bv) const { return xo(bv) + dim_.wid / 2; }
+       int xm(BufferView const & bv) const { return xo(bv) + dim_.wid / 2; }
        /// access to cached y coordinate of mid point of last drawing
-       int ym(BufferView & bv) const { return yo(bv) + (dim_.des - dim_.asc) / 2; }
+       int ym(BufferView const & bv) const { return yo(bv) + (dim_.des - dim_.asc) / 2; }
        /// write access to coordinate;
        void setXY(BufferView & bv, int x, int y) const;
        /// returns x coordinate of given position in the array
@@ -133,7 +136,7 @@ public:
        size_type x2pos(int targetx, int glue) const;
        /// returns distance of this cell to the point given by x and y
        // assumes valid position and size cache
-       int dist(BufferView & bv, int x, int y) const;
+       int dist(BufferView const & bv, int x, int y) const;
 
        /// ascent of this cell above the baseline
        int ascent() const { return dim_.asc; }
@@ -159,7 +162,9 @@ private:
 ///
 std::ostream & operator<<(std::ostream & os, MathArray const & ar);
 ///
-lyx::odocstream & operator<<(lyx::odocstream & os, MathArray const & ar);
+odocstream & operator<<(odocstream & os, MathArray const & ar);
+
 
+} // namespace lyx
 
 #endif