X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetref.C;h=0df28abc6d3d3b5dc56c5d2ee2aefedff12dae1e;hb=3c8aba3b556871fb1100a2f98cd93d5d4e3f70c9;hp=e89023c168776c0515cf01c9096bcdae13755b20;hpb=fa492d6bf09db7f1c278687e0000ad1c4833af3d;p=lyx.git diff --git a/src/insets/insetref.C b/src/insets/insetref.C index e89023c168..0df28abc6d 100644 --- a/src/insets/insetref.C +++ b/src/insets/insetref.C @@ -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 << "