X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FMathMacroArgument.h;h=8a8ef5ea6a766eadaed431da502641eae21260be;hb=fc6ce7cd08562fd7bab4427880b46390bb7d2f07;hp=bb5b058f67c3f0ec65624300dc8ae83ffaa32fa3;hpb=e89625ef28143545a511cdabc67dee8b7be1b216;p=lyx.git diff --git a/src/mathed/MathMacroArgument.h b/src/mathed/MathMacroArgument.h index bb5b058f67..8a8ef5ea6a 100644 --- a/src/mathed/MathMacroArgument.h +++ b/src/mathed/MathMacroArgument.h @@ -16,19 +16,22 @@ #include "InsetMathDim.h" +namespace lyx { + + /// A macro argument. class MathMacroArgument : public InsetMathDim { public: /// explicit MathMacroArgument(std::size_t); /// - void metrics(MetricsInfo & mi, Dimension & dim) const; + bool metrics(MetricsInfo & mi, Dimension & dim) const; /// void draw(PainterInfo &, int x, int y) const; /// std::size_t number() const { return number_; } /// - InsetBase::Code lyxCode() const { return MATHMACROARG_CODE; } + Inset::Code lyxCode() const { return MATHMACROARG_CODE; } /// void normalize(NormalStream &) const; @@ -36,11 +39,14 @@ public: void write(WriteStream & os) const; private: - virtual std::auto_ptr doClone() const; + virtual std::auto_ptr doClone() const; /// A number between 1 and 9 std::size_t number_; /// - char str_[3]; + docstring str_; }; + +} // namespace lyx + #endif