Whitespace.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33391 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-02-09 16:30:12 +00:00
parent d5432aa11e
commit 1cc2d538e7

View File

@ -1231,22 +1231,22 @@ void GuiApplication::dispatch(FuncRequest const & cmd, DispatchResult & dr)
break; break;
case LFUN_SCREEN_FONT_UPDATE: { case LFUN_SCREEN_FONT_UPDATE: {
// handle the screen font changes. // handle the screen font changes.
d->font_loader_.update(); d->font_loader_.update();
// Backup current_view_ // Backup current_view_
GuiView * view = current_view_; GuiView * view = current_view_;
// Set current_view_ to zero to forbid GuiWorkArea::redraw() // Set current_view_ to zero to forbid GuiWorkArea::redraw()
// to skip the refresh. // to skip the refresh.
current_view_ = 0; current_view_ = 0;
theBufferList().changed(false); theBufferList().changed(false);
// Restore current_view_ // Restore current_view_
current_view_ = view; current_view_ = view;
break; break;
} }
case LFUN_BUFFER_NEW: case LFUN_BUFFER_NEW:
if (d->views_.empty() if (d->views_.empty()
|| (!lyxrc.open_buffers_in_tabs && current_view_->documentBufferView() != 0)) { || (!lyxrc.open_buffers_in_tabs && current_view_->documentBufferView() != 0)) {
createView(QString(), false); // keep hidden createView(QString(), false); // keep hidden
current_view_->newDocument(to_utf8(cmd.argument()), false); current_view_->newDocument(to_utf8(cmd.argument()), false);
current_view_->show(); current_view_->show();
@ -1258,7 +1258,7 @@ void GuiApplication::dispatch(FuncRequest const & cmd, DispatchResult & dr)
case LFUN_BUFFER_NEW_TEMPLATE: case LFUN_BUFFER_NEW_TEMPLATE:
if (d->views_.empty() if (d->views_.empty()
|| (!lyxrc.open_buffers_in_tabs && current_view_->documentBufferView() != 0)) { || (!lyxrc.open_buffers_in_tabs && current_view_->documentBufferView() != 0)) {
createView(); createView();
current_view_->newDocument(to_utf8(cmd.argument()), true); current_view_->newDocument(to_utf8(cmd.argument()), true);
if (!current_view_->documentBufferView()) if (!current_view_->documentBufferView())
@ -1300,7 +1300,7 @@ void GuiApplication::dispatch(FuncRequest const & cmd, DispatchResult & dr)
if (fname.empty()) { if (fname.empty()) {
lyxerr << "LyX: unable to find documentation file `" lyxerr << "LyX: unable to find documentation file `"
<< arg << "'. Bad installation?" << endl; << arg << "'. Bad installation?" << endl;
break; break;
} }
current_view_->message(bformat(_("Opening help file %1$s..."), current_view_->message(bformat(_("Opening help file %1$s..."),
@ -1325,8 +1325,8 @@ void GuiApplication::dispatch(FuncRequest const & cmd, DispatchResult & dr)
} }
string const graphicsbg = lcolor.getLyXName(Color_graphicsbg); string const graphicsbg = lcolor.getLyXName(Color_graphicsbg);
bool const graphicsbg_changed = lyx_name == graphicsbg bool const graphicsbg_changed =
&& x11_name != graphicsbg; lyx_name == graphicsbg && x11_name != graphicsbg;
if (graphicsbg_changed) { if (graphicsbg_changed) {
// FIXME: The graphics cache no longer has a changeDisplay method. // FIXME: The graphics cache no longer has a changeDisplay method.
#if 0 #if 0
@ -1336,10 +1336,10 @@ void GuiApplication::dispatch(FuncRequest const & cmd, DispatchResult & dr)
if (!lcolor.setColor(lyx_name, x11_name)) { if (!lcolor.setColor(lyx_name, x11_name)) {
current_view_->message( current_view_->message(
bformat(_("Set-color \"%1$s\" failed " bformat(_("Set-color \"%1$s\" failed "
"- color is undefined or " "- color is undefined or "
"may not be redefined"), "may not be redefined"),
from_utf8(lyx_name))); from_utf8(lyx_name)));
break; break;
} }
// Make sure we don't keep old colors in cache. // Make sure we don't keep old colors in cache.
@ -1506,9 +1506,9 @@ void GuiApplication::dispatch(FuncRequest const & cmd, DispatchResult & dr)
if (unknown_tokens != 0) { if (unknown_tokens != 0) {
lyxerr << "Warning in LFUN_BUFFER_SAVE_AS_DEFAULT!\n" lyxerr << "Warning in LFUN_BUFFER_SAVE_AS_DEFAULT!\n"
<< unknown_tokens << " unknown token" << unknown_tokens << " unknown token"
<< (unknown_tokens == 1 ? "" : "s") << (unknown_tokens == 1 ? "" : "s")
<< endl; << endl;
} }
if (defaults.writeFile(FileName(defaults.absFileName()))) if (defaults.writeFile(FileName(defaults.absFileName())))