X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmathed%2FInsetMathCommand.h;h=da4269c9ef9df1cc0f6dec41c8168931be5c36d1;hb=bc54a55491a0b6eab5179235496773410657782f;hp=1b00daf3fd7a5c9627f1130aaa5239a152da30fe;hpb=6c300f72a217722652dc27db9108e1050028979c;p=lyx.git diff --git a/src/mathed/InsetMathCommand.h b/src/mathed/InsetMathCommand.h index 1b00daf3fd..da4269c9ef 100644 --- a/src/mathed/InsetMathCommand.h +++ b/src/mathed/InsetMathCommand.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. */ @@ -15,38 +15,44 @@ #include "InsetMathNest.h" -#include "insets/render_button.h" +#include "insets/RenderButton.h" namespace lyx { /// Inset for things like \name[options]{contents} -class CommandInset : public InsetMathNest { +class InsetMathCommand : public InsetMathNest { public: /// - explicit CommandInset(std::string const & name); + explicit InsetMathCommand(Buffer * buf, docstring const & name, + bool needs_math_mode = true); + /// + 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; /// - InsetBase * editXY(LCursor &, int, int); + Inset * editXY(Cursor &, int, int); /// void write(WriteStream & os) const; // - // void infoize(std::ostream & os) const; + // void infoize(odocstream & os) const; /// virtual docstring const screenLabel() const; - /// generate something that will be understood by the Dialogs. - std::string const createDialogStr(std::string const & name) const; /// - std::string const & commandname() const { return name_; } + docstring const & commandname() const { return name_; } + /// + bool isActive() const { return false; } + private: - virtual std::auto_ptr doClone() const; + virtual Inset * clone() const; /// - std::string name_; + docstring name_; + /// + bool needs_math_mode_; /// mutable bool set_label_; ///