]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathMacroTemplate.h
Allows editing when the Prefs dialog is opened; fix bug 3140:
[lyx.git] / src / mathed / MathMacroTemplate.h
index cc07d4e10f96c1d22c6a47544994ee46bb844896..4682df22e86fde854ab2cc5f44b6418a0080c916 100644 (file)
@@ -33,7 +33,7 @@ public:
                MathArray const & = MathArray(),
                MathArray const & = MathArray());
        ///
-       explicit MathMacroTemplate(std::istream & is);
+       explicit MathMacroTemplate(const docstring & str);
        ///
        void edit(LCursor & cur, bool left);
        ///
@@ -55,7 +55,7 @@ public:
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
-       void metrics(MetricsInfo & mi, Dimension & dim) const;
+       bool metrics(MetricsInfo & mi, Dimension & dim) const;
        /// identifies macro templates
        MathMacroTemplate * asMacroTemplate() { return this; }
        /// identifies macro templates