2 /* This file is part of*
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-1999 The LyX Team
10 * ====================================================== */
19 #include "insetcommand.h"
23 class InsetLabel : public InsetCommand {
26 InsetLabel(string const & cmd);
28 InsetLabel() : InsetCommand("label") {}
30 Inset * Clone() const;
32 Inset::Code LyxCode() const { return Inset::LABEL_CODE; }
34 int GetNumberOfLabels() const;
36 string getLabel(int) const;
38 string getScreenLabel() const { return getContents(); }
40 unsigned char Editable() const { return 0; }
42 int Latex(ostream &, signed char fragile) const;
44 int Latex(string & file, signed char fragile) const;
46 int Linuxdoc(string & file) const;
48 int DocBook(string & file) const;
50 /// This function escapes 8-bit characters
51 string escape(string const &) const;