]> git.lyx.org Git - features.git/blob - src/mathed/math_binaryopinset.h
write \mathrm{x}\mathrm{y} as \mathrm{xy} again
[features.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 class MathBinaryOpInset : public MathNestInset {
16 public:
17         ///
18         explicit MathBinaryOpInset(char op);
19         ///
20         MathInset * clone() const;
21         ///
22         void draw(Painter &, int x, int y) const;
23         ///
24         void write(MathWriteInfo & os) const;
25         ///
26         void writeNormal(std::ostream &) const;
27         ///
28         void metrics(MathMetricsInfo const & st) const;
29 private:
30         ///
31         int opwidth() const;
32         ///
33         char op_;
34         ///
35         mutable MathMetricsInfo mi_;
36 };
37 #endif