#include <sstream>
-using lyx::docstring;
+
+namespace lyx {
using std::endl;
using std::ostringstream;
// if already exist give warning and return
if (cit != counterList.end()) {
lyxerr << "New counter already exists: "
- << lyx::to_utf8(newc)
+ << to_utf8(newc)
<< endl;
return;
}
// if already existant give warning and return
if (cit != counterList.end()) {
lyxerr << "New counter already exists: "
- << lyx::to_utf8(newc)
+ << to_utf8(newc)
<< endl;
return;
}
// if not give warning and return
if (it == counterList.end()) {
lyxerr << "Master counter does not exist: "
- << lyx::to_utf8(masterc)
+ << to_utf8(masterc)
<< endl;
return;
}
CounterList::iterator const it = counterList.find(ctr);
if (it == counterList.end()) {
lyxerr << "set: Counter does not exist: "
- << lyx::to_utf8(ctr) << endl;
+ << to_utf8(ctr) << endl;
return;
}
it->second.set(val);
CounterList::iterator const it = counterList.find(ctr);
if (it == counterList.end()) {
lyxerr << "addto: Counter does not exist: "
- << lyx::to_utf8(ctr) << endl;
+ << to_utf8(ctr) << endl;
return;
}
it->second.addto(val);
CounterList::const_iterator const cit = counterList.find(ctr);
if (cit == counterList.end()) {
lyxerr << "value: Counter does not exist: "
- << lyx::to_utf8(ctr) << endl;
+ << to_utf8(ctr) << endl;
return 0;
}
return cit->second.value();
CounterList::iterator it = counterList.find(ctr);
if (it == counterList.end()) {
lyxerr << "step: Counter does not exist: "
- << lyx::to_utf8(ctr) << endl;
+ << to_utf8(ctr) << endl;
return;
}
};
if (n < 1 || n > 20)
- return lyx::from_ascii("??");
- return lyx::from_ascii(roman[n - 1]);
+ return from_ascii("??");
+ return from_ascii(roman[n - 1]);
}
};
if (n < 1 || n > 20)
- return lyx::from_ascii("??");
- return lyx::from_ascii(roman[n - 1]);
+ return from_ascii("??");
+ return from_ascii(roman[n - 1]);
}
} // namespace anon
{
if (counterList.find(ctr) == counterList.end()) {
lyxerr << "Counter "
- << lyx::to_utf8(ctr)
+ << to_utf8(ctr)
<< " does not exist." << endl;
return docstring();
}
//lyxerr << "counterLabel: " << format << " -> " << label << endl;
return label;
}
+
+
+} // namespace lyx