]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_inset.C
oh well
[lyx.git] / src / mathed / math_inset.C
index 526e89c93f8a116076b3978669c90afb82454493..41b40a4474c0217ab5c7fe6836f237c7ace15782 100644 (file)
@@ -1,9 +1,9 @@
 /*
  *  File:        math_inset.C
  *  Purpose:     Implementation of insets for mathed
- *  Author:      Alejandro Aguilar Sierra <asierra@servidor.unam.mx> 
+ *  Author:      Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
  *  Created:     January 1996
- *  Description: 
+ *  Description:
  *
  *  Dependencies: Xlib, XForms
  *
@@ -40,7 +40,7 @@ int MathInset::height() const
 
 ostream & operator<<(ostream & os, MathInset const & inset)
 {
-       WriteStream wi(os, false);
+       WriteStream wi(os, false, false);
        inset.write(wi);
        return os;
 }
@@ -149,17 +149,10 @@ bool MathInset::idxEnd(idx_type &, pos_type &) const
 }
 
 
-void MathInset::idxDelete(idx_type &, bool & popit, bool & deleteit)
-{
-       popit    = false;
-       deleteit = false;
-}
-
-
 void MathInset::normalize(NormalStream & os) const
 {
        os << "[unknown ";
-       WriteStream wi(os.os(), false);
+       WriteStream wi(os.os(), false, true);
        write(wi);
        os << "] ";
 }
@@ -168,7 +161,7 @@ void MathInset::normalize(NormalStream & os) const
 void MathInset::dump() const
 {
        lyxerr << "---------------------------------------------\n";
-       WriteStream wi(lyxerr, false);
+       WriteStream wi(lyxerr, false, true);
        write(wi);
        lyxerr << "\n---------------------------------------------\n";
 }
@@ -202,13 +195,17 @@ void MathInset::draw(Painter &, int, int) const
 
 void MathInset::metricsT(TextMetricsInfo const &) const
 {
+#ifdef WITH_WARNINGS
        lyxerr << "MathInset::metricsT(Text) called directly!\n";
+#endif
 }
 
 
 void MathInset::drawT(TextPainter &, int, int) const
 {
+#ifdef WITH_WARNINGS
        lyxerr << "MathInset::drawT(Text) called directly!\n";
+#endif
 }