4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
16 #include "insetcommand.h"
20 /** The reference inset
22 class InsetRef : public InsetCommand {
30 string short_gui_name;
32 static type_info types[];
34 static int getType(string const & name);
36 static string const & getName(int type);
39 InsetRef(InsetCommandParams const &, Buffer const &);
41 InsetRef(InsetRef const &);
45 virtual std::auto_ptr<InsetBase> clone() const {
46 return std::auto_ptr<InsetBase>(new InsetRef(*this));
49 dispatch_result localDispatch(FuncRequest const & cmd);
51 string const getScreenLabel(Buffer const *) const;
53 EDITABLE editable() const { return IS_EDITABLE; }
55 InsetOld::Code lyxCode() const { return InsetOld::REF_CODE; }
57 bool display() const { return false; }
59 int latex(Buffer const *, std::ostream &,
60 LatexRunParams const &) const;
62 int ascii(Buffer const *, std::ostream &, int linelen) const;
64 int linuxdoc(Buffer const *, std::ostream &) const;
66 int docbook(Buffer const *, std::ostream &, bool mixcont) const;
68 void validate(LaTeXFeatures & features) const;