]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetText.cpp
Embedding: merge lyx::EmbeddedFiles to lyx::support::EmbeddedFileList
[lyx.git] / src / insets / InsetText.cpp
index 18c8c9543aaf58ddda4f9b576be7a2f8f0939992..9369555c58ea3769342aeb09f148f5999eebffc1 100644 (file)
 #include <boost/bind.hpp>
 #include <boost/assert.hpp>
 
-
-namespace lyx {
-
-using graphics::PreviewLoader;
-
-using support::isStrUnsignedInt;
+using namespace std;
+using namespace lyx::support;
 
 using boost::bind;
 using boost::ref;
 
-using std::endl;
-using std::for_each;
-using std::max;
-using std::string;
-using std::ostream;
-using std::vector;
+namespace lyx {
+
+using graphics::PreviewLoader;
 
 
 InsetText::InsetText(BufferParams const & bp)
@@ -387,7 +380,7 @@ void InsetText::appendParagraphs(Buffer * buffer, ParagraphList & plist)
        ParagraphList::iterator ins = pl.insert(pl.end(), *pit);
        ++pit;
        mergeParagraph(buffer->params(), pl,
-                      std::distance(pl.begin(), ins) - 1);
+                      distance(pl.begin(), ins) - 1);
 
        for_each(pit, plist.end(),
                 bind(&ParagraphList::push_back, ref(pl), _1));