]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetInclude.h
* the old cursor is stored before dispatch and then used after moving
[lyx.git] / src / insets / InsetInclude.h
index fcbfb9526f9d9ce0db1700629f854e87de445573..873521592e0029eba0bd483603bfa28f6162321b 100644 (file)
@@ -16,6 +16,7 @@
 #include "InsetCommandParams.h"
 #include "RenderButton.h"
 #include "MailInset.h"
+#include "Counters.h"
 
 #include "support/FileName.h"
 
@@ -82,23 +83,26 @@ 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 addToToc(TocList &, Buffer const &, ParConstIterator &) const;
        ///
        void updateLabels(Buffer const & buffer) 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);
 protected:
        InsetInclude(InsetInclude const &);
        ///
@@ -133,6 +137,7 @@ private:
        /// cache
        mutable bool set_label_;
        mutable RenderButton button_;
+       int counter_;
 };