-#include "math_macro.h"
-#include "macro_support.h"
-#include "support/LOstream.h"
-#include "support/LAssert.h"
-
-using std::ostream;
-
-
-MathMacroTemplate::MathMacroTemplate(string const & nm, int na):
- MathParInset(LM_ST_TEXT, nm, LM_OT_MACRO),
- edit_(false),
- nargs_(na)
-{
- if (nargs_ > 0) {
- tcode_ = LM_TC_ACTIVE_INSET;
- for (int i = 0; i < nargs_; ++i) {
- args_.push_back(MathMacroArgument(i + 1));
- }
- //for (int i = 0; i < nargs_; ++i) {
- // MathMacroArgument * ma = new MathMacroArgument(i + 1);
- // args_.push_back(boost::shared_ptr<MathMacroArgument>(ma));
- //}
- } else {
- tcode_ = LM_TC_INSET;
- // Here is nargs != args_.size()
- //args = 0;
- }
-}