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
{
15 RTFReferenceProperties::RTFReferenceProperties(RTFSprms aAttributes
, RTFSprms aSprms
)
16 : m_aAttributes(aAttributes
),
21 RTFReferenceProperties::RTFReferenceProperties(RTFSprms aAttributes
)
22 : m_aAttributes(aAttributes
),
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
);
42 std::string
RTFReferenceProperties::getType() const
44 return "RTFReferenceProperties";
47 RTFSprms
& RTFReferenceProperties::getAttributes()
52 RTFSprms
& RTFReferenceProperties::getSprms()
58 } // namespace writerfilter
60 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */