}
-// for the sake of boost::scoped_ptr
-LyXVC::~LyXVC()
-{}
+string LyXVC::vcname() const
+{
+ return vcs->vcname();
+}
bool LyXVC::fileInVC(FileName const & fn)
return log;
}
case VCS::NOLOCKING:
- break;
+ Buffer * b = vcs->owner();
+ bool const newstate = !b->isReadonly();
+ string result = "LyXVC: toggle to ";
+ result += (newstate ? "readonly" : "readwrite");
+ LYXERR(Debug::LYXVC, result);
+ b->setReadonly(newstate);
+ return result;
}
return string();
}