]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetFlex.cpp
Inset::addToToc(): change signature. Use DocIterator instead of ParConstIterator...
[lyx.git] / src / insets / InsetFlex.cpp
index 5a12abe25219ddd4599109eb0e004d41411e6024..1972f52295008016d09b6f3c6d007702bc90ae20 100644 (file)
 
 #include "Buffer.h"
 #include "BufferParams.h"
-#include "BufferView.h"
-#include "DispatchResult.h"
-#include "FuncRequest.h"
-#include "FuncStatus.h"
-#include "Cursor.h"
 #include "support/gettext.h"
 #include "LaTeXFeatures.h"
 #include "Lexer.h"
 #include "paragraph_funcs.h"
 #include "sgml.h"
 
-#include "support/convert.h"
-
-#include <sstream>
+#include <ostream>
 
 using namespace std;
 
 namespace lyx {
 
 
-InsetFlex::InsetFlex(Buffer const & buf,
-       DocumentClass * dc, string const & layoutName)
-       : InsetCollapsable(buf, Collapsed, dc),
-       name_(layoutName)
+InsetFlex::InsetFlex(Buffer const & buf, string const & layoutName)
+       : InsetCollapsable(buf, Collapsed), name_(layoutName)
 {
-       setLayout(dc); // again, because now the name is initialized
+       // again, because now the name is initialized
+       setLayout(buf.params().documentClassPtr());
        packages_ = getLayout().requires();
        preamble_ = getLayout().preamble();
 }