bump product version to 4.1.6.2
[LibreOffice.git] / writerfilter / source / rtftok / rtfreferenceproperties.cxx
blobbd7aa986f0aadeff1efedb2149f38c81f060362e
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 #include <rtfreferenceproperties.hxx>
12 namespace writerfilter {
13 namespace rtftok {
15 RTFReferenceProperties::RTFReferenceProperties(RTFSprms aAttributes, RTFSprms aSprms)
16 : m_aAttributes(aAttributes),
17 m_aSprms(aSprms)
21 RTFReferenceProperties::RTFReferenceProperties(RTFSprms aAttributes)
22 : m_aAttributes(aAttributes),
23 m_aSprms()
27 RTFReferenceProperties::~RTFReferenceProperties()
31 void RTFReferenceProperties::resolve(Properties& rHandler)
33 for (RTFSprms::Iterator_t i = m_aAttributes.begin(); i != m_aAttributes.end(); ++i)
34 rHandler.attribute(i->first, *i->second.get());
35 for (RTFSprms::Iterator_t i = m_aSprms.begin(); i != m_aSprms.end(); ++i)
37 RTFSprm aSprm(i->first, i->second);
38 rHandler.sprm(aSprm);
42 std::string RTFReferenceProperties::getType() const
44 return "RTFReferenceProperties";
47 RTFSprms& RTFReferenceProperties::getAttributes()
49 return m_aAttributes;
52 RTFSprms& RTFReferenceProperties::getSprms()
54 return m_aSprms;
57 } // namespace rtftok
58 } // namespace writerfilter
60 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */