2 /* This file is part of*
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-2001 The LyX Team
10 * ====================================================== */
19 #include "insetcommand.h"
21 class InsetLabel : public InsetCommand {
24 InsetLabel(InsetCommandParams const &, bool same_id = false);
26 virtual Inset * clone(Buffer const &, bool same_id = false) const {
27 return new InsetLabel(params(), same_id);
30 string const getScreenLabel(Buffer const *) const { return getContents(); }
32 EDITABLE editable() const { return IS_EDITABLE; }
34 Inset::Code lyxCode() const { return Inset::LABEL_CODE; }
36 void edit(BufferView *, int, int, unsigned int);
38 void edit(BufferView * bv, bool front = true);
40 std::vector<string> const getLabelList() const;
42 int latex(Buffer const *, std::ostream &,
43 bool fragile, bool free_spc) const;
45 int ascii(Buffer const *, std::ostream &, int linelen) const;
47 int linuxdoc(Buffer const *, std::ostream &) const;
49 int docBook(Buffer const *, std::ostream &) const;