LCOV - code coverage report
Current view: top level - libreoffice/sw/source/ui/config - caption.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 5 27 18.5 %
Date: 2012-12-27 Functions: 1 5 20.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             : 
      21             : #include <osl/diagnose.h>
      22             : 
      23             : #include "numrule.hxx"
      24             : #include "caption.hxx"
      25             : 
      26          90 : InsCaptionOpt::InsCaptionOpt(const SwCapObjType eType, const SvGlobalName* pOleId) :
      27             :     bUseCaption(sal_False),
      28             :     eObjType(eType),
      29             :     nNumType(SVX_NUM_ARABIC),
      30             :     sNumberSeparator(RTL_CONSTASCII_USTRINGPARAM((". "))),
      31             :     nPos(1),
      32             :     nLevel(0),
      33             :     sSeparator( rtl::OUString(": ") ),
      34             :     bIgnoreSeqOpts(sal_False),
      35          90 :     bCopyAttributes(sal_False)
      36             : {
      37          90 :     if (pOleId)
      38          50 :         aOleId = *pOleId;
      39          90 : }
      40             : 
      41           0 : InsCaptionOpt::InsCaptionOpt(const InsCaptionOpt& rOpt)
      42             : {
      43           0 :     *this = rOpt;
      44           0 : }
      45             : 
      46           0 : InsCaptionOpt::~InsCaptionOpt()
      47             : {
      48           0 : }
      49             : 
      50           0 : InsCaptionOpt& InsCaptionOpt::operator=( const InsCaptionOpt& rOpt )
      51             : {
      52           0 :     bUseCaption = rOpt.bUseCaption;
      53           0 :     eObjType = rOpt.eObjType;
      54           0 :     aOleId = rOpt.aOleId;
      55           0 :     sCategory = rOpt.sCategory;
      56           0 :     nNumType = rOpt.nNumType;
      57           0 :     sNumberSeparator = rOpt.sNumberSeparator;
      58           0 :     sCaption = rOpt.sCaption;
      59           0 :     nPos = rOpt.nPos;
      60           0 :     nLevel = rOpt.nLevel;
      61           0 :     sSeparator = rOpt.sSeparator;
      62           0 :     bIgnoreSeqOpts = rOpt.bIgnoreSeqOpts;
      63           0 :     sCharacterStyle = rOpt.sCharacterStyle;
      64           0 :     bCopyAttributes = rOpt.bCopyAttributes;
      65             : 
      66           0 :     return *this;
      67             : }
      68             : 
      69           0 : sal_Bool InsCaptionOpt::operator==( const InsCaptionOpt& rOpt ) const
      70             : {
      71             :     return (eObjType == rOpt.eObjType &&
      72           0 :             aOleId == rOpt.aOleId); // So that identical Ole-IDs can't be added multiple
      73             :                                     // times, don't compare against anything else.
      74             : 
      75             : 
      76             : }
      77             : 
      78             : 
      79             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10