#include "InsetMathNest.h"
+
+namespace lyx {
+
class MathMacroTemplate;
class LyXLex;
///
InsetFormulaMacro();
/// construct a macro hull from its name and the number of arguments
- InsetFormulaMacro(std::string const & name, int nargs, std::string const & t);
+ InsetFormulaMacro(docstring const & name, int nargs, docstring const & t);
/// constructs a mocro from its LaTeX definition
- explicit InsetFormulaMacro(std::string const & s);
+ explicit InsetFormulaMacro(docstring const & s);
///
void metrics(MetricsInfo & mi, Dimension & dim) const;
///
///
void write(Buffer const &, std::ostream & os) const;
///
- int plaintext(Buffer const &, lyx::odocstream &,
+ int plaintext(Buffer const &, odocstream &,
OutputParams const &) const;
///
- int latex(Buffer const &, lyx::odocstream & os,
+ int latex(Buffer const &, odocstream & os,
OutputParams const &) const;
///
- int docbook(Buffer const &, lyx::odocstream &,
+ int docbook(Buffer const &, odocstream &,
OutputParams const &) const;
///
///
InsetBase::Code lyxCode() const { return MATHMACRO_CODE; }
///
- std::string const & getInsetName() const { return name_; }
+ docstring const & getInsetName() const { return name_; }
///
EDITABLE editable() const { return HIGHLY_EDITABLE; }
private:
///
void read(std::istream & is);
/// prefix in inset
- std::string prefix() const;
+ docstring prefix() const;
///
- std::string name_;
+ docstring name_;
};
+
+} // namespace lyx
+
#endif