X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathDelim.h;h=5a7e8164049cfb7948559b8dd12587adc149d57a;hb=cdc847fd304019a19425a0d5d9d42a556a937097;hp=61c230e4e9d4285d58dcdcf4a5d588459c17070b;hpb=31059d1741933d95403e7f07ed033cae482f778b;p=lyx.git diff --git a/src/mathed/InsetMathDelim.h b/src/mathed/InsetMathDelim.h index 61c230e4e9..5a7e816404 100644 --- a/src/mathed/InsetMathDelim.h +++ b/src/mathed/InsetMathDelim.h @@ -5,7 +5,7 @@ * Licence details can be found in the file COPYING. * * \author Alejandro Aguilar Sierra - * \author André Pönitz + * \author André Pönitz * * Full author contact details are available in file CREDITS. */ @@ -15,8 +15,6 @@ #include "InsetMathNest.h" -#include - namespace lyx { @@ -24,13 +22,16 @@ namespace lyx { class InsetMathDelim : public InsetMathNest { public: /// - InsetMathDelim(docstring const & left, docstring const & right); + InsetMathDelim(Buffer * buf, docstring const & left, docstring const & right); /// - InsetMathDelim(docstring const & left, docstring const & right, MathData const &); + InsetMathDelim(Buffer * buf, docstring const & left, docstring const & right, + MathData const &); /// InsetMathDelim * asDelimInset() { return this; } /// InsetMathDelim const * asDelimInset() const { return this; } + /// + MathClass mathClass() const { return MC_INNER; } /// is it (...)? bool isParenthesis() const; /// is it [...]? @@ -40,10 +41,12 @@ public: /// mode_type currentMode() const { return MATH_MODE; } /// - bool metrics(MetricsInfo & mi, Dimension & dim) const; + void metrics(MetricsInfo & mi, Dimension & dim) const; /// void draw(PainterInfo &, int x, int y) const; + /// + void validate(LaTeXFeatures & features) const; /// void write(WriteStream & os) const; /// write normalized content @@ -57,13 +60,17 @@ public: /// void mathmlize(MathStream &) const; /// + void htmlize(HtmlStream &) const; + /// void octave(OctaveStream &) const; /// + InsetCode lyxCode() const { return MATH_DELIM_CODE; } + /// docstring left_; /// docstring right_; private: - virtual std::auto_ptr doClone() const; + virtual Inset * clone() const; /// mutable int dw_; };