]> git.lyx.org Git - lyx.git/blobdiff - src/Spacing.h
I'll find a solution for the 'dirList problem', Abdel.
[lyx.git] / src / Spacing.h
index 617ec9269e2d92e57bec69118705395de12b90a5..7761bbf9aa7c29027473ed845e118303407ba3a0 100644 (file)
 #ifndef SPACING_H
 #define SPACING_H
 
-#include <iosfwd>
+#ifdef TEX2LYX
+#include "tex2lyx/Spacing.h"
+#else
+
+#include "support/strfwd.h"
 #include <string>
 
 
+namespace lyx {
+
 ///
 class Spacing {
 public:
@@ -35,16 +41,11 @@ public:
        ///
        Spacing() : space(Default), value("1.0") {}
        ///
-       Spacing(Spacing::Space sp, double val = 1.0) {
-               set(sp, val);
-       }
-       Spacing(Spacing::Space sp, std::string const & val) {
-               set(sp, val);
-       }
+       Spacing(Spacing::Space sp, double val = 1.0) { set(sp, val); }
+       ///
+       Spacing(Spacing::Space sp, std::string const & val) { set(sp, val); }
        ///
-       bool isDefault() const {
-               return space == Default;
-       }
+       bool isDefault() const { return space == Default; }
        ///
        std::string const getValueAsString() const;
        ///
@@ -86,4 +87,8 @@ bool operator!=(Spacing const & a, Spacing const & b)
 {
        return !(a == b);
 }
-#endif
+
+} // namespace lyx
+
+#endif // TEX2LYX
+#endif // SPACING_H