X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxlength.h;h=1fc9e6f79cfa594d2a9fa6a2f07b043528399a94;hb=ba62665f966508db5a4de6864f4aa7374c5a5356;hp=69d73a4c14fe4cbd7b74791ce0873bb837f78386;hpb=e1019394f811d0b85d0e30ca4d982df0c6ae29fd;p=lyx.git diff --git a/src/lyxlength.h b/src/lyxlength.h index 69d73a4c14..1fc9e6f79c 100644 --- a/src/lyxlength.h +++ b/src/lyxlength.h @@ -15,15 +15,14 @@ #ifndef LYX_LENGTH_H #define LYX_LENGTH_H -#include +#include "support/docstring.h" + + +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 +81,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 +117,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