X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxgluelength.h;h=77c53ec0d37b52a9b1c1175e9e7275ec42aeebdd;hb=09e01879979643949f1f2c7216023f1f35d5ada2;hp=e392093cf0c094d1ffa8324898af117729adf16b;hpb=1120aa806c16aac6942760f244a1dbbe30c744be;p=lyx.git diff --git a/src/lyxgluelength.h b/src/lyxgluelength.h index e392093cf0..77c53ec0d3 100644 --- a/src/lyxgluelength.h +++ b/src/lyxgluelength.h @@ -11,17 +11,10 @@ #ifndef LYX_GLUE_LENGTH_H #define LYX_GLUE_LENGTH_H -#ifdef __GNUG__ -#pragma interface -#endif - #include "lyxlength.h" #include "LString.h" -class BufferParams; -class BufferView; - class LyXGlueLength { public: @@ -41,7 +34,7 @@ public: The traditional Latex format is also accepted, like 4cm plus 10pt minus 10pt */ explicit LyXGlueLength(string const & data); - + /// LyXLength const & len() const; /// @@ -55,11 +48,8 @@ public: /// string const asLatexString() const; - - /** If "data" is valid, the length represented by it is - stored into "result", if that is not 0. */ friend bool isValidGlueLength(string const & data, - LyXGlueLength* result = 0); + LyXGlueLength* result); private: /// the normal vlaue @@ -74,7 +64,8 @@ private: bool operator==(LyXGlueLength const & l1, LyXGlueLength const & l2); /// bool operator!=(LyXGlueLength const & l1, LyXGlueLength const & l2); -/// -bool isValidGlueLength(string const & data, LyXGlueLength * result); +/** 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); #endif // LYXGLUELENGTH_H