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 &);
45 virtual std::auto_ptr<InsetBase> clone() const {
46 return std::auto_ptr<InsetBase>(new InsetRef(*this));
49 std::string const getScreenLabel(Buffer const &) const;
51 EDITABLE editable() const { return IS_EDITABLE; }
53 InsetOld::Code lyxCode() const { return InsetOld::REF_CODE; }
55 bool display() const { return false; }
57 int latex(Buffer const &, std::ostream &,
58 OutputParams const &) const;
60 int plaintext(Buffer const &, std::ostream &,
61 OutputParams const &) const;
63 int linuxdoc(Buffer const &, std::ostream &,
64 OutputParams const &) const;
66 int docbook(Buffer const &, std::ostream &,
67 OutputParams const &) const;
69 void validate(LaTeXFeatures & features) const;
74 priv_dispatch(FuncRequest const & cmd, idx_type &, pos_type &);