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"
21 class InsetLabel : public InsetCommand {
24 InsetLabel(InsetCommandParams const &);
26 Inset * Clone() const { return new InsetLabel(params()); }
28 string getScreenLabel() const { return getContents(); }
30 EDITABLE Editable() const { return IS_EDITABLE; }
32 Inset::Code LyxCode() const { return Inset::LABEL_CODE; }
34 void Edit(BufferView *, int, int, unsigned int);
36 std::vector<string> getLabelList() const;
38 int Latex(Buffer const *, std::ostream &,
39 bool fragile, bool free_spc) const;
41 int Ascii(Buffer const *, std::ostream &) const;
43 int Linuxdoc(Buffer const *, std::ostream &) const;
45 int DocBook(Buffer const *, std::ostream &) const;
47 /// This function escapes 8-bit characters
48 string escape(string const &) const;