4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Lars Gullik Bjønnes
9 * Full author contact details are available in file CREDITS
16 #include "insetcommand.h"
18 class InsetLabel : public InsetCommand {
21 InsetLabel(InsetCommandParams const &);
23 //InsetLabel(InsetCommandParams const &, bool same_id);
27 virtual Inset * clone(Buffer const &) const {
28 return new InsetLabel(params());
31 //virtual Inset * clone(Buffer const &, bool same_id) const {
32 // return new InsetLabel(params(), same_id);
35 virtual dispatch_result localDispatch(FuncRequest const & cmd);
37 string const getScreenLabel(Buffer const *) const { return getContents(); }
39 EDITABLE editable() const { return IS_EDITABLE; }
41 Inset::Code lyxCode() const { return Inset::LABEL_CODE; }
43 std::vector<string> const getLabelList() const;
45 int latex(Buffer const *, std::ostream &,
46 LatexRunParams const &) const;
48 int ascii(Buffer const *, std::ostream &, int linelen) const;
50 int linuxdoc(Buffer const *, std::ostream &) const;
52 int docbook(Buffer const *, std::ostream &, bool mixcont) const;