2 /* This file is part of*
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-2000 The LyX Team
10 * ====================================================== */
19 #include "insetcommand.h"
25 class InsetLabel : public InsetCommand {
28 InsetLabel(string const & cmd);
30 InsetLabel() : InsetCommand("label") {}
32 Inset * Clone() const;
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 EDITABLE Editable() const { return NOT_EDITABLE; }
44 int Latex(ostream &, signed char fragile, bool free_spc) const;
46 int Linuxdoc(ostream &) const;
48 int DocBook(ostream &) const;
50 /// This function escapes 8-bit characters
51 string escape(string const &) const;