]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetFloatList.cpp
This should be the last of the commits refactoring the InsetLayout code.
[lyx.git] / src / insets / InsetFloatList.cpp
index eafb61065650f017744e99bb3502ba2f705c2ad1..87e6bd2d343b412b9b68cc0c24508248f972ea4a 100644 (file)
 
 #include "Buffer.h"
 #include "BufferParams.h"
-#include "support/debug.h"
 #include "DispatchResult.h"
 #include "Floating.h"
 #include "FloatList.h"
 #include "FuncRequest.h"
-#include "support/gettext.h"
 #include "LaTeXFeatures.h"
 #include "Lexer.h"
 #include "MetricsInfo.h"
 #include "TocBackend.h"
 #include "TextClass.h"
 
+#include "support/debug.h"
+#include "support/gettext.h"
 #include "support/lstrings.h"
 
 #include <ostream>
 
+using namespace std;
+using namespace lyx::support;
 
 namespace lyx {
 
-using support::bformat;
-
-using std::string;
-
 
 InsetFloatList::InsetFloatList()
        : InsetCommand(InsetCommandParams(FLOAT_LIST_CODE), "toc")
@@ -50,7 +48,7 @@ InsetFloatList::InsetFloatList(string const & type)
 }
 
 
-CommandInfo const * InsetFloatList::findInfo(std::string const & /* cmdName */)
+CommandInfo const * InsetFloatList::findInfo(string const & /* cmdName */)
 {
        static const char * const paramnames[] = {"type", ""};
        static const bool isoptional[] = {false};
@@ -60,9 +58,9 @@ CommandInfo const * InsetFloatList::findInfo(std::string const & /* cmdName */)
 
 
 //HACK
-bool InsetFloatList::isCompatibleCommand(std::string const & s)
+bool InsetFloatList::isCompatibleCommand(string const & s)
 {
-       std::string str = s.substr(0, 6);
+       string str = s.substr(0, 6);
        return str == "listof";
 }
 
@@ -78,7 +76,7 @@ docstring const InsetFloatList::getScreenLabel(Buffer const & buf) const
 }
 
 
-void InsetFloatList::write(Buffer const &, std::ostream & os) const
+void InsetFloatList::write(Buffer const &, ostream & os) const
 {
        os << "FloatList " << to_ascii(getParam("type")) << "\n";
 }