#include "commandtags.h"
#include "gettext.h"
+using std::ostream;
+
extern BufferView * current_view;
}
-int InsetRef::Latex(ostream & os, signed char /*fragile*/) const
+int InsetRef::Latex(ostream & os,
+ bool /*fragile*/, bool /*fs*/) const
{
if(getOptions().empty())
os << escape(getCommand());
}
-#ifndef USE_OSTREAM_ONLY
-int InsetRef::Latex(string & file, signed char /*fragile*/) const
-{
- if(getOptions().empty())
- file += escape(getCommand());
- else {
- string ns;
- InsetCommand clone = InsetCommand(getCmdName(),
- getContents(), ns);
- file += escape(clone.getCommand());
- }
- return 0;
-}
-
-
-int InsetRef::Linuxdoc(string & file) const
-{
- file += "<ref id=\"" + getContents()
- + "\" name=\""+ getOptions() +"\" >" ;
-
- return 0;
-}
-
-
-int InsetRef::DocBook(string & file) const
+int InsetRef::Ascii(ostream & os) const
{
- file += "<link linkend=\"" + getContents()
- + "\">"+ getOptions() +"</link>" ;
-
+ os << "[" << getContents() << "]";
return 0;
}
-#else
int InsetRef::Linuxdoc(ostream & os) const
{
<< "\">" << getOptions() << "</link>";
return 0;
}
-#endif
// This function escapes 8-bit characters and other problematic characters