LCOV - code coverage report
Current view: top level - sw/source/core/txtnode - txatbase.cxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 20 20 100.0 %
Date: 2014-11-03 Functions: 10 11 90.9 %
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             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : #include <svl/itempool.hxx>
      21             : #include <txatbase.hxx>
      22             : #include <fmtfld.hxx>
      23             : #include <docufld.hxx>
      24             : 
      25      216466 : SwTxtAttr::SwTxtAttr( SfxPoolItem& rAttr, sal_Int32 nStart )
      26             :     : m_pAttr( &rAttr )
      27             :     , m_nStart( nStart )
      28             :     , m_bDontExpand( false )
      29             :     , m_bLockExpandFlag( false )
      30             :     , m_bDontMoveAttr( false )
      31             :     , m_bCharFmtAttr( false )
      32             :     , m_bOverlapAllowedAttr( false )
      33             :     , m_bPriorityAttr( false )
      34             :     , m_bDontExpandStart( false )
      35             :     , m_bNesting( false )
      36             :     , m_bHasDummyChar( false )
      37             :     , m_bFormatIgnoreStart(false)
      38             :     , m_bFormatIgnoreEnd(false)
      39      216466 :     , m_bHasContent( false )
      40             : {
      41      216466 : }
      42             : 
      43      216436 : SwTxtAttr::~SwTxtAttr( )
      44             : {
      45      216436 : }
      46             : 
      47     4076104 : sal_Int32* SwTxtAttr::GetEnd()
      48             : {
      49     4076104 :     return 0;
      50             : }
      51             : 
      52      216436 : void SwTxtAttr::Destroy( SwTxtAttr * pToDestroy, SfxItemPool& rPool )
      53             : {
      54      432872 :     if (!pToDestroy) return;
      55      216436 :     SfxPoolItem * const pAttr = pToDestroy->m_pAttr;
      56      216436 :     delete pToDestroy;
      57      216436 :     rPool.Remove( *pAttr );
      58             : }
      59             : 
      60      228468 : bool SwTxtAttr::operator==( const SwTxtAttr& rAttr ) const
      61             : {
      62      228468 :     return GetAttr() == rAttr.GetAttr();
      63             : }
      64             : 
      65      206398 : SwTxtAttrEnd::SwTxtAttrEnd( SfxPoolItem& rAttr,
      66             :         sal_Int32 nStart, sal_Int32 nEnd ) :
      67      206398 :     SwTxtAttr( rAttr, nStart ), m_nEnd( nEnd )
      68             : {
      69      206398 : }
      70             : 
      71    12675400 : sal_Int32* SwTxtAttrEnd::GetEnd()
      72             : {
      73    12675400 :     return & m_nEnd;
      74         270 : }
      75             : 
      76             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10