LibreOffice Module svl (master) 1
|
This is a general implementation that is used in document lock file implementation and in sharing control file implementation. More...
#include <lockfilecommon.hxx>
Public Member Functions | |
LockFileCommon (OUString aLockFileURL) | |
virtual | ~LockFileCommon () |
const OUString & | GetURL () const |
void | SetURL (const OUString &aURL) |
Static Public Member Functions | |
static void | ParseList (const css::uno::Sequence< sal_Int8 > &aBuffer, std::vector< LockFileEntry > &rOutput) |
static LockFileEntry | ParseEntry (const css::uno::Sequence< sal_Int8 > &aBuffer, sal_Int32 &o_nCurPos) |
static OUString | ParseName (const css::uno::Sequence< sal_Int8 > &aBuffer, sal_Int32 &o_nCurPos) |
static OUString | EscapeCharacters (const OUString &aSource) |
static OUString | GetOOOUserName () |
static OUString | GetCurrentLocalTime () |
static LockFileEntry | GenerateOwnEntry () |
static INetURLObject | ResolveLinks (const INetURLObject &aDocURL) |
Static Protected Member Functions | |
static OUString | GenerateOwnLockFileURL (std::u16string_view aOrigURL, std::u16string_view aPrefix) |
This method generates the URL of the lock file based on the document URL and the specified prefix. More... | |
Protected Attributes | |
std::mutex | m_aMutex |
Private Attributes | |
OUString | m_aURL |
This is a general implementation that is used in document lock file implementation and in sharing control file implementation.
Definition at line 44 of file lockfilecommon.hxx.
svt::LockFileCommon::LockFileCommon | ( | OUString | aLockFileURL | ) |
Definition at line 50 of file lockfilecommon.cxx.
References m_aURL.
|
virtual |
Definition at line 55 of file lockfilecommon.cxx.
|
static |
Definition at line 170 of file lockfilecommon.cxx.
References aBuffer.
Referenced by svt::ShareControlFile::SetUsersDataAndStore(), and svt::DocumentLockFile::WriteEntryToStream().
|
static |
Definition at line 222 of file lockfilecommon.cxx.
References EDITTIME, GetCurrentLocalTime(), GetOOOUserName(), LOCALHOST, utl::Bootstrap::locateUserInstallation(), OOOUSERNAME, SYSUSERNAME, and USERURL.
Referenced by svt::GenDocumentLockFile::CreateOwnLockFile(), svt::ShareControlFile::HasOwnEntry(), svt::ShareControlFile::InsertOwnEntry(), svt::GenDocumentLockFile::OverwriteOwnLockFile(), svt::ShareControlFile::RemoveEntry(), svt::GenDocumentLockFile::RemoveFile(), and svt::MSODocumentLockFile::RemoveFile().
|
staticprotected |
This method generates the URL of the lock file based on the document URL and the specified prefix.
Definition at line 72 of file lockfilecommon.cxx.
References aURL, INetURLObject::NONE, and ResolveLinks().
|
static |
Definition at line 197 of file lockfilecommon.cxx.
References o3tl::sprintf().
Referenced by GenerateOwnEntry().
|
static |
Definition at line 185 of file lockfilecommon.cxx.
References aName, SvtUserOptions::GetFirstName(), and SvtUserOptions::GetLastName().
Referenced by GenerateOwnEntry().
const OUString & svt::LockFileCommon::GetURL | ( | ) | const |
Definition at line 60 of file lockfilecommon.cxx.
References m_aURL.
Referenced by svt::GenDocumentLockFile::CreateOwnLockFile(), svt::GenDocumentLockFile::OpenStream(), svt::MSODocumentLockFile::OpenStream(), svt::GenDocumentLockFile::OverwriteOwnLockFile(), svt::GenDocumentLockFile::RemoveFileDirectly(), svt::ShareControlFile::RemoveFileImpl(), and svt::ShareControlFile::ShareControlFile().
|
static |
Definition at line 115 of file lockfilecommon.cxx.
References aBuffer, LAST, and ParseName().
Referenced by svt::DocumentLockFile::GetLockDataImpl(), and ParseList().
|
static |
Definition at line 105 of file lockfilecommon.cxx.
References aBuffer, and ParseEntry().
Referenced by svt::ShareControlFile::GetUsersDataImpl().
|
static |
|
static |
Definition at line 81 of file lockfilecommon.cxx.
References salhelper::LinkResolver::fetchFileStatus(), INetURLObject::GetMainURL(), INetURLObject::HasError(), salhelper::LinkResolver::m_aStatus, and INetURLObject::NONE.
Referenced by GenerateOwnLockFileURL(), svt::MSODocumentLockFile::getAppType(), and svt::MSODocumentLockFile::IsMSOSupportedFileFormat().
void svt::LockFileCommon::SetURL | ( | const OUString & | aURL | ) |
Definition at line 66 of file lockfilecommon.cxx.
|
protected |
Definition at line 50 of file lockfilecommon.hxx.
Referenced by svt::GenDocumentLockFile::CreateOwnLockFile(), svt::GenDocumentLockFile::GetLockData(), svt::ShareControlFile::GetUsersData(), svt::ShareControlFile::HasOwnEntry(), svt::ShareControlFile::InsertOwnEntry(), svt::GenDocumentLockFile::OverwriteOwnLockFile(), svt::ShareControlFile::RemoveEntry(), svt::GenDocumentLockFile::RemoveFile(), svt::ShareControlFile::RemoveFile(), and svt::MSODocumentLockFile::RemoveFile().
|
private |
Definition at line 47 of file lockfilecommon.hxx.