Fix typo and remove unused code.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22862 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-02-08 16:14:24 +00:00
parent 722023c413
commit 348bc2c599
2 changed files with 5 additions and 15 deletions

View File

@ -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<GuiView &>(lv);
#ifdef USE_DOCK_WIDGET
return new DockView<ControlParagraph, GuiParagraph>(guiview, "paragraph",
Qt::TopDockWidgetArea);
#else
return new DialogView<ControlParagraph, GuiParagraph>(guiview, "paragraph");
#endif
#endif
return new GuiParagraph(lv);
}

View File

@ -65,7 +65,7 @@ private:
///
ParagraphParameters const & params() const;
///
bool haveMulitParSelection();
bool haveMultiParSelection();
///
bool canIndent() const;
///