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 {
26 std::string latex_name;
30 std::string short_gui_name;
32 static type_info types[];
34 static int getType(std::string const & name);
36 static std::string const & getName(int type);
39 InsetRef(InsetCommandParams const &, Buffer const &);
41 InsetRef(InsetRef const &);
44 virtual std::auto_ptr<InsetBase> clone() const {
45 return std::auto_ptr<InsetBase>(new InsetRef(*this));
48 std::string const getScreenLabel(Buffer const &) const;
50 EDITABLE editable() const { return IS_EDITABLE; }
52 InsetOld::Code lyxCode() const { return InsetOld::REF_CODE; }
54 bool display() const { return false; }
56 int latex(Buffer const &, std::ostream &,
57 OutputParams const &) const;
59 int plaintext(Buffer const &, std::ostream &,
60 OutputParams const &) const;
62 int linuxdoc(Buffer const &, std::ostream &,
63 OutputParams const &) const;
65 int docbook(Buffer const &, std::ostream &,
66 OutputParams const &) const;
68 void validate(LaTeXFeatures & features) const;
73 priv_dispatch(BufferView & bv, FuncRequest const & cmd);