1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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_OSL_FILE_URL_H
21 #define INCLUDED_OSL_FILE_URL_H
23 #include "sal/types.h"
24 #include "rtl/ustring.h"
28 #pragma warning(push,1)
31 #define WINDOWS_LEAN_AND_MEAN
42 #define PATHTYPE_ERROR 0
43 #define PATHTYPE_RELATIVE 1
44 #define PATHTYPE_ABSOLUTE_UNC 2
45 #define PATHTYPE_ABSOLUTE_LOCAL 3
46 #define PATHTYPE_MASK_TYPE 0xFF
47 #define PATHTYPE_IS_VOLUME 0x0100
48 #define PATHTYPE_IS_SERVER 0x0200
49 #define PATHTYPE_IS_LONGPATH 0x0400
51 #define VALIDATEPATH_NORMAL 0x0000
52 #define VALIDATEPATH_ALLOW_WILDCARDS 0x0001
53 #define VALIDATEPATH_ALLOW_ELLIPSE 0x0002
54 #define VALIDATEPATH_ALLOW_RELATIVE 0x0004
55 #define VALIDATEPATH_ALLOW_UNC 0x0008
56 #define VALIDATEPATH_ALLOW_INVALID_SPACE_AND_PERIOD 0x0010
58 #define MAX_LONG_PATH 32767
60 DWORD
IsValidFilePath (
64 rtl_uString
** corrected
67 DWORD
GetCaseCorrectPathName (
68 LPCTSTR lpszShortPath
, // file name
69 LPTSTR lpszLongPath
, // path buffer
70 DWORD cchBuffer
, // size of path buffer
74 oslFileError
_osl_getSystemPathFromFileURL (
76 rtl_uString
** pustrPath
,
77 sal_Bool bAllowRelative
80 oslFileError
_osl_getFileURLFromSystemPath (
81 rtl_uString
* strPath
,
82 rtl_uString
** pstrURL
89 #endif /* INCLUDED_OSL_FILE_URL_H */
91 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */