X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxvc.h;h=6ce52cbb23dd7d8c04b0041f5c74d6c703c23d3f;hb=b9aa557b359463dfb0a2132b665570c8d1e5d605;hp=d282f395534edf2d5f1d812481e28f26cfbff07f;hpb=99d1627a471b92f403598d03dfc861ddc3c11be0;p=lyx.git diff --git a/src/lyxvc.h b/src/lyxvc.h index d282f39553..6ce52cbb23 100644 --- a/src/lyxvc.h +++ b/src/lyxvc.h @@ -1,9 +1,25 @@ // -*- C++ -*- +/** + * \file lyxvc.h + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. + * + * \author Lars Gullik Bjønnes + * + * Full author contact details are available in file CREDITS. + */ #ifndef LYX_VC_H #define LYX_VC_H -#include "LString.h" +#include + +#include + + +namespace lyx { + +namespace support { class FileName; } class VCS; class Buffer; @@ -35,7 +51,7 @@ public: the appropiate actions is taken. Returns true if the file is under control by a VCS. */ - bool file_found_hook(string const & fn); + bool file_found_hook(support::FileName const & fn); /** This function should be run when a file is requested for loading, but it does not exist. This function will then check for a VC master @@ -44,7 +60,7 @@ public: viewing/editing. Returns true if the file is under control by a VCS and the user wants to view/edit it. */ - static bool file_not_found_hook(string const & fn); + static bool file_not_found_hook(support::FileName const & fn); /// void buffer(Buffer *); @@ -69,7 +85,7 @@ public: * It is the caller's responsibility to unlink the * file after use. */ - const string getLogFile() const; + const std::string getLogFile() const; /// void toggleReadOnly(); @@ -78,19 +94,22 @@ public: bool inUse(); /// Returns the version number. - //string const & version() const; + //std::string const & version() const; /// Returns the version number. - string const versionString() const; + std::string const versionString() const; /// Returns the userid of the person who has locked the doc. - string const & locker() const; + std::string const & locker() const; private: /// Buffer * owner_; /// - VCS * vcs; + boost::scoped_ptr vcs; }; + +} // namespace lyx + #endif