Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / writerfilter / source / rtftok / rtfreferencetable.hxx
blob1f0dcfed57248aa242d7146fbc48ad33775173e9
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_WRITERFILTER_SOURCE_RTFTOK_RTFREFERENCETABLE_HXX
11 #define INCLUDED_WRITERFILTER_SOURCE_RTFTOK_RTFREFERENCETABLE_HXX
13 #include <map>
14 #include <dmapper/resourcemodel.hxx>
16 namespace writerfilter
18 namespace rtftok
20 /// Sends tables (e.g. font table) to the domain mapper.
21 class RTFReferenceTable : public writerfilter::Reference<Table>
23 public:
24 using Entries_t = std::map<int, writerfilter::Reference<Properties>::Pointer_t>;
25 using Entry_t = std::pair<int, writerfilter::Reference<Properties>::Pointer_t>;
26 explicit RTFReferenceTable(Entries_t aEntries);
27 ~RTFReferenceTable() override;
28 void resolve(Table& rHandler) override;
30 private:
31 Entries_t const m_aEntries;
33 } // namespace rtftok
34 } // namespace writerfilter
36 #endif // INCLUDED_WRITERFILTER_SOURCE_RTFTOK_RTFREFERENCETABLE_HXX
38 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */