]> git.lyx.org Git - features.git/blobdiff - src/lyxgluelength.h
Replace LString.h with support/std_string.h,
[features.git] / src / lyxgluelength.h
index e07b0fa664d97d881fd09a4618cba9776b25c657..31adcf6213f36ef37c7715f73a5ceb33d18b91eb 100644 (file)
@@ -1,27 +1,22 @@
 // -*- C++ -*-
-/* This file is part of
- * ======================================================
+/**
+ * \file lyxgluelength.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- *           LyX, The Document Processor
- *     
- *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2001 The LyX Team.
+ * \author Lars Gullik Bjønnes
+ * \author Matthias Ettrich
+ * \author Jean-Marc Lasgouttes
  *
- * ====================================================== */
+ * Full author contact details are available in file CREDITS.
+ */
 
 #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;
+#include "support/std_string.h"
 
 
 class LyXGlueLength {
@@ -42,7 +37,7 @@ public:
          The traditional Latex format is also accepted, like
          4cm plus 10pt minus 10pt */
        explicit LyXGlueLength(string const & data);
-       
+
        ///
        LyXLength const & len() const;
        ///
@@ -56,11 +51,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
@@ -75,7 +67,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
+#endif // LYXGLUELENGTH_H