* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
- * \author Alfredo Braustein
+ * \author Alfredo Braunstein
* \author Lars Gullik Bjønnes
* \author John Levon
* \author André Pönitz
void BufferView::showErrorList(string const & action) const
{
if (getErrorList().size()) {
- string const title = bformat(_("LyX: %1$s errors (%2$s)"), action, buffer()->fileName());
+ string const title = bformat(_("LyX: %1$s errors (%2$s)"),
+ action, buffer()->fileName());
owner()->getDialogs().show("errorlist", title);
pimpl_->errorlist_.clear();
}
}
-ErrorList const &
-BufferView::getErrorList() const
+ErrorList const & BufferView::getErrorList() const
{
return pimpl_->errorlist_;
}
if (!available())
return;
- LyXText * tt = getLyXText();
+ LyXText * text = getLyXText();
- tt->replaceSelectionWithString(replacestring);
- tt->setSelectionRange(replacestring.length());
+ text->replaceSelectionWithString(replacestring);
+ text->setSelectionRange(replacestring.length());
// Go back so that replacement string is also spellchecked
for (string::size_type i = 0; i < replacestring.length() + 1; ++i)
- tt->cursorLeft(this);
+ text->cursorLeft(this);
// FIXME: should be done through LFUN
buffer()->markDirty();
// at the end of a row it does not count
// unless another hfill exists on the line
- if (pos >= lastPos(par, row))
+ if (pos >= lastPos(par, row)) {
for (pos_type i = row.pos(); i < pos && !par.isHfill(i); ++i)
return false;
+ }
// at the beginning of a row it does not count, if it is not
// the first row of a paragaph
int LyXText::getRealCursorX() const
{
int x = cursor.x();
- if (the_locking_inset && (the_locking_inset->getLyXText(bv())!= this))
+ if (the_locking_inset && the_locking_inset->getLyXText(bv()) != this)
x = the_locking_inset->getLyXText(bv())->getRealCursorX();
return x;
}
// There are some issues in this file and I don't think they are
// really related to the FIX_DOUBLE_SPACE patch. I'd rather think that
// this is a problem that has been here almost from day one and that a
-// larger userbase with differenct access patters triggers the bad
+// larger userbase with different access patters triggers the bad
// behaviour. (segfaults.) What I think happen is: In several places
// we store the paragraph in the current cursor and then moves the
// cursor. This movement of the cursor will delete paragraph at the