From 348bc2c59916c046b9ecec66095232941d680d1a Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Fri, 8 Feb 2008 16:14:24 +0000 Subject: [PATCH] Fix typo and remove unused code. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22862 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiParagraph.cpp | 18 ++++-------------- src/frontends/qt4/GuiParagraph.h | 2 +- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/src/frontends/qt4/GuiParagraph.cpp b/src/frontends/qt4/GuiParagraph.cpp index 4441736412..903a9ee76f 100644 --- a/src/frontends/qt4/GuiParagraph.cpp +++ b/src/frontends/qt4/GuiParagraph.cpp @@ -110,7 +110,7 @@ void GuiParagraph::checkAlignmentRadioButtons() LyXAlignment const align = it->first; it->second->setEnabled(align & alignPossible()); } - if (haveMulitParSelection()) + if (haveMultiParSelection()) alignDefaultRB->setText(alignDefaultLabel); else alignDefaultRB->setText(alignDefaultLabel + " (" @@ -281,7 +281,7 @@ void GuiParagraph::enableView(bool enable) ParagraphParameters & GuiParagraph::params() { - if (haveMulitParSelection()) { + if (haveMultiParSelection()) { multiparsel_ = ParagraphParameters(); // FIXME: It would be nice to initialise the parameters that // are common to all paragraphs. @@ -300,7 +300,7 @@ ParagraphParameters const & GuiParagraph::params() const void GuiParagraph::dispatchParams() { - if (haveMulitParSelection()) { + if (haveMultiParSelection()) { ostringstream data; multiparsel_.write(data); FuncRequest const fr(getLfun(), data.str()); @@ -313,7 +313,7 @@ void GuiParagraph::dispatchParams() } -bool GuiParagraph::haveMulitParSelection() +bool GuiParagraph::haveMultiParSelection() { Cursor cur = bufferview()->cursor(); return cur.selection() && cur.selBegin().pit() != cur.selEnd().pit(); @@ -341,16 +341,6 @@ LyXAlignment GuiParagraph::alignDefault() const Dialog * createGuiParagraph(GuiView & lv) { -#if 0 - GuiView & guiview = static_cast(lv); -#ifdef USE_DOCK_WIDGET - return new DockView(guiview, "paragraph", - Qt::TopDockWidgetArea); -#else - return new DialogView(guiview, "paragraph"); -#endif -#endif - return new GuiParagraph(lv); } diff --git a/src/frontends/qt4/GuiParagraph.h b/src/frontends/qt4/GuiParagraph.h index e2ab029666..f8dd3241e7 100644 --- a/src/frontends/qt4/GuiParagraph.h +++ b/src/frontends/qt4/GuiParagraph.h @@ -65,7 +65,7 @@ private: /// ParagraphParameters const & params() const; /// - bool haveMulitParSelection(); + bool haveMultiParSelection(); /// bool canIndent() const; /// -- 2.39.2