Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / writerfilter / source / rtftok / rtfreferenceproperties.cxx
blobc2d88ccb9194168c9b5c2b4f86a0ee92a35ad40c
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
14 namespace rtftok
16 RTFReferenceProperties::RTFReferenceProperties(RTFSprms aAttributes, RTFSprms aSprms)
17 : m_aAttributes(std::move(aAttributes))
18 , m_aSprms(std::move(aSprms))
22 RTFReferenceProperties::RTFReferenceProperties(RTFSprms aAttributes)
23 : m_aAttributes(std::move(aAttributes))
27 RTFReferenceProperties::~RTFReferenceProperties() = default;
29 void RTFReferenceProperties::resolve(Properties& rHandler)
31 for (auto& rAttribute : m_aAttributes)
32 rHandler.attribute(rAttribute.first, *rAttribute.second);
33 for (auto& rSprm : m_aSprms)
35 RTFSprm aSprm(rSprm.first, rSprm.second);
36 rHandler.sprm(aSprm);
40 } // namespace rtftok
41 } // namespace writerfilter
43 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */