]> git.lyx.org Git - lyx.git/blobdiff - src/Spacing.h
more changes, read the Changelog
[lyx.git] / src / Spacing.h
index 094d7d3d1c9fd14cb2241632c2c7fce2daa7bff9..8d466864a24dfa1a42d6d42e6ba8fbfa94abb652 100644 (file)
@@ -14,6 +14,8 @@
 
 #include <iosfwd>
 
+#include "LString.h"
+
 ///
 class Spacing {
 public:
@@ -47,16 +49,16 @@ public:
        ///
        void writeFile(std::ostream &, bool para = false) const;
        ///
+       string writeEnvirBegin() const;
+       ///
+       string writeEnvirEnd() const;
+       ///
        friend bool operator==(Spacing const & a, Spacing const & b) {
-               if (a.space == b.space && a.getValue() == b.getValue())
-                       return true;
-               return false;
+               return a.space == b.space && a.getValue() == b.getValue();
        }
        ///
        friend bool operator!=(Spacing const & a, Spacing const & b) {
-               if (a.space == b.space && a.getValue() == b.getValue())
-                       return false;
-               return true;
+               return !(a == b);
        }
 private:
        ///