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(InsetCommandParams const &, Buffer const &, bool same_id);
45 virtual Inset * clone(Buffer const & buffer) const {
46 return new InsetRef(params(), buffer);
49 //virtual Inset * clone(Buffer const & buffer, bool same_id) const {
50 // return new InsetRef(params(), buffer, same_id);
53 dispatch_result localDispatch(FuncRequest const & cmd);
55 string const getScreenLabel(Buffer const *) const;
57 EDITABLE editable() const { return IS_EDITABLE; }
59 Inset::Code lyxCode() const { return Inset::REF_CODE; }
61 bool display() const { return false; }
63 int latex(Buffer const *, std::ostream &,
64 LatexRunParams const &) const;
66 int ascii(Buffer const *, std::ostream &, int linelen) const;
68 int linuxdoc(Buffer const *, std::ostream &) const;
70 int docbook(Buffer const *, std::ostream &, bool mixcont) const;
72 void validate(LaTeXFeatures & features) const;