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 "CommandInset.h"
23 class RefInset : public CommandInset {
28 explicit RefInset(docstring const & data);
30 //void write(WriteStream & os) const;
32 void infoize(odocstream & os) const;
34 docstring const screenLabel() const;
36 void validate(LaTeXFeatures & features) const;
38 virtual RefInset * asRefInset() { return this; }
41 int docbook(Buffer const & buf, odocstream & os, OutputParams const &) const;
42 /// generate something that will be understood by the Dialogs.
43 std::string const createDialogStr(std::string const & name) const;
45 struct ref_type_info {
51 docstring short_gui_name;
53 static ref_type_info types[];
55 static int getType(docstring const & name);
57 static docstring const & getName(int type);
60 virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
62 bool getStatus(LCursor &, FuncRequest const &, FuncStatus &) const;
65 virtual std::auto_ptr<InsetBase> doClone() const;