]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetRef.h
Replace home made temp file creation with safer (and cleaner) Qt' solution. Should...
[lyx.git] / src / insets / InsetRef.h
index eab494474b1950f26ca8fa9e41ae08e23a1d7818..78ddbbdbeb44a6615c3e9d23efe0b0e26886c935 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;
        ///
@@ -65,17 +67,17 @@ public:
        ///
        void updateLabels(ParIterator const & it);
        ///
-       void addToToc(ParConstIterator const &) const;
+       void addToToc(DocIterator 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