]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetInclude.h
Fix for bug 4135
[lyx.git] / src / insets / InsetInclude.h
index b1a4e48568fe6bd92a4c95f61611639a6ad1ff41..2f834d4aa6e78a90f546e3e61bdd549f3ef2c21b 100644 (file)
@@ -83,26 +83,23 @@ public:
        void read(Buffer const &, Lexer &);
        ///
        int latex(Buffer const &, odocstream &,
-                 OutputParams const &) const;
+                 OutputParams const &) const;
        ///
        int plaintext(Buffer const &, odocstream &,
-                     OutputParams const &) const;
+                     OutputParams const &) const;
        ///
        int docbook(Buffer const &, odocstream &,
-                   OutputParams const &) const;
+                   OutputParams const &) const;
        ///
        void validate(LaTeXFeatures &) const;
        ///
        void addPreview(graphics::PreviewLoader &) const;
        ///
-       void addToToc(TocList &, Buffer const &) const;
-       ///
-       void updateLabels(Buffer const & buffer) const;
+       void addToToc(TocList &, Buffer const &, ParConstIterator const &) const;
        ///
        bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
-       /// if this inset contains lstinputlisting and has a caption, 
-       /// update internal counter and passed counter
-       void updateCounter(Counters & counters);
+       ///
+       void updateLabels(Buffer const & buffer, ParIterator const &) const;
 protected:
        InsetInclude(InsetInclude const &);
        ///
@@ -137,7 +134,7 @@ private:
        /// cache
        mutable bool set_label_;
        mutable RenderButton button_;
-       int counter_;
+       mutable docstring listings_label_;
 };