]> 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 1d02c7cd4fe6136421c6a78ec28c904f0620d0ae..9f39653a6360710262900441c1f1200e58fbbaff 100644 (file)
@@ -33,9 +33,11 @@ public:
        ///
        Inset::Code lyxCode() const { return Inset::LISTINGS_CODE; }
        /// lstinline is inlined, normal listing is displayed
-       virtual bool display() const;
+       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,6 +49,10 @@ public:
        ///
        void validate(LaTeXFeatures &) const;
        ///
+       void metrics(MetricsInfo &, Dimension &) const;
+       ///
+       void draw(PainterInfo & pi, int x, int y) const;
+       ///
        bool showInsetDialog(BufferView *) const;
        ///
        void getDrawFont(Font &) const;
@@ -61,12 +67,14 @@ protected:
        ///
        bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
 private:
-       virtual std::auto_ptr<Inset> doClone() const;
+       virtual Inset * clone() const;
        ///
        void init();
        ///
        void setButtonLabel();
        ///
+       docstring getCaption(Buffer const &, OutputParams const &) const;
+       ///
        InsetListingsParams params_;
 };