X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathSpace.h;h=4f16f1640bf5b38b949c2a6c5c4f3e2d294e4c88;hb=ad79ac406f9c8fc85880cfeb5416b0299ee9a617;hp=f45dee5d96727f25c60556f02842b156ad2c37db;hpb=4c9fe33c833fb7239a790acc847f45393983da2b;p=lyx.git diff --git a/src/mathed/InsetMathSpace.h b/src/mathed/InsetMathSpace.h index f45dee5d96..4f16f1640b 100644 --- a/src/mathed/InsetMathSpace.h +++ b/src/mathed/InsetMathSpace.h @@ -18,6 +18,7 @@ namespace lyx { +struct InsetSpaceParams; /// Smart spaces class InsetMathSpace : public InsetMath { @@ -27,9 +28,7 @@ public: /// explicit InsetMathSpace(std::string const & name, std::string const & length); /// - explicit InsetMathSpace(Length const & length); - /// - ~InsetMathSpace(); + explicit InsetMathSpace(Length const & length, bool const prot = false); /// InsetMathSpace const * asSpaceInset() const { return this; } /// @@ -52,15 +51,22 @@ public: /// void octave(OctaveStream &) const; /// + void mathmlize(MathStream & ms) const; + /// + void htmlize(HtmlStream & ms) const; + /// void write(WriteStream & os) const; /// generate something that will be understood by the Dialogs. - std::string const createDialogStr() const; + InsetSpaceParams params() const; /// bool hasSettings() const { return true; } /// - docstring contextMenu(BufferView const &, int, int) const; + std::string contextMenuName() const; /// bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const; + /// + InsetCode lyxCode() const { return MATH_SPACE_CODE; } + protected: /// virtual void doDispatch(Cursor & cur, FuncRequest & cmd);