X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathRef.h;h=8011f9452cafed71cc3afe435891d573f5b18541;hb=31cd421bcd26647cb7edbb694b05473271fe9153;hp=fb208d9b969494137d63d707b43610b9815e2260;hpb=d30304cf84533e85e8f1dc312f90dbc9c53f8b95;p=lyx.git diff --git a/src/mathed/InsetMathRef.h b/src/mathed/InsetMathRef.h index fb208d9b96..8011f9452c 100644 --- a/src/mathed/InsetMathRef.h +++ b/src/mathed/InsetMathRef.h @@ -4,7 +4,7 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author André Pönitz + * \author André Pönitz * * Full author contact details are available in file CREDITS. */ @@ -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(Buffer const & buf, odocstream & os, OutputParams const &) const; + 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); @@ -62,7 +77,7 @@ protected: bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const; private: /// - virtual std::auto_ptr doClone() const; + virtual Inset * clone() const; };