Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / sal / osl / w32 / file_url.hxx
blob86ce27060db74165e6d8776d75173dcfdd3cde91
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_SAL_OSL_W32_FILE_URL_HXX
21 #define INCLUDED_SAL_OSL_W32_FILE_URL_HXX
23 #include <sal/types.h>
24 #include <rtl/ustring.hxx>
25 #include <osl/file.h>
26 #include <osl/mutex.hxx>
28 #if !defined WIN32_LEAN_AND_MEAN
29 # define WIN32_LEAN_AND_MEAN
30 #endif
31 #include <windows.h>
33 #define PATHTYPE_ERROR 0
34 #define PATHTYPE_RELATIVE 1
35 #define PATHTYPE_ABSOLUTE_UNC 2
36 #define PATHTYPE_ABSOLUTE_LOCAL 3
37 #define PATHTYPE_MASK_TYPE 0xFF
38 #define PATHTYPE_IS_VOLUME 0x0100
39 #define PATHTYPE_IS_SERVER 0x0200
40 #define PATHTYPE_IS_LONGPATH 0x0400
42 #define VALIDATEPATH_NORMAL 0x0000
43 #define VALIDATEPATH_ALLOW_ELLIPSE 0x0002
44 #define VALIDATEPATH_ALLOW_RELATIVE 0x0004
45 #define VALIDATEPATH_ALLOW_INVALID_SPACE_AND_PERIOD 0x0010
47 #define MAX_LONG_PATH 32767
49 DWORD IsValidFilePath (
50 const OUString& path,
51 DWORD dwFlags,
52 OUString* corrected
55 oslFileError osl_getSystemPathFromFileURL_ (
56 const OUString& strURL,
57 rtl_uString** pustrPath,
58 bool bAllowRelative
61 #endif
63 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */