]> git.lyx.org Git - lyx.git/blob - src/mathed/math_binaryopinset.h
small up/down tweaking
[lyx.git] / src / mathed / math_binaryopinset.h
1 // -*- C++ -*-
2 #ifndef MATH_BINARYOPINSET_H
3 #define MATH_BINARYOPINSET_H
4
5 #include "math_nestinset.h"
6 #include "math_nestinset.h"
7
8 #ifdef __GNUG__
9 #pragma interface
10 #endif
11
12 /** An inset for multiplication
13  *  \author André Pönitz
14  *
15  * Full author contact details are available in file CREDITS
16  */
17 class MathBinaryOpInset : public MathNestInset {
18 public:
19         ///
20         explicit MathBinaryOpInset(char op);
21         ///
22         MathInset * clone() const;
23         ///
24         void draw(MathPainterInfo &, int x, int y) const;
25         ///
26         void write(WriteStream & os) const;
27         ///
28         void normalize(NormalStream &) const;
29         ///
30         void metrics(MathMetricsInfo & st) const;
31 private:
32         ///
33         int opwidth() const;
34         ///
35         char op_;
36         ///
37         mutable MathMetricsInfo mi_;
38 };
39 #endif