#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());
}