X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FMathMacroTemplate.h;h=b0c301897761a0caeb9124c91270386b960875a9;hb=cdc847fd304019a19425a0d5d9d42a556a937097;hp=61f82e9d947d270b399a947eb2a11febd30b6955;hpb=586124c6a7bbad3d28bb756622613334da4a9a23;p=lyx.git diff --git a/src/mathed/MathMacroTemplate.h b/src/mathed/MathMacroTemplate.h index 61f82e9d94..b0c3018977 100644 --- a/src/mathed/MathMacroTemplate.h +++ b/src/mathed/MathMacroTemplate.h @@ -34,8 +34,8 @@ public: std::vector const & optionalValues = std::vector(), MathData const & def = MathData(), MathData const & display = MathData()); - /// - MathMacroTemplate(Buffer * buf, const docstring & str); + /// parses from string, returns false if failed + bool fromString (const docstring & str); /// bool editable() const { return true; } /// @@ -87,7 +87,7 @@ public: virtual void validate(LaTeXFeatures &) const; /// decide whether its a redefinition - void updateToContext(MacroContext const & mc) const; + void updateToContext(MacroContext const & mc); /// void draw(PainterInfo & pi, int x, int y) const; @@ -103,6 +103,9 @@ public: void infoize(odocstream & os) const; /// std::string contextMenuName() const; + /// + void addToToc(DocIterator const & di, bool output_active, + UpdateType utype) const; protected: /// virtual void doDispatch(Cursor & cur, FuncRequest & cmd); @@ -164,7 +167,7 @@ private: /// (re)newcommand or def mutable MacroType type_; /// defined before already? - mutable bool redefinition_; + bool redefinition_; /// void createLook(int args) const; ///