X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FCommandInset.h;h=770ecb388d78d6e98808d5a2446157599376a6f8;hb=3e79e0f5f00add2c735d372f4734cf31f64b7e5f;hp=75b6f887b2b99c894523948c0b2eb32b1e6fadea;hpb=ed858d73e57ce7aa89e38c1bc4d799362edb0227;p=lyx.git diff --git a/src/mathed/CommandInset.h b/src/mathed/CommandInset.h index 75b6f887b2..770ecb388d 100644 --- a/src/mathed/CommandInset.h +++ b/src/mathed/CommandInset.h @@ -4,7 +4,7 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author André Pönitz + * \author André Pönitz * * Full author contact details are available in file CREDITS. */ @@ -25,9 +25,10 @@ namespace lyx { class CommandInset : public InsetMathNest { public: /// - explicit CommandInset(docstring const & name); + explicit CommandInset(Buffer * buf, docstring const & name, + bool needs_math_mode = true); /// - bool metrics(MetricsInfo & mi, Dimension & dim) const; + void metrics(MetricsInfo & mi, Dimension & dim) const; /// void draw(PainterInfo & pi, int x, int y) const; /// @@ -49,6 +50,8 @@ private: /// docstring name_; /// + bool needs_math_mode_; + /// mutable bool set_label_; /// mutable RenderButton button_;