X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathRef.h;h=8011f9452cafed71cc3afe435891d573f5b18541;hb=ecbd047cffa1c4af95cf4ab91a7d2fded4a5584c;hp=da324522b9de9e8be4a5531331dacb86976d57e4;hpb=f1cba8ff64b369792fd49f5ddf90e8126ab476ac;p=lyx.git diff --git a/src/mathed/InsetMathRef.h b/src/mathed/InsetMathRef.h index da324522b9..8011f9452c 100644 --- a/src/mathed/InsetMathRef.h +++ b/src/mathed/InsetMathRef.h @@ -23,24 +23,34 @@ class Buffer; class InsetMathRef : public CommandInset { public: /// - InsetMathRef(); + InsetMathRef(Buffer * buf); /// - explicit InsetMathRef(docstring const & data); + explicit InsetMathRef(Buffer * buf, docstring const & data); + /// + void updateBuffer(ParIterator const &, UpdateType); /// //void write(WriteStream & os) const; /// void infoize(odocstream & os) const; /// + mode_type currentMode() const { return TEXT_MODE; } + /// + bool lockedMode() const { return true; } + /// + bool asciiOnly() const { return true; } + /// docstring const screenLabel() const; /// void validate(LaTeXFeatures & features) const; /// + void changeTarget(docstring const & target); + /// virtual InsetMathRef * asRefInset() { return this; } /// docbook output int docbook(odocstream & os, OutputParams const &) const; /// generate something that will be understood by the Dialogs. - std::string const createDialogStr(std::string const & name) const; + std::string const createDialogStr() const; struct ref_type_info { /// @@ -55,6 +65,11 @@ public: static int getType(docstring const & name); /// static docstring const & getName(int type); + /// + docstring const getTarget() const; + /// + InsetCode lyxCode() const { return MATH_REF_CODE; } + protected: /// virtual void doDispatch(Cursor & cur, FuncRequest & cmd);