#ifndef LYX_LENGTH_H
#define LYX_LENGTH_H
+#include "support/docstring.h"
#include <string>
+
+namespace lyx {
+
// Solaris/x86 version 9 and earlier define these
-#ifdef PC
-# undef PC
-#endif
-#ifdef SP
-# undef SP
-#endif
+#undef PC
+#undef SP
/**
bool empty() const;
/// return string representation
std::string const asString() const;
+ /// return string representation
+ docstring const asDocstring() const;
/// return string representation for LaTeX
std::string const asLatexString() const;
/// return the on-screen size of this length
/// return the LyX name of the given unit number
char const * stringFromUnit(int unit);
+
+} // namespace lyx
+
#endif // LYXLENGTH_H