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 &);
25 virtual std::auto_ptr<InsetBase> clone() const {
26 return std::auto_ptr<InsetBase>(new InsetLabel(params()));
29 virtual dispatch_result localDispatch(FuncRequest const & cmd);
31 string const getScreenLabel(Buffer const *) const { return getContents(); }
33 EDITABLE editable() const { return IS_EDITABLE; }
35 InsetOld::Code lyxCode() const { return InsetOld::LABEL_CODE; }
37 void getLabelList(std::vector<string> &) const;
39 int latex(Buffer const *, std::ostream &,
40 LatexRunParams const &) const;
42 int ascii(Buffer const *, std::ostream &, int linelen) const;
44 int linuxdoc(Buffer const *, std::ostream &) const;
46 int docbook(Buffer const *, std::ostream &, bool mixcont) const;