]> git.lyx.org Git - lyx.git/blob - src/mathed/math_binaryopinset.h
Ensure header files can be compiled stand-alone.
[lyx.git] / src / mathed / math_binaryopinset.h
1 // -*- C++ -*-
2 /**
3  * \file math_binaryopinset.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author André Pönitz
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef MATH_BINARYOPINSET_H
13 #define MATH_BINARYOPINSET_H
14
15 #include "math_nestinset.h"
16 #include "math_nestinset.h"
17 #include "metricsinfo.h"
18
19
20 /// An inset for multiplication
21 class MathBinaryOpInset : public MathNestInset {
22 public:
23         ///
24         explicit MathBinaryOpInset(char op);
25         ///
26         virtual std::auto_ptr<InsetBase> clone() const;
27         ///
28         void draw(PainterInfo &, int x, int y) const;
29         ///
30         void write(WriteStream & os) const;
31         ///
32         void normalize(NormalStream &) const;
33         ///
34         void metrics(MetricsInfo & st) const;
35 private:
36         ///
37         int opwidth() const;
38         ///
39         char op_;
40         ///
41         mutable MetricsInfo mi_;
42 };
43 #endif