3 * \file InsetMathDelim.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Alejandro Aguilar Sierra
10 * Full author contact details are available in file CREDITS.
13 #ifndef MATH_DELIMINSET_H
14 #define MATH_DELIMINSET_H
16 #include "InsetMathNest.h"
21 /// A delimiter like '{' or '(' or '<'
22 class InsetMathDelim : public InsetMathNest {
25 InsetMathDelim(Buffer * buf, docstring const & left, docstring const & right);
27 InsetMathDelim(Buffer * buf, docstring const & left, docstring const & right,
30 InsetMathDelim * asDelimInset() { return this; }
32 InsetMathDelim const * asDelimInset() const { return this; }
34 MathClass mathClass() const { return MC_INNER; }
36 marker_type marker(BufferView const *) const { return NO_MARKER; }
38 bool isParenthesis() const;
40 bool isBrackets() const;
44 mode_type currentMode() const { return MATH_MODE; }
46 void metrics(MetricsInfo & mi, Dimension & dim) const;
48 void draw(PainterInfo &, int x, int y) const;
51 void validate(LaTeXFeatures & features) const;
53 void write(WriteStream & os) const;
54 /// write normalized content
55 void normalize(NormalStream &) const;
57 void maple(MapleStream &) const;
59 void maxima(MaximaStream &) const;
61 void mathematica(MathematicaStream &) const;
63 void mathmlize(MathStream &) const;
65 void htmlize(HtmlStream &) const;
67 void octave(OctaveStream &) const;
69 InsetCode lyxCode() const { return MATH_DELIM_CODE; }
75 virtual Inset * clone() const;