#include <string>
+
+namespace lyx {
+
using lyx::docstring;
using boost::lexical_cast;
}
+template<>
+docstring convert<docstring>(unsigned long ul)
+{
+ return lyx::from_ascii(lexical_cast<string>(ul));
+}
+
+
template<>
string convert<string>(long l)
{
}
+template<>
+int convert<int>(docstring const s)
+{
+ return strtol(lyx::to_ascii(s).c_str(), 0, 10);
+}
+
+
template<>
unsigned int convert<unsigned int>(string const s)
{
{
return strtod(cptr, 0);
}
+
+
+} // namespace lyx