LCOV - code coverage report
Current view: top level - writerfilter/source/rtftok - rtfreferenceproperties.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 19 19 100.0 %
Date: 2012-08-25 Functions: 8 8 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 17 30 56.7 %

           Branch data     Line data    Source code
       1                 :            : /*
       2                 :            :  * Version: MPL 1.1 / GPLv3+ / LGPLv3+
       3                 :            :  *
       4                 :            :  * The contents of this file are subject to the Mozilla Public License Version
       5                 :            :  * 1.1 (the "License"); you may not use this file except in compliance with
       6                 :            :  * the License. You may obtain a copy of the License at
       7                 :            :  * http://www.mozilla.org/MPL/
       8                 :            :  *
       9                 :            :  * Software distributed under the License is distributed on an "AS IS" basis,
      10                 :            :  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
      11                 :            :  * for the specific language governing rights and limitations under the
      12                 :            :  * License.
      13                 :            :  *
      14                 :            :  * The Initial Developer of the Original Code is
      15                 :            :  *       Miklos Vajna <vmiklos@frugalware.org>
      16                 :            :  * Portions created by the Initial Developer are Copyright (C) 2011 the
      17                 :            :  * Initial Developer. All Rights Reserved.
      18                 :            :  *
      19                 :            :  * Contributor(s):
      20                 :            :  *
      21                 :            :  * Alternatively, the contents of this file may be used under the terms of
      22                 :            :  * either the GNU General Public License Version 3 or later (the "GPLv3+"), or
      23                 :            :  * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
      24                 :            :  * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
      25                 :            :  * instead of those above.
      26                 :            :  */
      27                 :            : 
      28                 :            : #include <rtfreferenceproperties.hxx>
      29                 :            : 
      30                 :            : namespace writerfilter {
      31                 :            : namespace rtftok {
      32                 :            : 
      33                 :      20145 : RTFReferenceProperties::RTFReferenceProperties(RTFSprms aAttributes, RTFSprms aSprms)
      34                 :            :     : m_aAttributes(aAttributes),
      35 [ +  - ][ +  - ]:      20145 :     m_aSprms(aSprms)
      36                 :            : {
      37                 :      20145 : }
      38                 :            : 
      39                 :        198 : RTFReferenceProperties::RTFReferenceProperties(RTFSprms aAttributes)
      40                 :            :     : m_aAttributes(aAttributes),
      41 [ +  - ][ +  - ]:        198 :     m_aSprms()
      42                 :            : {
      43                 :        198 : }
      44                 :            : 
      45                 :      20343 : RTFReferenceProperties::~RTFReferenceProperties()
      46                 :            : {
      47         [ -  + ]:      40686 : }
      48                 :            : 
      49                 :      20283 : void RTFReferenceProperties::resolve(Properties& rHandler)
      50                 :            : {
      51 [ +  - ][ +  + ]:      28923 :     for (RTFSprms::Iterator_t i = m_aAttributes.begin(); i != m_aAttributes.end(); ++i)
      52         [ +  - ]:       8640 :         rHandler.attribute(i->first, *i->second.get());
      53 [ +  - ][ +  + ]:      76281 :     for (RTFSprms::Iterator_t i = m_aSprms.begin(); i != m_aSprms.end(); ++i)
      54                 :            :     {
      55         [ +  - ]:      55998 :         RTFSprm aSprm(i->first, i->second);
      56         [ +  - ]:      55998 :         rHandler.sprm(aSprm);
      57                 :      55998 :     }
      58                 :      20283 : }
      59                 :            : 
      60                 :      14652 : std::string RTFReferenceProperties::getType() const
      61                 :            : {
      62         [ +  - ]:      14652 :     return "RTFReferenceProperties";
      63                 :            : }
      64                 :            : 
      65                 :            : } // namespace rtftok
      66 [ +  - ][ +  - ]:         60 : } // namespace writerfilter
      67                 :            : 
      68                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10