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 std::vector<string> getLabelList() const;
37 string getScreenLabel() const { return getContents(); }
39 EDITABLE Editable() const { return IS_EDITABLE; }
41 void Edit(BufferView *, int, int, unsigned int);
43 int Latex(Buffer const *, std::ostream &, bool fragile, bool free_spc) const;
45 int Ascii(Buffer const *, std::ostream &) const;
47 int Linuxdoc(Buffer const *, std::ostream &) const;
49 int DocBook(Buffer const *, std::ostream &) const;
51 /// This function escapes 8-bit characters
52 string escape(string const &) const;