]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetRef.h
Change inset label from ": filename" to "Program Listing: filename" for listings...
[lyx.git] / src / insets / InsetRef.h
index 9ba7895d86bb624aed5db59f2ee0e0a72e72da6d..78ddbbdbeb44a6615c3e9d23efe0b0e26886c935 100644 (file)
@@ -36,13 +36,10 @@ public:
        static std::string const & getName(int type);
 
 
-       InsetRef(InsetCommandParams const &, Buffer const &);
+       InsetRef(Buffer const & buffer, InsetCommandParams const &);
 
-       /// verify label and reference.
-       /**
-         * Overloaded from Inset::initView.
-         **/
-       void initView();
+       ///
+       bool isLabeled() const { return true; }
        ///
        docstring screenLabel() const;
        ///
@@ -70,12 +67,10 @@ 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); }