#include "debug.h"
-MathInset::MathInset()
-{}
-
-
-MathInset::~MathInset()
-{}
-
-
int MathInset::height() const
{
return ascent() + descent();
std::ostream & operator<<(std::ostream & os, MathInset const & inset)
{
- MathWriteInfo wi(0, os, false);
+ WriteStream wi(os, false);
inset.write(wi);
return os;
}
}
+MathInset::idx_type MathInset::index(row_type row, col_type col) const
+{
+ if (row != 0)
+ lyxerr << "illegal row: " << row << "\n";
+ if (col != 0)
+ lyxerr << "illegal col: " << col << "\n";
+ return 0;
+}
+
void MathInset::substitute(MathMacro const &)
{}
}
-bool MathInset::idxUp(idx_type &, pos_type &) const
+bool MathInset::idxUp(idx_type &) const
{
return false;
}
-bool MathInset::idxDown(idx_type &, pos_type &) const
+bool MathInset::idxDown(idx_type &) const
{
return false;
}
{}
-void MathInset::writeNormal(NormalStream & os) const
+void MathInset::normalize(NormalStream & os) const
{
os << "[unknown ";
- MathWriteInfo wi(0, os.os_, false);
+ WriteStream wi(os.os(), false);
write(wi);
os << "] ";
}
void MathInset::dump() const
{
lyxerr << "---------------------------------------------\n";
- MathWriteInfo wi(0, lyxerr, false);
+ WriteStream wi(lyxerr, false);
write(wi);
lyxerr << "\n---------------------------------------------\n";
}
-bool MathInset::covers(int, int) const
-{
- lyxerr << "MathInset::covers() called directly!\n";
- return false;
-}
-
-
void MathInset::validate(LaTeXFeatures &) const
{}
}
-void MathInset::write(MathWriteInfo &) const
+void MathInset::write(WriteStream &) const
{
lyxerr << "MathInset::write() called directly!\n";
}
void MathInset::octavize(OctaveStream & os) const
{
- NormalStream ns(os.os_);
- writeNormal(ns);
+ NormalStream ns(os.os());
+ normalize(ns);
}
void MathInset::maplize(MapleStream & os) const
{
- NormalStream ns(os.os_);
- writeNormal(ns);
+ NormalStream ns(os.os());
+ normalize(ns);
}
void MathInset::mathmlize(MathMLStream & os) const
{
- NormalStream ns(os.os_);
- writeNormal(ns);
+ NormalStream ns(os.os());
+ normalize(ns);
}