]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetScript.h
Simplify preamble code when using listings
[lyx.git] / src / insets / InsetScript.h
index c9ac1d30e0abebfa3c50c326587586c068242df4..3107b6255dd24c28a837bd42dc5f7d463f875204 100644 (file)
@@ -65,7 +65,7 @@ public:
        ///
        InsetCode lyxCode() const { return SCRIPT_CODE; }
        ///
-       docstring name() const;
+       docstring layoutName() const;
        ///
        DisplayType display() const;
        ///
@@ -80,22 +80,19 @@ public:
        ///
        void read(Lexer & lex);
        ///
-       bool neverIndent() const { return true; }
-       ///
        bool forcePlainLayout(idx_type = 0) const { return true; }
        ///
        bool allowParagraphCustomization(idx_type = 0) const { return false; }
        ///
-       virtual void validate(LaTeXFeatures &) const;
+       bool neverIndent() const { return true; }
        ///
-       int latex(otexstream &, OutputParams const &) const;
+       bool inheritFont() const { return false; }
        ///
-       int plaintext(odocstream &, OutputParams const &) const;
+       int plaintext(odocstringstream & ods, OutputParams const & op,
+                     size_t max_length = INT_MAX) const;
        ///
        int docbook(odocstream &, OutputParams const &) const;
        ///
-       docstring xhtml(XHTMLStream &, OutputParams const &) const;
-       ///
        void edit(Cursor & cur, bool front,
                  EntryDirection entry_from = ENTRY_DIRECTION_IGNORE);
        ///
@@ -109,7 +106,7 @@ public:
        ///
        Inset * clone() const { return new InsetScript(*this); }
        ///
-       docstring contextMenuName() const;
+       std::string contextMenuName() const;
        //@}
 
        /// \name Public functions inherited from InsetText class