]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBibitem.cpp
Embedding: merge lyx::EmbeddedFiles to lyx::support::EmbeddedFileList
[lyx.git] / src / insets / InsetBibitem.cpp
index 310cec9b2c8ca56cce5e48f2395fa0cd85049cb3..db5bc53e4ec9ec8d454f9db54390529e92d56a0e 100644 (file)
@@ -23,6 +23,7 @@
 #include "Lexer.h"
 #include "Paragraph.h"
 #include "ParagraphList.h"
+#include "TextClass.h"
 
 #include "support/lstrings.h"
 #include "support/docstream.h"
@@ -30,6 +31,9 @@
 
 #include <ostream>
 
+using namespace std;
+using namespace lyx::support;
+
 namespace lyx {
 
 
@@ -47,7 +51,7 @@ InsetBibitem::InsetBibitem(InsetCommandParams const & p)
 }
 
 
-CommandInfo const * InsetBibitem::findInfo(std::string const & /* cmdName */)
+CommandInfo const * InsetBibitem::findInfo(string const & /* cmdName */)
 {
        static const char * const paramnames[] = {"label", "key", ""};
        static const bool isoptional[] = {true, false};
@@ -92,9 +96,9 @@ void InsetBibitem::read(Buffer const & buf, Lexer & lex)
 {
        InsetCommand::read(buf, lex);
 
-       if (support::prefixIs(getParam("key"), key_prefix)) {
+       if (prefixIs(getParam("key"), key_prefix)) {
                int const key = convert<int>(getParam("key").substr(key_prefix.length()));
-               key_counter = std::max(key_counter, key);
+               key_counter = max(key_counter, key);
        }
 }