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") {}
34 Inset::Code LyxCode() const { return Inset::LABEL_CODE; }
36 int GetNumberOfLabels() const;
38 string getLabel(int) const;
40 string getScreenLabel() const { return getContents(); }
42 unsigned char Editable() const { return 0; }
44 int Latex(FILE * file, signed char fragile);
46 int Latex(string & file, signed char fragile);
48 int Linuxdoc(string & file);
50 int DocBook(string & file);
52 /// This function escapes 8-bit characters
53 string escape(string const &) const;