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 EDITABLE Editable() const { return NOT_EDITABLE; }
42 int Latex(ostream &, signed char fragile, bool free_spc) const;
43 #ifndef USE_OSTREAM_ONLY
45 int Latex(string & file, signed char fragile, bool free_spc) const;
47 int Linuxdoc(string & file) const;
49 int DocBook(string & file) const;
52 int Linuxdoc(ostream &) const;
54 int DocBook(ostream &) const;
57 /// This function escapes 8-bit characters
58 string escape(string const &) const;