Use o3tl::convert in Math
[LibreOffice.git] / unoidl / source / sourcefileprovider.hxx
blob52fd32f3c735d46f59ea56446d60abcd11c0cbd5
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 #pragma once
12 #include <sal/config.h>
14 #include <map>
16 #include <rtl/ref.hxx>
17 #include <unoidl/unoidl.hxx>
19 namespace unoidl::detail
21 class SourceFileProvider : public Provider
23 public:
24 // throws FileFormatException, NoSuchFileException:
25 SourceFileProvider(rtl::Reference<Manager> const& manager, OUString const& uri);
27 // throws FileFormatException:
28 virtual rtl::Reference<MapCursor> createRootCursor() const override;
30 // throws FileFormatException:
31 virtual rtl::Reference<Entity> findEntity(OUString const& name) const override;
33 private:
34 virtual ~SourceFileProvider() noexcept override;
36 std::map<OUString, rtl::Reference<Entity>> rootMap_;
40 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */