X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathRef.h;h=d1046d9aba8b1d1ba3545c73a47019c8d3e7dee8;hb=a68e5b777487b495feeefa53700834ecec6ec196;hp=7b788c78145cdda6d94153cbcc06f63a4479e16a;hpb=ff4460603e3888948b46f0ab5bfa69a862d538ad;p=lyx.git diff --git a/src/mathed/InsetMathRef.h b/src/mathed/InsetMathRef.h index 7b788c7814..d1046d9aba 100644 --- a/src/mathed/InsetMathRef.h +++ b/src/mathed/InsetMathRef.h @@ -13,34 +13,44 @@ #define REF_INSET_H -#include "CommandInset.h" +#include "InsetMathCommand.h" namespace lyx { class Buffer; // for \ref -class InsetMathRef : public CommandInset { +class InsetMathRef : public InsetMathCommand { public: /// InsetMathRef(Buffer * buf); /// 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 { /// @@ -56,6 +66,8 @@ public: /// static docstring const & getName(int type); /// + docstring const getTarget() const; + /// InsetCode lyxCode() const { return MATH_REF_CODE; } protected: