LCOV - code coverage report
Current view: top level - sw/source/core/txtnode - atrref.cxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 24 0.0 %
Date: 2014-04-14 Functions: 0 8 0.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             :  * 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 <hintids.hxx>
      21             : #include <txtrfmrk.hxx>
      22             : #include <fmtrfmrk.hxx>
      23             : #include <swfont.hxx>
      24             : 
      25             : /****************************************************************************
      26             :  *
      27             :  *  class SwFmtRefMark
      28             :  *
      29             :  ****************************************************************************/
      30             : 
      31           0 : SwFmtRefMark::~SwFmtRefMark( )
      32             : {
      33           0 : }
      34             : 
      35           0 : SwFmtRefMark::SwFmtRefMark( const OUString& rName )
      36             :     : SfxPoolItem( RES_TXTATR_REFMARK ),
      37             :     pTxtAttr( 0 ),
      38           0 :     aRefName( rName )
      39             : {
      40           0 : }
      41             : 
      42           0 : SwFmtRefMark::SwFmtRefMark( const SwFmtRefMark& rAttr )
      43             :     : SfxPoolItem( RES_TXTATR_REFMARK ),
      44             :     pTxtAttr( 0 ),
      45           0 :     aRefName( rAttr.aRefName )
      46             : {
      47           0 : }
      48             : 
      49           0 : bool SwFmtRefMark::operator==( const SfxPoolItem& rAttr ) const
      50             : {
      51             :     OSL_ENSURE( SfxPoolItem::operator==( rAttr ), "keine gleichen Attribute" );
      52           0 :     return aRefName == ((SwFmtRefMark&)rAttr).aRefName;
      53             : }
      54             : 
      55           0 : SfxPoolItem* SwFmtRefMark::Clone( SfxItemPool* ) const
      56             : {
      57           0 :     return new SwFmtRefMark( *this );
      58             : }
      59             : 
      60             : /*************************************************************************
      61             :  *                      class SwTxtRefMark
      62             :  *************************************************************************/
      63             : 
      64             : // Attribut fuer Inhalts-/Positions-Referenzen im Text
      65             : 
      66           0 : SwTxtRefMark::SwTxtRefMark( SwFmtRefMark& rAttr,
      67             :             sal_Int32 const nStartPos, sal_Int32 const*const pEnd)
      68             :     : SwTxtAttrEnd( rAttr, nStartPos, nStartPos )
      69             :     , m_pTxtNode( 0 )
      70           0 :     , m_pEnd( 0 )
      71             : {
      72           0 :     rAttr.pTxtAttr = this;
      73           0 :     if ( pEnd )
      74             :     {
      75           0 :         m_nEnd = *pEnd;
      76           0 :         m_pEnd = & m_nEnd;
      77             :     }
      78             :     else
      79             :     {
      80           0 :         SetHasDummyChar(true);
      81             :     }
      82           0 :     SetDontMoveAttr( true );
      83           0 :     SetOverlapAllowedAttr( true );
      84           0 : }
      85             : 
      86           0 : sal_Int32* SwTxtRefMark::GetEnd()
      87             : {
      88           0 :     return m_pEnd;
      89             : }
      90             : 
      91             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10