X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FParagraphParameters.cpp;h=1152c6ab968855b4764c5d1ddff5b043d43cdabe;hb=c7d29be153debac82e3d2e8865fcc849f0a5f40d;hp=d0d4b261278f61fa21450865f68a4b600eacaf79;hpb=7c392af6eab5e06a4836146859cbd9f2c3764420;p=lyx.git diff --git a/src/ParagraphParameters.cpp b/src/ParagraphParameters.cpp index d0d4b26127..1152c6ab96 100644 --- a/src/ParagraphParameters.cpp +++ b/src/ParagraphParameters.cpp @@ -3,11 +3,11 @@ * 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. */ @@ -172,7 +172,7 @@ void ParagraphParameters::leftIndent(Length const & li) void ParagraphParameters::read(string str, bool merge) { istringstream is(str); - Lexer lex(0, 0); + Lexer lex; lex.setStream(is); read(lex, merge); } @@ -256,15 +256,6 @@ void ParagraphParameters::apply( } -//FIXME This needs to be made a real method, so that getStatus() -//can return sensible information. -bool ParagraphParameters::canApply( - ParagraphParameters const & /*params*/, Layout const & /*layout*/) -{ - return true; -} - - void ParagraphParameters::write(ostream & os) const { // Maybe the paragraph has special spacing @@ -312,13 +303,13 @@ void params2string(Paragraph const & par, string & data) ostringstream os; params.write(os); - LayoutPtr const & layout = par.layout(); + Layout const & layout = par.layout(); // Is alignment possible - os << "\\alignpossible " << layout->alignpossible << '\n'; + os << "\\alignpossible " << layout.alignpossible << '\n'; /// set default alignment - os << "\\aligndefault " << layout->align << '\n'; + os << "\\aligndefault " << layout.align << '\n'; /// paragraph is always in inset. This is redundant. os << "\\ininset " << 1 << '\n';