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 InsetMathRef : public CommandInset {
26 InsetMathRef(Buffer * buf);
28 explicit InsetMathRef(Buffer * buf, docstring const & data);
30 void updateLabels(ParIterator const &, UpdateType);
32 //void write(WriteStream & os) const;
34 void infoize(odocstream & os) const;
36 docstring const screenLabel() const;
38 void validate(LaTeXFeatures & features) const;
40 void changeTarget(docstring const & target);
42 virtual InsetMathRef * asRefInset() { return this; }
45 int docbook(odocstream & os, OutputParams const &) const;
46 /// generate something that will be understood by the Dialogs.
47 std::string const createDialogStr(std::string const & name) const;
49 struct ref_type_info {
55 docstring short_gui_name;
57 static ref_type_info types[];
59 static int getType(docstring const & name);
61 static docstring const & getName(int type);
63 docstring const getTarget() const;
65 InsetCode lyxCode() const { return MATH_REF_CODE; }
69 virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
71 bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
74 virtual Inset * clone() const;