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 InsetMathRef : public InsetMathCommand {
26 explicit InsetMathRef(Buffer * buf);
28 explicit InsetMathRef(Buffer * buf, docstring const & data);
30 void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false) override;
32 void write(TeXMathStream & os) const override;
34 void infoize(odocstream & os) const override;
36 mode_type currentMode() const override { return TEXT_MODE; }
38 bool lockedMode() const override { return true; }
40 bool asciiOnly() const override { return true; }
42 docstring const screenLabel() const override;
44 void validate(LaTeXFeatures & features) const override;
46 void changeTarget(docstring const & target);
48 InsetMathRef * asRefInset() override { return this; }
51 void docbook(XMLStream &, OutputParams const &) const override;
52 /// generate something that will be understood by the Dialogs.
53 std::string const createDialogStr() const;
55 struct ref_type_info {
61 docstring short_gui_name;
63 static ref_type_info types[];
65 docstring const getTarget() const;
67 InsetCode lyxCode() const override { return MATH_REF_CODE; }
71 void doDispatch(Cursor & cur, FuncRequest & cmd) override;
73 bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const override;
76 Inset * clone() const override;