* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
- * \author Lars Gullik Bjønnes
+ * \author Lars Gullik Bjønnes
* \author Angus Leeming
* \author John Levon
- * \author André Pönitz
- * \author Jürgen Vigna
+ * \author André Pönitz
+ * \author Jürgen Vigna
*
* Full author contact details are available in file CREDITS.
*/
#include "ParagraphParameters.h"
-#include "Buffer.h"
-#include "support/gettext.h"
#include "Layout.h"
-#include "Lexer.h"
-#include "Text.h"
#include "Paragraph.h"
+#include "support/debug.h"
+#include "support/docstring.h"
+#include "support/Lexer.h"
#include "support/lstrings.h"
#include <sstream>
}
-void ParagraphParameters::read(string str, bool merge)
+void ParagraphParameters::read(string const & str, bool merge)
{
istringstream is(str);
Lexer lex;
void ParagraphParameters::apply(
- ParagraphParameters const & p, Layout const & layout)
+ ParagraphParameters const & params, Layout const & layout)
{
- spacing(p.spacing());
+ spacing(params.spacing());
// does the layout allow the new alignment?
- if (p.align() & layout.alignpossible)
- align(p.align());
- labelWidthString(p.labelWidthString());
- noindent(p.noindent());
+ if (params.align() & layout.alignpossible)
+ align(params.align());
+ labelWidthString(params.labelWidthString());
+ noindent(params.noindent());
}
}
+LyXErr & operator<<(LyXErr & os, ParagraphParameters const & parp) {
+ parp.write(os.stream());
+ return os;
+}
+
+
/*
bool operator==(ParagraphParameeters const & ps1,
ParagraphParameeters const & ps2)