Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
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 : */
9 :
10 : #include <rtfreferencetable.hxx>
11 :
12 : namespace writerfilter {
13 : namespace rtftok {
14 :
15 502 : RTFReferenceTable::RTFReferenceTable(Entries_t const& rEntries)
16 502 : : m_aEntries(rEntries)
17 : {
18 502 : }
19 :
20 1004 : RTFReferenceTable::~RTFReferenceTable()
21 : {
22 1004 : }
23 :
24 502 : void RTFReferenceTable::resolve(Table& rHandler)
25 : {
26 2160 : for (Entries_t::const_iterator i = m_aEntries.begin(); i != m_aEntries.end(); ++i)
27 1658 : rHandler.entry(i->first, i->second);
28 502 : }
29 :
30 0 : std::string RTFReferenceTable::getType() const
31 : {
32 0 : return "RTFReferenceTable";
33 : }
34 :
35 : } // namespace rtftok
36 : } // namespace writerfilter
37 :
38 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|