X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetlabel.C;h=0973ad239cd1b419a570cc4609693deaf86241a3;hb=3c8aba3b556871fb1100a2f98cd93d5d4e3f70c9;hp=200b52ee195a0fd1875a4a40f74280e0ae616801;hpb=fa492d6bf09db7f1c278687e0000ad1c4833af3d;p=lyx.git diff --git a/src/insets/insetlabel.C b/src/insets/insetlabel.C index 200b52ee19..0973ad239c 100644 --- a/src/insets/insetlabel.C +++ b/src/insets/insetlabel.C @@ -4,7 +4,7 @@ * LyX, The Document Processor * * Copyright 1995 Matthias Ettrich - * Copyright 1995-1999 The LyX Team. + * Copyright 1995-2000 The LyX Team. * * ====================================================== */ @@ -15,6 +15,9 @@ #endif #include "insetlabel.h" +#include "support/LOstream.h" + +using std::ostream; /* Label. Used to insert a label automatically */ @@ -43,12 +46,19 @@ string InsetLabel::getLabel(int) const } -int InsetLabel::Latex(ostream & os, signed char /*fragile*/, bool /*fs*/) const +int InsetLabel::Latex(ostream & os, + bool /*fragile*/, bool /*fs*/) const { os << escape(getCommand()); return 0; } +int InsetLabel::Ascii(ostream & os) const +{ + os << "<" << getContents() << ">"; + return 0; +} + int InsetLabel::Linuxdoc(ostream & os) const {