LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/writerfilter/source/rtftok - rtfreferenceproperties.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 23 23 100.0 %
Date: 2013-07-09 Functions: 10 10 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       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             : 
      10             : #include <rtfreferenceproperties.hxx>
      11             : 
      12             : namespace writerfilter {
      13             : namespace rtftok {
      14             : 
      15        8913 : RTFReferenceProperties::RTFReferenceProperties(RTFSprms aAttributes, RTFSprms aSprms)
      16             :     : m_aAttributes(aAttributes),
      17        8913 :     m_aSprms(aSprms)
      18             : {
      19        8913 : }
      20             : 
      21          74 : RTFReferenceProperties::RTFReferenceProperties(RTFSprms aAttributes)
      22             :     : m_aAttributes(aAttributes),
      23          74 :     m_aSprms()
      24             : {
      25          74 : }
      26             : 
      27       17974 : RTFReferenceProperties::~RTFReferenceProperties()
      28             : {
      29       17974 : }
      30             : 
      31        8955 : void RTFReferenceProperties::resolve(Properties& rHandler)
      32             : {
      33       14342 :     for (RTFSprms::Iterator_t i = m_aAttributes.begin(); i != m_aAttributes.end(); ++i)
      34        5387 :         rHandler.attribute(i->first, *i->second.get());
      35       31005 :     for (RTFSprms::Iterator_t i = m_aSprms.begin(); i != m_aSprms.end(); ++i)
      36             :     {
      37       22050 :         RTFSprm aSprm(i->first, i->second);
      38       22050 :         rHandler.sprm(aSprm);
      39       22050 :     }
      40        8955 : }
      41             : 
      42        5583 : std::string RTFReferenceProperties::getType() const
      43             : {
      44        5583 :     return "RTFReferenceProperties";
      45             : }
      46             : 
      47         278 : RTFSprms& RTFReferenceProperties::getAttributes()
      48             : {
      49         278 :     return m_aAttributes;
      50             : }
      51             : 
      52         278 : RTFSprms& RTFReferenceProperties::getSprms()
      53             : {
      54         278 :     return m_aSprms;
      55             : }
      56             : 
      57             : } // namespace rtftok
      58          24 : } // namespace writerfilter
      59             : 
      60             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10