* LyX, The Document Processor
*
* Copyright 1995 Matthias Ettrich
- * Copyright 1995-1999 The LyX Team.
+ * Copyright 1995-2000 The LyX Team.
*
* ====================================================== */
#endif
#include "insetlabel.h"
+#include "support/LOstream.h"
+
+using std::ostream;
/* Label. Used to insert a label automatically */
}
-int InsetLabel::Latex(ostream & os, signed char /*fragile*/) const
+int InsetLabel::Latex(ostream & os,
+ bool /*fragile*/, bool /*fs*/) const
{
os << escape(getCommand());
return 0;
}
-
-#ifndef USE_OSTREAM_ONLY
-int InsetLabel::Latex(string & file, signed char /*fragile*/) const
+int InsetLabel::Ascii(ostream & os) const
{
- file += escape(getCommand());
+ os << "<" << getContents() << ">";
return 0;
}
-#endif
-int InsetLabel::Linuxdoc(string & file) const
+int InsetLabel::Linuxdoc(ostream & os) const
{
- file += "<label id=\"" + getContents() +"\" >";
+ os << "<label id=\"" << getContents() << "\" >";
return 0;
}
-int InsetLabel::DocBook(string & file) const
+int InsetLabel::DocBook(ostream & os) const
{
- file += "<anchor id=\"" + getContents() +"\" >";
+ os << "<anchor id=\"" << getContents() << "\" >";
return 0;
}