]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetFlex.h
Change string
[lyx.git] / src / insets / InsetFlex.h
index 99418de10446aa6917bf7c99387cedd37d37327d..5546acf215991b64e2d80ca1be69d2502e29adc3 100644 (file)
@@ -23,7 +23,7 @@ namespace lyx {
 class InsetFlex : public InsetCollapsable {
 public:
        ///
-       InsetFlex(BufferParams const &,TextClassPtr tc, 
+       InsetFlex(Buffer const &, DocumentClass * dc, 
                        std::string const & layoutName);
        ///
        docstring name() const { return from_utf8(name_); }
@@ -37,7 +37,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;
@@ -55,7 +55,7 @@ protected:
        InsetFlex(InsetFlex const &);
 
 private:
-       virtual Inset * clone() const;
+       Inset * clone() const { return new InsetFlex(*this); }
 
        ///
        std::string name_;