1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
10 #include "rtfreferenceproperties.hxx"
12 namespace writerfilter
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
);
41 } // namespace writerfilter
43 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */