LibreOffice Module writerfilter (master) 1
rtfreferenceproperties.cxx
Go to the documentation of this file.
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
11
13{
15 : m_aAttributes(std::move(aAttributes))
16 , m_aSprms(std::move(aSprms))
17{
18}
19
21 : m_aAttributes(std::move(aAttributes))
22{
23}
24
26
28{
29 for (auto& rAttribute : m_aAttributes)
30 rHandler.attribute(rAttribute.first, *rAttribute.second);
31 for (auto& rSprm : m_aSprms)
32 {
33 RTFSprm aSprm(rSprm.first, rSprm.second);
34 rHandler.sprm(aSprm);
35 }
36}
37
38} // namespace writerfilter::rtftok
39
40/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Handler for properties.
virtual void attribute(Id name, Value &val)=0
Receives an attribute.
virtual void sprm(Sprm &sprm)=0
Receives a SPRM.
RTFReferenceProperties(RTFSprms aAttributes, RTFSprms aSprms)
void resolve(Properties &rHandler) override
Resolves the reference.
RTF keyword with a parameter.
Definition: rtfsprm.hxx:85
A list of RTFSprm with a copy constructor that performs a deep copy.
Definition: rtfsprm.hxx:39