}
-#ifdef USE_PAINTER
void MathRootInset::draw(Painter & pain, int x, int y)
{
int idxp = idx;
MathSqrtInset::draw(pain, x + wroot, y);
idx = idxp;
}
-#else
-void MathRootInset::Draw(int x, int y)
-{
- int idxp = idx;
-
- idx = 1;
- uroot->Draw(x, y - dh);
- MathSqrtInset::Draw(x+wroot, y);
- XFlush(fl_display);
- idx = idxp;
-}
-#endif
void MathRootInset::SetStyle(short st)
void MathRootInset::Write(ostream & os)
-{
+{
+#ifdef USE_OSTREAM_ONLY
+ os << '\\' << name << '[';
+ uroot->Write(os);
+ os << "]{";
+ MathParInset::Write(os);
+ os << '}';
+#else
string output;
MathRootInset::Write(output);
os << output;
+#endif
}
-void MathRootInset::Write(string &outf)
+#ifndef USE_OSTREAM_ONLY
+void MathRootInset::Write(string & outf)
{
outf += '\\';
outf += name;
MathParInset::Write(outf);
outf += '}';
}
+#endif