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 mode_type currentMode() const { return TEXT_MODE; }
38 bool lockedMode() const { return true; }
40 bool asciiOnly() const { return true; }
42 docstring const screenLabel() const;
44 void validate(LaTeXFeatures & features) const;
46 void changeTarget(docstring const & target);
48 virtual InsetMathRef * asRefInset() { return this; }
51 int docbook(odocstream & os, OutputParams const &) const;
52 /// generate something that will be understood by the Dialogs.
53 std::string const createDialogStr(std::string const & name) const;
55 struct ref_type_info {
61 docstring short_gui_name;
63 static ref_type_info types[];
65 static int getType(docstring const & name);
67 static docstring const & getName(int type);
69 docstring const getTarget() const;
71 InsetCode lyxCode() const { return MATH_REF_CODE; }
75 virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
77 bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
80 virtual Inset * clone() const;