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 "InsetMathCommand.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;
43 struct ref_type_info {
49 docstring short_gui_name;
51 static ref_type_info types[];
53 static int getType(docstring const & name);
55 static docstring const & getName(int type);
58 virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
60 bool getStatus(LCursor &, FuncRequest const &, FuncStatus &) const;
63 virtual std::auto_ptr<InsetBase> doClone() const;