]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetRef.h
Cleanup mouse/selection/context-menu interactions.
[lyx.git] / src / insets / InsetRef.h
index 9bc8d44641021766304b899386dd8b0327b2e1a9..1af31fa3f808d904b3fe7e8d55349bc436cbcf0f 100644 (file)
@@ -36,8 +36,10 @@ public:
        static std::string const & getName(int type);
 
 
-       InsetRef(InsetCommandParams const &, Buffer const &);
+       InsetRef(Buffer const & buffer, InsetCommandParams const &);
 
+       ///
+       bool isLabeled() const { return true; }
        ///
        docstring screenLabel() const;
        ///
@@ -63,17 +65,19 @@ public:
        ///
        static bool isCompatibleCommand(std::string const & s);
        ///
+       void updateLabels(ParIterator const & it);
+       ///
        void addToToc(ParConstIterator const &) const;
 protected:
        ///
        InsetRef(InsetRef const &);
-       ///
-       void doDispatch(Cursor & cur, FuncRequest & cmd);
 private:
        ///
        Inset * clone() const { return new InsetRef(*this); }
        ///
        bool isLatex;
+       ///
+       mutable docstring screen_label_;
 };
 
 } // namespace lyx