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"
23 class InsetLabel : public InsetCommand {
27 InsetLabel(string const & cmd);
29 InsetLabel() : InsetCommand("label") {}
31 Inset * Clone() const;
33 Inset::Code LyxCode() const { return Inset::LABEL_CODE; }
35 int GetNumberOfLabels() const;
37 string getLabel(int) const;
39 string getScreenLabel() const { return getContents(); }
41 EDITABLE Editable() const { return NOT_EDITABLE; }
43 int Latex(std::ostream &, bool fragile, bool free_spc) const;
45 int Ascii(std::ostream &) const;
47 int Linuxdoc(std::ostream &) const;
49 int DocBook(std::ostream &) const;
51 /// This function escapes 8-bit characters
52 string escape(string const &) const;