///
~LyXVC();
/** Not a good name perhaps. This function should be called whenever
- LyX loads a file. This function then checks for a master VC file
- (for RCS this is *,v or RCS/ *,v) if this file is found, the loaded
- file is assumed to be under controll by VC (only RCS so far), and
- the appropiate actions is taken. Returns true if the file is under
- control by a VCS.
+ LyX loads a file. This function then checks for a master VC file (for
+ RCS this is *,v or RCS/ *,v ; for CVS this is CVS/Entries) if this
+ file is found, the loaded file is assumed to be under controll by VC
+ (only RCS and CVS so far), and the appropiate actions is taken.
+ Returns true if the file is under control by a VCS.
*/
bool file_found_hook(support::FileName const & fn);
/// Unlock and commit changes.
void checkIn();
+ /// Does the current VC supports this operation?
+ bool checkInEnabled();
/// Lock and prepare to edit document.
void checkOut();
+ /// Does the current VC supports this operation?
+ bool checkOutEnabled();
/// Revert to last version
void revert();
/// Undo last check-in.
void undoLast();
+ /// Does the current VC supports this operation?
+ bool undoLastEnabled();
/**
* Generate a log file and return the filename.