case LFUN_RIGHT:
result = mathcursor->right(sel) ? DISPATCHED : FINISHED_RIGHT;
updateLocal(bv, false);
+ // write something to the minibuffer
+ //bv->owner()->message(mathcursor->info());
break;
Cursor_ = where;
cursor().pos_ += n;
}
+
+
+string MathCursor::info() const
+{
+ std::ostringstream os;
+ if (pos() > 0)
+ prevAtom()->infoize(os);
+ return os.str();
+}
/// reference to the last item of the path, i.e. "The Cursor"
MathCursorPos const & cursor() const;
+ /// describe the situation
+ string info() const;
/// dump selection information for debugging
void seldump(char const * str) const;
/// dump selection information for debugging
class MapleStream;
class MathMLStream;
class WriteStream;
+class InfoStream;
class MathArray;
class LaTeXFeatures;
virtual void mathmlize(MathMLStream &) const;
/// write content as something readable by Octave
virtual void octavize(OctaveStream &) const;
+ /// describe content
+ virtual void infoize(std::ostream &) const {}
/// dump content to stderr for debugging
virtual void dump() const;
}
+void MathSymbolInset::infoize(std::ostream & os) const
+{
+ os << '\\' << name();
+}
+
+
void octavize(OctaveStream &) const;
///
void write(WriteStream & os) const;
+ ///
+ void infoize(std::ostream & os) const;
private:
///