#include "support/lyxlib.h"
using lyx::support::bformat;
-using lyx::support::IsFileReadable;
-using lyx::support::MakeDisplayPath;
+using lyx::support::isFileReadable;
+using lyx::support::makeDisplayPath;
using lyx::support::tempName;
using std::endl;
string const filename = owner_->fileName();
// there must be a file to save
- if (!IsFileReadable(filename)) {
+ if (!isFileReadable(filename)) {
Alert::error(_("Document not saved"),
_("You must save the document "
"before it can be registered."));
if (!vcs) {
string const cvs_entries = "CVS/Entries";
- if (IsFileReadable(cvs_entries)) {
+ if (isFileReadable(cvs_entries)) {
lyxerr[Debug::LYXVC]
<< "LyXVC: registering "
- << MakeDisplayPath(filename)
+ << makeDisplayPath(filename)
<< " with CVS" << endl;
vcs.reset(new CVS(cvs_entries, filename));
} else {
lyxerr[Debug::LYXVC]
<< "LyXVC: registering "
- << MakeDisplayPath(filename)
+ << makeDisplayPath(filename)
<< " with RCS" << endl;
vcs.reset(new RCS(filename));
}
{
lyxerr[Debug::LYXVC] << "LyXVC: revert" << endl;
- string const file = MakeDisplayPath(owner_->fileName(), 20);
+ string const file = makeDisplayPath(owner_->fileName(), 20);
string text = bformat(_("Reverting to the stored version of the "
"document %1$s will lose all current changes.\n\n"
"Do you want to revert to the saved version?"), file);