]> git.lyx.org Git - lyx.git/blobdiff - src/Spacing.C
small changes to ButtonController usage
[lyx.git] / src / Spacing.C
index 746ee33f43838c5d42e5b6c2ae57014935c586c8..d34c163e770b611f569da15bcca109de435203fb 100644 (file)
@@ -1,5 +1,18 @@
+/* This file is part of
+ * ====================================================== 
+ * 
+ *           LyX, The Document Processor
+ *        
+ *           Copyright 1995 Matthias Ettrich
+ *           Copyright 1995-2000 The LyX Team.
+ *
+ * ====================================================== */
+
 #include <config.h>
 
+#ifdef __GNUG__
+#pragma implementation
+#endif
 
 #ifdef HAVE_SSTREAM
 #include <sstream>
@@ -83,13 +96,10 @@ string Spacing::writeEnvirBegin() const
        case Default: break; // do nothing
        case Single:
                return "\\begin{singlespace}";
-               break;
        case Onehalf:
                return "\\begin{onehalfspace}";
-               break;
        case Double:
                return "\\begin{doublespace}";
-               break;
        case Other:
 #ifdef HAVE_SSTREAM
                ostringstream ost;
@@ -105,7 +115,6 @@ string Spacing::writeEnvirBegin() const
                        return ost.str();
                }
 #endif
-               break;
        }
        return string();
 }
@@ -117,16 +126,12 @@ string Spacing::writeEnvirEnd() const
        case Default: break; // do nothing
        case Single:
                return "\\end{singlespace}";
-               break;
        case Onehalf:
                return "\\end{onehalfspace}";
-               break;
        case Double:
                return "\\end{doublespace}";
-               break;
        case Other:
                return "\\end{spacing}";
-               break;
        }
        return string();
 }