LCOV - code coverage report
Current view: top level - writerfilter/source/rtftok - rtfreferenceproperties.cxx (source / functions) Hit Total Coverage
Test: commit 0e63ca4fde4e446f346e35849c756a30ca294aab Lines: 22 22 100.0 %
Date: 2014-04-11 Functions: 8 8 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       21571 : RTFReferenceProperties::RTFReferenceProperties(RTFSprms aAttributes, RTFSprms aSprms)
      16             :     : m_aAttributes(aAttributes),
      17       21571 :     m_aSprms(aSprms)
      18             : {
      19       21571 : }
      20             : 
      21         110 : RTFReferenceProperties::RTFReferenceProperties(RTFSprms aAttributes)
      22             :     : m_aAttributes(aAttributes),
      23         110 :     m_aSprms()
      24             : {
      25         110 : }
      26             : 
      27       43362 : RTFReferenceProperties::~RTFReferenceProperties()
      28             : {
      29       43362 : }
      30             : 
      31       21625 : void RTFReferenceProperties::resolve(Properties& rHandler)
      32             : {
      33       40568 :     for (RTFSprms::Iterator_t i = m_aAttributes.begin(); i != m_aAttributes.end(); ++i)
      34       18943 :         rHandler.attribute(i->first, *i->second.get());
      35       46451 :     for (RTFSprms::Iterator_t i = m_aSprms.begin(); i != m_aSprms.end(); ++i)
      36             :     {
      37       24826 :         RTFSprm aSprm(i->first, i->second);
      38       24826 :         rHandler.sprm(aSprm);
      39       24826 :     }
      40       21625 : }
      41             : 
      42        6510 : std::string RTFReferenceProperties::getType() const
      43             : {
      44        6510 :     return "RTFReferenceProperties";
      45             : }
      46             : 
      47         358 : RTFSprms& RTFReferenceProperties::getAttributes()
      48             : {
      49         358 :     return m_aAttributes;
      50             : }
      51             : 
      52         358 : RTFSprms& RTFReferenceProperties::getSprms()
      53             : {
      54         358 :     return m_aSprms;
      55             : }
      56             : 
      57             : } // namespace rtftok
      58             : } // namespace writerfilter
      59             : 
      60             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10