]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_diminset.C
bug + spped fixes + small stuff
[lyx.git] / src / mathed / math_diminset.C
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..e2e898cfa3285ec4c8add61925336d41371a51ae 100644 (file)
@@ -0,0 +1,45 @@
+/**
+ * \file math_diminset.C
+ * 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.
+ */
+
+#include <config.h>
+
+#include "math_diminset.h"
+#include "debug.h"
+
+
+MathDimInset::MathDimInset()
+       : xo_(-3), yo_(-3) // some sentinel value for debugging
+{}
+
+
+int MathDimInset::ascent() const
+{
+       return dim_.asc;
+}
+
+
+int MathDimInset::descent() const
+{
+       return dim_.des;
+}
+
+
+int MathDimInset::width() const
+{
+       return dim_.wid;
+}
+
+
+void MathDimInset::setPosCache(PainterInfo const &, int x, int y) const
+{
+       //lyxerr << "MathDimInset: cache to " << x << " " << y << std::endl;
+       xo_ = x;
+       yo_ = y;
+}