From: Angus Leeming Date: Thu, 15 Mar 2001 10:22:41 +0000 (+0000) Subject: small changes to enable compilation once again of FormParagraph.C, X-Git-Tag: 1.6.10~21461 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=3285b16aec63d8bb64dbd03ce5663d9f978eaf30;p=features.git small changes to enable compilation once again of FormParagraph.C, associated with Lars' creation of a params struct. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1765 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/kde/ChangeLog b/src/frontends/kde/ChangeLog index 6eaca56be5..600d865075 100644 --- a/src/frontends/kde/ChangeLog +++ b/src/frontends/kde/ChangeLog @@ -1,3 +1,8 @@ +2001-03-15 Angus Leeming + + * FormParagraph.C: changes associated with Lars' creation of a + params struct, needed to get the class to compile once again. + 2001-02-26 John Levon * : remove noncopyable (now inherited from DialogBase) diff --git a/src/frontends/kde/FormParagraph.C b/src/frontends/kde/FormParagraph.C index 7bfa3b6ff1..12ae601390 100644 --- a/src/frontends/kde/FormParagraph.C +++ b/src/frontends/kde/FormParagraph.C @@ -76,20 +76,20 @@ void FormParagraph::update(bool switched) LyXParagraph const * physpar = par; #endif - if (physpar->added_space_top.kind() == VSpace::LENGTH) { - LyXGlueLength above = physpar->added_space_top.length(); + if (physpar->params.spaceTop().kind() == VSpace::LENGTH) { + LyXGlueLength above = physpar->params.spaceTop().length(); lyxerr[Debug::GUI] << "Reading above space : \"" - << physpar->added_space_top.length().asString() << "\"" << endl; + << physpar->params.spaceTop().length().asString() << "\"" << endl; dialog_->setAboveLength(above.value(), above.plusValue(), above.minusValue(), above.unit(), above.plusUnit(), above.minusUnit()); } else dialog_->setAboveLength(0.0, 0.0, 0.0, LyXLength::UNIT_NONE, LyXLength::UNIT_NONE, LyXLength::UNIT_NONE); - if (physpar->added_space_bottom.kind() == VSpace::LENGTH) { - LyXGlueLength below = physpar->added_space_bottom.length(); + if (physpar->params.spaceBottom().kind() == VSpace::LENGTH) { + LyXGlueLength below = physpar->params.spaceBottom().length(); lyxerr[Debug::GUI] << "Reading below space : \"" - << physpar->added_space_bottom.length().asString() << "\"" << endl; + << physpar->params.spaceBottom().length().asString() << "\"" << endl; dialog_->setBelowLength(below.value(), below.plusValue(), below.minusValue(), below.unit(), below.plusUnit(), below.minusUnit()); @@ -99,11 +99,16 @@ void FormParagraph::update(bool switched) dialog_->setLabelWidth(text->cursor.par()->GetLabelWidthString().c_str()); dialog_->setAlign(align); - dialog_->setChecks(physpar->line_top, physpar->line_bottom, - physpar->pagebreak_top, physpar->pagebreak_bottom, physpar->noindent); + dialog_->setChecks(physpar->params.lineTop(), + physpar->params.lineBottom(), + physpar->params.pagebreakTop(), + physpar->params.pagebreakBottom(), + physpar->params.noindent()); - dialog_->setSpace(physpar->added_space_top.kind(), physpar->added_space_bottom.kind(), - physpar->added_space_top.keep(), physpar->added_space_bottom.keep()); + dialog_->setSpace(physpar->params.spaceTop().kind(), + physpar->params.spaceBottom().kind(), + physpar->params.spaceTop().keep(), + physpar->params.spaceBottom().keep()); // now the extras page @@ -111,19 +116,20 @@ void FormParagraph::update(bool switched) float val = 0.0; LyXLength::UNIT unit = LyXLength::CM; - if (isValidLength(par->pextra_width, &extrawidth)) { + if (isValidLength(par->params.pextraWidth(), &extrawidth)) { lyxerr[Debug::GUI] << "Reading extra width \"" << extrawidth.asString() << "\"" << endl; val = extrawidth.value(); unit = extrawidth.unit(); } - lyxerr[Debug::GUI] << "Reading widthp \"" << par->pextra_widthp << "\"" << endl; + lyxerr[Debug::GUI] << "Reading widthp \"" << par->params.pextraWidthp() << "\"" << endl; - dialog_->setExtra(val, unit, par->pextra_widthp, - par->pextra_alignment, - par->pextra_hfill, - par->pextra_start_minipage, - static_cast(par->pextra_type)); + dialog_->setExtra(val, unit, par->params.pextraWidthp(), + par->params.pextraAlignment(), + par->params.pextraHfill(), + par->params.pextraStartMinipage(), + static_cast + (par->params.pextraType())); }