]> git.lyx.org Git - lyx.git/blobdiff - src/Spacing.h
small changes to ButtonController usage
[lyx.git] / src / Spacing.h
index 094d7d3d1c9fd14cb2241632c2c7fce2daa7bff9..120b14b97a875a06850acd39ee566ab6178e190a 100644 (file)
 #ifndef SPACING_H
 #define SPACING_H
 
+#ifdef __GNUG__
+#pragma interface
+#endif
+
 #include <iosfwd>
 
+#include "LString.h"
+
 ///
 class Spacing {
 public:
@@ -47,16 +53,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:
        ///