]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathRef.h
Display equation/theorem numbers in insert cross reference dialog.
[lyx.git] / src / mathed / InsetMathRef.h
index acbe47b84dbf58dd12ab252ef2f88738ac819acb..6d7f0a10cf99341590871073810d24909a5bc7fa 100644 (file)
@@ -29,10 +29,16 @@ public:
        ///
        void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false) override;
        ///
-       //void write(TeXMathStream & os) const override;
+       void write(TeXMathStream & os) const override;
        ///
        void infoize(odocstream & os) const override;
        ///
+       bool hasSettings() const override { return true; }
+       ///
+       bool clickable(BufferView const &, int, int) const override { return true; }
+       ///
+       std::string contextMenuName() const override { return "context-mathref"; }
+       ///
        mode_type currentMode() const override { return TEXT_MODE; }
        ///
        bool lockedMode() const override { return true; }
@@ -50,7 +56,7 @@ public:
        /// docbook output
        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,10 +68,6 @@ 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 override { return MATH_REF_CODE; }