X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FCommandInset.h;h=b820d726021a221c53ae0f58cd3a64a98067254e;hb=31cd421bcd26647cb7edbb694b05473271fe9153;hp=28d46bce94736b0c7985d5981a3ae189706217b3;hpb=b7ce285f8b6b74848b49600dad08d93ed4893568;p=lyx.git diff --git a/src/mathed/CommandInset.h b/src/mathed/CommandInset.h index 28d46bce94..b820d72602 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,12 @@ 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; + marker_type marker(BufferView const *) const { return NO_MARKER; } + /// + void metrics(MetricsInfo & mi, Dimension & dim) const; /// void draw(PainterInfo & pi, int x, int y) const; /// @@ -44,11 +47,13 @@ public: bool isActive() const { return false; } private: - virtual std::auto_ptr doClone() const; + virtual Inset * clone() const; /// docstring name_; /// + bool needs_math_mode_; + /// mutable bool set_label_; /// mutable RenderButton button_;