#include "TocModel.h"
-#include "debug.h"
+#include "support/debug.h"
#include <boost/assert.hpp>
+#include <climits>
-using std::endl;
-using std::map;
-using std::max;
-using std::min;
+using namespace std;
namespace lyx {
namespace frontend {
toc_map_.insert( TocPair(top_level_item, iter) );
model_map_[iter] = top_level_item;
- LYXERR(Debug::GUI)
- << "Toc: at depth " << iter->depth()
- << ", added item " << to_utf8(iter->str())
- << endl;
+ LYXERR(Debug::GUI, "Toc: at depth " << iter->depth()
+ << ", added item " << to_utf8(iter->str()));
populate(iter, end, top_level_item);