#include "Lexer.h"
#include "Paragraph.h"
#include "ParagraphList.h"
+#include "TextClass.h"
#include "support/lstrings.h"
-#include "support/std_ostream.h"
#include "support/docstream.h"
#include "support/convert.h"
+#include <ostream>
+
+using namespace std;
+using namespace lyx::support;
namespace lyx {
}
-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};
{
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);
}
}
BiblioInfo & keys, InsetIterator const & it) const
{
docstring const key = getParam("key");
- BibTeXInfo keyvalmap;
+ BibTeXInfo keyvalmap(false);
keyvalmap[from_ascii("label")] = getParam("label");
DocIterator doc_it(it);
doc_it.forwardPos();
keyvalmap[from_ascii("ref")] = doc_it.paragraph().asString(buf, false);
- keyvalmap.isBibTeX = false;
keys[key] = keyvalmap;
}