]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetListings.h
Make listings dialog translatable (mostly strings from InsetListingsParams), fix...
[lyx.git] / src / insets / InsetListings.h
index 1d02c7cd4fe6136421c6a78ec28c904f0620d0ae..af0676e4f4c93f0fa6a14bbd7db82b6d42f9e207 100644 (file)
@@ -33,7 +33,7 @@ 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"); }
        ///
@@ -47,6 +47,10 @@ public:
        ///
        void validate(LaTeXFeatures &) const;
        ///
+       bool metrics(MetricsInfo &, Dimension &) const;
+       ///
+       void draw(PainterInfo & pi, int x, int y) const;
+       ///
        bool showInsetDialog(BufferView *) const;
        ///
        void getDrawFont(Font &) const;
@@ -67,6 +71,8 @@ private:
        ///
        void setButtonLabel();
        ///
+       docstring getCaption(Buffer const &, OutputParams const &) const;
+       ///
        InsetListingsParams params_;
 };