lyx_mirror/src/mathed/InsetMathBinom.h
Abdelrazak Younes 137158532b Put mathed on a diet: transfer dimension cache from inset to BufferView.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20457 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-23 22:39:49 +00:00

51 lines
952 B
C++

// -*- C++ -*-
/**
* \file InsetMathBinom.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_BINOMINSET_H
#define MATH_BINOMINSET_H
#include "InsetMathFracBase.h"
namespace lyx {
/// Binom like objects
class InsetMathBinom : public InsetMathFracBase {
public:
///
explicit InsetMathBinom(bool choose = false);
///
void write(WriteStream & os) const;
///
void normalize(NormalStream &) const;
///
void metrics(MetricsInfo & mi, Dimension & dim) const;
///
void draw(PainterInfo &, int x, int y) const;
/// draw decorations.
void drawDecoration(PainterInfo & pi, int x, int y) const
{ drawMarkers2(pi, x, y); }
///
bool extraBraces() const;
private:
virtual Inset * clone() const;
///
int dw(int height) const;
///
bool choose_;
};
} // namespace lyx
#endif