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 "command_inset.h"
19 class RefInset : public CommandInset {
24 explicit RefInset(string const & data);
26 virtual std::auto_ptr<InsetBase> clone() const;
28 //void write(WriteStream & os) const;
30 void infoize(std::ostream & os) const;
32 dispatch_result dispatch(FuncRequest const & cmd, idx_type & idx, pos_type & pos);
34 string const screenLabel() const;
36 void validate(LaTeXFeatures & features) const;
38 virtual RefInset * asRefInset() { return this; }
40 /// plain ascii output
41 int ascii(std::ostream & os, int) const;
43 int linuxdoc(std::ostream & os) const;
45 int docbook(std::ostream & os, bool) const;
47 /// small wrapper for the time being
48 dispatch_result localDispatch(FuncRequest const & cmd);
50 struct ref_type_info {
56 string short_gui_name;
58 static ref_type_info types[];
60 static int getType(string const & name);
62 static string const & getName(int type);