summaryrefslogtreecommitdiff
path: root/writerfilter/source/rtftok/rtfreferenceproperties.cxx
blob: 0387b5039f030878c3d5e270e235e94142df803c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#include <rtfreferenceproperties.hxx>
#include <rtfsprm.hxx>

namespace writerfilter {
namespace rtftok {

RTFReferenceProperties::RTFReferenceProperties(RTFSprms_t rAttributes, RTFSprms_t rSprms)
    : m_rAttributes(rAttributes),
    m_rSprms(rSprms)
{
}

RTFReferenceProperties::RTFReferenceProperties(RTFSprms_t rAttributes)
    : m_rAttributes(rAttributes),
    m_rSprms()
{
}

RTFReferenceProperties::~RTFReferenceProperties()
{
}

void RTFReferenceProperties::resolve(Properties& rHandler)
{
    for (RTFSprms_t::iterator i = m_rAttributes.begin(); i != m_rAttributes.end(); ++i)
        rHandler.attribute(i->first, *i->second.get());
    for (RTFSprms_t::iterator i = m_rSprms.begin(); i != m_rSprms.end(); ++i)
    {
        RTFSprm aSprm(i->first, i->second);
        rHandler.sprm(aSprm);
    }
}

std::string RTFReferenceProperties::getType() const
{
    return "RTFReferenceProperties";
}

} // namespace rtftok
} // namespace writerfilter

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */