]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_binaryopinset.h
Fix math cursor positioning bug
[lyx.git] / src / mathed / math_binaryopinset.h
index ccd5f085f49270b7809a571ac75d5caff8960f56..76b4829a244a912577b252fbe458481adef99432 100644 (file)
@@ -1,37 +1,42 @@
 // -*- C++ -*-
+/**
+ * \file math_binaryopinset.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.
+ */
+
 #ifndef MATH_BINARYOPINSET_H
 #define MATH_BINARYOPINSET_H
 
 #include "math_nestinset.h"
-#include "math_nestinset.h"
+#include "metricsinfo.h"
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
-/** An inset for multiplication
-    \author André Pönitz
- */
+/// An inset for multiplication
 class MathBinaryOpInset : public MathNestInset {
 public:
        ///
        explicit MathBinaryOpInset(char op);
        ///
-       MathInset * clone() const;
+       virtual std::auto_ptr<InsetBase> clone() const;
        ///
-       void draw(Painter &, int x, int y) const;
+       void draw(PainterInfo &, int x, int y) const;
        ///
-       void write(MathWriteInfo & os) const;
+       void write(WriteStream & os) const;
        ///
-       void writeNormal(std::ostream &) const;
+       void normalize(NormalStream &) const;
        ///
-       void metrics(MathMetricsInfo const & st) const;
+       void metrics(MetricsInfo & st) const;
 private:
        ///
        int opwidth() const;
        ///
        char op_;
        ///
-       mutable MathMetricsInfo mi_;
+       mutable MetricsInfo mi_;
 };
 #endif