2003-01-07 João Luis Meloni Assirati <assirati@fma.if.usp.br>
+
* math_hullinset.C: fix numbering problem of AMS gather and
- multline environments (bugs 518 and 594). Treat gather the same
- way as eqnarray and multline as a special case.
+ multline environments. Treat gather the same
+ way as eqnarray and multline as a special case.
2002-12-18 John Levon <levon@movementarian.org>
os << " ";
}
if (hasPrevAtom())
- if (prevAtom()->asSymbolInset() || prevAtom()->asScriptInset())
- prevAtom()->infoize(os);
+ prevAtom()->infoize2(os);
os << " ";
return STRCONV(os.str());
}
virtual void mathmlize(MathMLStream &) const;
/// write content as something readable by Octave
virtual void octavize(OctaveStream &) const;
- /// describe content
+ /// describe content if cursor inside
virtual void infoize(std::ostream &) const {}
+ /// describe content if cursor behind
+ virtual void infoize2(std::ostream &) const {}
/// plain ascii output
virtual int ascii(std::ostream & os, int) const;
/// linuxdoc output
expand();
expanded_.substitute(*this);
}
+
+
+void MathMacro::infoize(std::ostream & os) const
+{
+ os << "Macro: " << name();
+}
+
+
+void MathMacro::infoize2(std::ostream & os) const
+{
+ os << "Macro: " << name();
+}
void mathmlize(MathMLStream &) const;
///
void octavize(OctaveStream &) const;
+ ///
+ void infoize(std::ostream &) const;
+ ///
+ void infoize2(std::ostream &) const;
private:
///
void MathScriptInset::infoize(std::ostream & os) const
{
os << "Scripts";
+}
+
+
+void MathScriptInset::infoize2(std::ostream & os) const
+{
if (limits_)
os << (limits_ == 1 ? ", Displayed limits" : ", Inlined limits");
}
void removeScript(bool up);
/// make sure a script is accessible
void ensure(bool up);
- ///
+ /// say that we have scripts
void infoize(std::ostream & os) const;
+ /// say whether we have displayed limits
+ void infoize2(std::ostream & os) const;
/// local dispatcher
result_type dispatch(FuncRequest const & cmd, idx_type & idx, pos_type & pos);
}
-void MathSymbolInset::infoize(std::ostream & os) const
+void MathSymbolInset::infoize2(std::ostream & os) const
{
os << "Symbol: " << name();
}
///
void write(WriteStream & os) const;
///
- void infoize(std::ostream & os) const;
+ void infoize2(std::ostream & os) const;
private:
///