]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetref.C
clear()->erase() ; lots of using directives for cxx
[lyx.git] / src / insets / insetref.C
index e89023c168776c0515cf01c9096bcdae13755b20..0df28abc6d3d3b5dc56c5d2ee2aefedff12dae1e 100644 (file)
@@ -16,6 +16,8 @@
 #include "commandtags.h"
 #include "gettext.h"
 
+using std::ostream;
+
 extern BufferView * current_view;
 
 
@@ -67,7 +69,8 @@ string InsetRef::getScreenLabel() const
 }
 
 
-int InsetRef::Latex(ostream & os, signed char /*fragile*/, bool /*fs*/) const
+int InsetRef::Latex(ostream & os,
+                   bool /*fragile*/, bool /*fs*/) const
 {
        if(getOptions().empty())
                os << escape(getCommand());
@@ -81,6 +84,13 @@ int InsetRef::Latex(ostream & os, signed char /*fragile*/, bool /*fs*/) const
 }
 
 
+int InsetRef::Ascii(ostream & os) const
+{
+       os << "[" << getContents() << "]";
+       return 0;
+}
+
+
 int InsetRef::Linuxdoc(ostream & os) const
 {
        os << "<ref id=\"" << getContents()