]> git.lyx.org Git - lyx.git/blobdiff - src/lyxlength.h
LFUN_UNICODE_INSERT - unicode-insert
[lyx.git] / src / lyxlength.h
index 69d73a4c14fe4cbd7b74791ce0873bb837f78386..453cca12490146922c2144f54eb6496454c63c61 100644 (file)
 #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
 
 
 /**
@@ -82,6 +82,8 @@ public:
        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
@@ -116,4 +118,7 @@ bool isValidLength(std::string const & data, LyXLength * result = 0);
 /// return the LyX name of the given unit number
 char const * stringFromUnit(int unit);
 
+
+} // namespace lyx
+
 #endif // LYXLENGTH_H