diff --git a/src/lyxfunc.C b/src/lyxfunc.C index 7cffa284ff..5a52c9a3bf 100644 --- a/src/lyxfunc.C +++ b/src/lyxfunc.C @@ -651,9 +651,7 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & cmd) const } -namespace { - -bool ensureBufferClean(BufferView * bv) +bool LyXFunc::ensureBufferClean(BufferView * bv) { Buffer & buf = *bv->buffer(); if (buf.isClean()) @@ -668,12 +666,14 @@ bool ensureBufferClean(BufferView * bv) _("&Cancel")); if (ret == 0) - bv->owner()->dispatch(FuncRequest(LFUN_BUFFER_WRITE)); + dispatch(FuncRequest(LFUN_BUFFER_WRITE)); return buf.isClean(); } +namespace { + void showPrintError(string const & name) { docstring str = bformat(_("Could not print the document %1$s.\n" diff --git a/src/lyxfunc.h b/src/lyxfunc.h index 7a2b322e69..92ec7f6de9 100644 --- a/src/lyxfunc.h +++ b/src/lyxfunc.h @@ -108,6 +108,8 @@ private: void doImport(std::string const &); /// void closeBuffer(); + /// + bool ensureBufferClean(BufferView * bv); }; #endif