]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetFlex.h
Stupid bug fix.
[lyx.git] / src / insets / InsetFlex.h
index a246c1400ba8e590ebd8eca1d919d94480d3a0ba..2fdc43ccb0065238c14093ff8dbfc3a99008c39b 100644 (file)
 
 #include "InsetCollapsable.h"
 
-using std::string;
-
 namespace lyx {
 
-
 /** The Flex inset, e.g., CharStyle, Custom inset or XML short element
 
 */
 class InsetFlex : public InsetCollapsable {
 public:
        ///
-       InsetFlex(BufferParams const &,TextClassPtr tc, 
-                       string const & layoutName);
+       InsetFlex(Buffer const &, std::string const & layoutName);
        ///
        docstring name() const { return from_utf8(name_); }
 
@@ -40,7 +36,7 @@ public:
        ///
        void read(Lexer & lex);
        ///
-       virtual bool allowParagraphCustomization(idx_type) const { return false; }
+       virtual bool allowParagraphCustomization(idx_type = 0) const { return false; }
 
        ///
        int plaintext(odocstream &, OutputParams const &) const;
@@ -58,14 +54,10 @@ protected:
        InsetFlex(InsetFlex const &);
 
 private:
-       virtual Inset * clone() const;
+       Inset * clone() const { return new InsetFlex(*this); }
 
        ///
        std::string name_;
-       ///
-       std::set<std::string> packages_;
-       ///
-       std::string preamble_;
 };