]> git.lyx.org Git - lyx.git/blobdiff - src/ParagraphParameters.cpp
Fixed some lines that were too long. It compiled afterwards.
[lyx.git] / src / ParagraphParameters.cpp
index 14386641148c14a0c2e1b79c848c18bb68322887..afe57d6bd53d7f09bf292e1e3f32031724470262 100644 (file)
 
 #include "Buffer.h"
 #include "gettext.h"
-#include "LyXLayout.h"
+#include "Layout.h"
 #include "Lexer.h"
-#include "LyXText.h"
+#include "Text.h"
 #include "Paragraph.h"
-#include "tex-strings.h"
 
 #include "support/lstrings.h"
 
 #include <sstream>
 
-namespace lyx {
-
-using support::rtrim;
+using lyx::support::rtrim;
 
 using std::istringstream;
 using std::ostream;
@@ -38,6 +35,13 @@ using std::ostringstream;
 using std::string;
 
 
+namespace lyx {
+
+static char const * const string_align[] = {
+       "block", "left", "right", "center", ""
+};
+
+
 static int findToken(char const * const str[], string const & search_token)
 {
        return search_token == "default" ?
@@ -275,14 +279,11 @@ void params2string(Paragraph const & par, string & data)
        // This needs to be done separately
        params.labelWidthString(par.getLabelWidthString());
 
-       // Alignment
-       LyXLayout_ptr const & layout = par.layout();
-       if (params.align() == LYX_ALIGN_LAYOUT)
-               params.align(layout->align);
-
        ostringstream os;
        params.write(os);
 
+       Layout_ptr const & layout = par.layout();
+
        // Is alignment possible
        os << "\\alignpossible " << layout->alignpossible << '\n';