]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetListings.h
* src/paragraph_funcs.cpp (breakParagraph): change parameter 'flag' to
[lyx.git] / src / insets / InsetListings.h
index af0676e4f4c93f0fa6a14bbd7db82b6d42f9e207..9f39653a6360710262900441c1f1200e58fbbaff 100644 (file)
@@ -36,6 +36,8 @@ public:
        virtual DisplayType display() const;
        ///
        docstring name() const { return from_ascii("Listings"); }
+       // Update the counters of this inset and of its contents
+       virtual void updateLabels(Buffer const &, ParIterator const &);
        ///
        void write(Buffer const & buf, std::ostream & os) const;
        ///
@@ -47,7 +49,7 @@ public:
        ///
        void validate(LaTeXFeatures &) const;
        ///
-       bool metrics(MetricsInfo &, Dimension &) const;
+       void metrics(MetricsInfo &, Dimension &) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
@@ -65,7 +67,7 @@ protected:
        ///
        bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
 private:
-       virtual std::auto_ptr<Inset> doClone() const;
+       virtual Inset * clone() const;
        ///
        void init();
        ///