X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathRef.h;h=6d7f0a10cf99341590871073810d24909a5bc7fa;hb=c609e9cbcf;hp=1f5e0b8bb8327d8aee6388d3470635918faf5cb7;hpb=3883b85f49054c109cb8a9a293721a5e41edb68d;p=lyx.git diff --git a/src/mathed/InsetMathRef.h b/src/mathed/InsetMathRef.h index 1f5e0b8bb8..6d7f0a10cf 100644 --- a/src/mathed/InsetMathRef.h +++ b/src/mathed/InsetMathRef.h @@ -27,30 +27,36 @@ public: /// explicit InsetMathRef(Buffer * buf, docstring const & data); /// - void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false); + void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false) override; /// - //void write(WriteStream & os) const; + void write(TeXMathStream & os) const override; /// - void infoize(odocstream & os) const; + void infoize(odocstream & os) const override; /// - mode_type currentMode() const { return TEXT_MODE; } + bool hasSettings() const override { return true; } /// - bool lockedMode() const { return true; } + bool clickable(BufferView const &, int, int) const override { return true; } /// - bool asciiOnly() const { return true; } + std::string contextMenuName() const override { return "context-mathref"; } /// - docstring const screenLabel() const; + mode_type currentMode() const override { return TEXT_MODE; } /// - void validate(LaTeXFeatures & features) const; + bool lockedMode() const override { return true; } + /// + bool asciiOnly() const override { return true; } + /// + docstring const screenLabel() const override; + /// + void validate(LaTeXFeatures & features) const override; /// void changeTarget(docstring const & target); /// - virtual InsetMathRef * asRefInset() { return this; } + InsetMathRef * asRefInset() override { return this; } /// docbook output - void docbook(XMLStream &, OutputParams const &) const; + void docbook(XMLStream &, OutputParams const &) const override; /// generate something that will be understood by the Dialogs. - std::string const createDialogStr() const; + std::string const createDialogStr(std::string const & type = std::string()) const; struct ref_type_info { /// @@ -62,22 +68,18 @@ public: }; static ref_type_info types[]; /// - static int getType(docstring const & name); - /// - static docstring const & getName(int type); - /// docstring const getTarget() const; /// - InsetCode lyxCode() const { return MATH_REF_CODE; } + InsetCode lyxCode() const override { return MATH_REF_CODE; } protected: /// - virtual void doDispatch(Cursor & cur, FuncRequest & cmd); + void doDispatch(Cursor & cur, FuncRequest & cmd) override; /// - bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const; + bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const override; private: /// - virtual Inset * clone() const; + Inset * clone() const override; };