fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / unoidl / source / unoidlprovider.hxx
blob9eacfb5f17dd7d34e1ece9aeeeaef6e972ea67c3
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_UNOIDL_SOURCE_UNOIDLPROVIDER_HXX
11 #define INCLUDED_UNOIDL_SOURCE_UNOIDLPROVIDER_HXX
13 #include "sal/config.h"
15 #include <set>
17 #include "rtl/ref.hxx"
18 #include "sal/types.h"
19 #include "unoidl/unoidl.hxx"
21 namespace unoidl { namespace detail {
23 class MappedFile;
24 struct MapEntry;
26 struct Map {
27 MapEntry const * begin;
28 sal_uInt32 size;
31 struct NestedMap {
32 Map map;
33 std::set<Map> trace;
36 class UnoidlProvider: public Provider {
37 public:
38 // throws FileFormatException, NoSuchFileException:
39 explicit UnoidlProvider(OUString const & uri);
41 // throws FileFormatException:
42 virtual rtl::Reference< MapCursor > createRootCursor() const SAL_OVERRIDE;
44 // throws FileFormatException:
45 virtual rtl::Reference< Entity > findEntity(OUString const & name)
46 const SAL_OVERRIDE;
48 private:
49 virtual ~UnoidlProvider() throw ();
51 rtl::Reference< detail::MappedFile > file_;
52 NestedMap map_;
55 } }
57 #endif
59 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */