1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 #ifndef INCLUDED_SVL_MSODOCUMENTLOCKFILE_HXX
11 #define INCLUDED_SVL_MSODOCUMENTLOCKFILE_HXX
13 #include <svl/svldllapi.h>
14 #include <svl/documentlockfile.hxx>
16 #define MSO_WORD_LOCKFILE_SIZE 162
17 #define MSO_EXCEL_AND_POWERPOINT_LOCKFILE_SIZE 165
18 #define MSO_USERNAME_MAX_LENGTH 52
22 /// Class implementing reading and writing MSO lockfiles.
23 class SVL_DLLPUBLIC MSODocumentLockFile final
: public GenDocumentLockFile
32 static AppType
getAppType(const OUString
& sOrigURL
);
36 WriteEntryToStream(const LockFileEntry
& aEntry
,
37 const css::uno::Reference
<css::io::XOutputStream
>& xStream
) override
;
39 virtual css::uno::Reference
<css::io::XInputStream
> OpenStream() override
;
42 MSODocumentLockFile(const OUString
& aOrigURL
);
43 virtual ~MSODocumentLockFile() override
;
45 virtual LockFileEntry
GetLockData() override
;
47 virtual void RemoveFile() override
;
49 static bool IsMSOSupportedFileFormat(const OUString
& aURL
);
55 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */