/* This file is part of * ====================================================== * * LyX, The Document Processor * * Copyright 1995 Matthias Ettrich * Copyright 1995-2000 The LyX Team. * * ====================================================== */ #include #ifdef __GNUG__ #pragma implementation #endif #include "insetlabel.h" #include "support/LOstream.h" using std::ostream; /* Label. Used to insert a label automatically */ InsetLabel::InsetLabel(string const & cmd) { scanCommand(cmd); } Inset * InsetLabel::Clone() const { return new InsetLabel(getCommand()); } int InsetLabel::GetNumberOfLabels() const { return 1; } string InsetLabel::getLabel(int) const { return contents; } 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 { os << "