#include "lyxlength.h"
-#include "support/std_string.h"
+
+namespace lyx {
class LyXGlueLength {
1.2 cm // 4mm +2pt // 2cm -4mm +2mm // 4+0.1-0.2cm
The traditional Latex format is also accepted, like
4cm plus 10pt minus 10pt */
- explicit LyXGlueLength(string const & data);
+ explicit LyXGlueLength(std::string const & data);
///
LyXLength const & len() const;
/// conversion
- string const asString() const;
+ std::string const asString() const;
///
- string const asLatexString() const;
+ std::string const asLatexString() const;
- friend bool isValidGlueLength(string const & data,
+ friend bool isValidGlueLength(std::string const & data,
LyXGlueLength* result);
private:
bool operator!=(LyXGlueLength const & l1, LyXGlueLength const & l2);
/** If "data" is valid, the length represented by it is
stored into "result", if that is not 0. */
-bool isValidGlueLength(string const & data, LyXGlueLength * result = 0);
+bool isValidGlueLength(std::string const & data, LyXGlueLength * result = 0);
+
+
+} // namespace lyx
#endif // LYXGLUELENGTH_H