* 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
-{
- file += escape(getCommand());
- return 0;
-}
-
-
-int InsetLabel::Linuxdoc(string & file) const
+int InsetLabel::Ascii(ostream & os) const
{
- file += "<label id=\"" + getContents() +"\" >";
+ os << "<" << getContents() << ">";
return 0;
}
-int InsetLabel::DocBook(string & file) const
-{
- file += "<anchor id=\"" + getContents() +"\" >";
- return 0;
-}
-
-#else
-
int InsetLabel::Linuxdoc(ostream & os) const
{
os << "<label id=\"" << getContents() << "\" >";
os << "<anchor id=\"" << getContents() << "\" >";
return 0;
}
-#endif
-
-
// This function escapes 8-bit characters and other problematic characters