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"
17 #include <boost/weak_ptr.hpp>
19 class InsetLabel : public InsetCommand {
22 InsetLabel(InsetCommandParams const &);
26 std::auto_ptr<InsetBase> clone() const;
28 virtual dispatch_result localDispatch(FuncRequest const & cmd);
30 std::string const getScreenLabel(Buffer const &) const;
32 EDITABLE editable() const { return IS_EDITABLE; }
34 InsetOld::Code lyxCode() const { return InsetOld::LABEL_CODE; }
35 /// Appends \c list with this label
36 void getLabelList(Buffer const &, std::vector<std::string> & list) const;
38 int latex(Buffer const &, std::ostream &,
39 LatexRunParams const &) const;
41 int ascii(Buffer const &, std::ostream &, int linelen) const;
43 int linuxdoc(Buffer const &, std::ostream &) const;
45 int docbook(Buffer const &, std::ostream &, bool mixcont) const;