warn on load when a document binds an event to a macro
[LibreOffice.git] / include / unotest / directories.hxx
blob5a901c8781bf7b38bb2a4f3da74ed890aa0e8843
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/.
8 */
10 #ifndef INCLUDED_UNOTEST_DIRECTORIES_HXX
11 #define INCLUDED_UNOTEST_DIRECTORIES_HXX
13 #include <sal/config.h>
15 #include <rtl/ustring.hxx>
16 #include <unotest/detail/unotestdllapi.hxx>
18 namespace test {
20 class OOO_DLLPUBLIC_UNOTEST Directories {
21 private:
22 OUString m_aSrcRootURL;
23 OUString m_aSrcRootPath;
24 OUString m_aWorkdirRootURL;
25 OUString m_aWorkdirRootPath;
27 public:
28 Directories();
30 const OUString& getSrcRootURL() const { return m_aSrcRootURL; }
31 const OUString& getSrcRootPath() const { return m_aSrcRootPath; }
33 // return a URL to a given path from the source directory
34 OUString getURLFromSrc(const OUString& rPath) const;
36 // return a Path to a given path from the source directory
37 OUString getPathFromSrc(const OUString& rPath) const;
39 // return a URL to a given path from the workdir directory
40 OUString getURLFromWorkdir(const OUString &rPath) const;
42 // return a Path to a given path from the workdir directory
43 OUString getPathFromWorkdir(const OUString &rPath) const;
48 #endif
50 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */