LCOV - code coverage report
Current view: top level - editeng/source/misc - swafopt.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 66 66 100.0 %
Date: 2012-08-25 Functions: 2 2 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 10 20 50.0 %

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : 
      29                 :            : #include <vcl/keycodes.hxx>
      30                 :            : #include <tools/string.hxx>
      31                 :            : 
      32                 :            : #include <editeng/swafopt.hxx>
      33                 :            : 
      34                 :        190 : SvxSwAutoFmtFlags::SvxSwAutoFmtFlags()
      35                 :            :     : aBulletFont( rtl::OUString("StarSymbol"),
      36 [ +  - ][ +  - ]:        190 :                     Size( 0, 14 ) )
         [ +  - ][ +  - ]
      37                 :            : {
      38                 :            :     bAutoCorrect =
      39                 :            :     bCptlSttSntnc =
      40                 :            :     bCptlSttWrd =
      41                 :            :     bChkFontAttr =
      42                 :            :     bChgUserColl =
      43                 :            :     bChgEnumNum =
      44                 :            :     bAddNonBrkSpace =
      45                 :            :     bChgOrdinalNumber =
      46                 :            :     bChgToEnEmDash =
      47                 :            :     bChgWeightUnderl =
      48                 :            :     bSetINetAttr =
      49                 :            :     bAFmtDelSpacesAtSttEnd =
      50                 :            :     bAFmtDelSpacesBetweenLines =
      51                 :            :     bAFmtByInpDelSpacesAtSttEnd =
      52                 :            :     bAFmtByInpDelSpacesBetweenLines =
      53                 :        190 :     bDummy = sal_True;
      54                 :            : 
      55                 :            :     bReplaceStyles =
      56                 :            :     bDelEmptyNode =
      57                 :            :     bWithRedlining =
      58                 :            :     bAutoCmpltEndless =
      59                 :            :     bAutoCmpltAppendBlanc =
      60                 :        190 :     bAutoCmpltShowAsTip = sal_False;
      61                 :            : 
      62                 :            :     bSetBorder =
      63                 :            :     bCreateTable =
      64                 :            :     bSetNumRule =
      65                 :            :     bAFmtByInput =
      66                 :            :     bRightMargin =
      67                 :            :     bAutoCompleteWords =
      68                 :            :     bAutoCmpltCollectWords =
      69                 :        190 :     bAutoCmpltKeepList = sal_True;
      70                 :            : 
      71                 :            :     bDummy6 = bDummy7 = bDummy8 =
      72                 :        190 :          sal_False;
      73                 :            : 
      74                 :        190 :     nRightMargin = 50;      // dflt. 50 %
      75                 :        190 :     nAutoCmpltExpandKey = KEY_RETURN;
      76                 :            : 
      77         [ +  - ]:        190 :     aBulletFont.SetCharSet( RTL_TEXTENCODING_SYMBOL );
      78         [ +  - ]:        190 :     aBulletFont.SetFamily( FAMILY_DONTKNOW );
      79         [ +  - ]:        190 :     aBulletFont.SetPitch( PITCH_DONTKNOW );
      80         [ +  - ]:        190 :     aBulletFont.SetWeight( WEIGHT_DONTKNOW );
      81         [ +  - ]:        190 :     aBulletFont.SetTransparent( sal_True );
      82                 :            : 
      83                 :        190 :     cBullet = 0x2022;
      84                 :        190 :     cByInputBullet = cBullet;
      85         [ +  - ]:        190 :     aByInputBulletFont = aBulletFont;
      86                 :            : 
      87                 :        190 :     nAutoCmpltWordLen = 10;
      88                 :        190 :     nAutoCmpltListLen = 500;
      89                 :        190 :     m_pAutoCompleteList = 0;
      90                 :        190 :     pSmartTagMgr = 0;
      91                 :        190 : }
      92                 :            : 
      93                 :            : 
      94                 :         95 : SvxSwAutoFmtFlags& SvxSwAutoFmtFlags::operator=( const SvxSwAutoFmtFlags& rAFFlags )
      95                 :            : {
      96                 :         95 :     bAutoCorrect = rAFFlags.bAutoCorrect;
      97                 :         95 :     bCptlSttSntnc = rAFFlags.bCptlSttSntnc;
      98                 :         95 :     bCptlSttWrd = rAFFlags.bCptlSttWrd;
      99                 :         95 :     bChkFontAttr = rAFFlags.bChkFontAttr;
     100                 :            : 
     101                 :         95 :     bChgUserColl = rAFFlags.bChgUserColl;
     102                 :         95 :     bChgEnumNum = rAFFlags.bChgEnumNum;
     103                 :         95 :     bDelEmptyNode = rAFFlags.bDelEmptyNode;
     104                 :         95 :     bSetNumRule = rAFFlags.bSetNumRule;
     105                 :         95 :     bAFmtByInput = rAFFlags.bAFmtByInput;
     106                 :            : 
     107                 :         95 :     bAddNonBrkSpace = rAFFlags.bAddNonBrkSpace;
     108                 :         95 :     bChgOrdinalNumber = rAFFlags.bChgOrdinalNumber;
     109                 :         95 :     bChgToEnEmDash = rAFFlags.bChgToEnEmDash;
     110                 :         95 :     bChgWeightUnderl = rAFFlags.bChgWeightUnderl;
     111                 :         95 :     bSetINetAttr = rAFFlags.bSetINetAttr;
     112                 :         95 :     bSetBorder = rAFFlags.bSetBorder;
     113                 :         95 :     bCreateTable = rAFFlags.bCreateTable;
     114                 :         95 :     bReplaceStyles = rAFFlags.bReplaceStyles;
     115                 :         95 :     bAFmtDelSpacesAtSttEnd = rAFFlags.bAFmtDelSpacesAtSttEnd;
     116                 :         95 :     bAFmtDelSpacesBetweenLines = rAFFlags.bAFmtDelSpacesBetweenLines;
     117                 :         95 :     bAFmtByInpDelSpacesAtSttEnd = rAFFlags.bAFmtByInpDelSpacesAtSttEnd;
     118                 :         95 :     bAFmtByInpDelSpacesBetweenLines = rAFFlags.bAFmtByInpDelSpacesBetweenLines;
     119                 :            : 
     120                 :         95 :     bDummy = rAFFlags.bDummy;
     121                 :            : 
     122                 :         95 :     bDummy6 = rAFFlags.bDummy6;
     123                 :         95 :     bDummy7 = rAFFlags.bDummy7;
     124                 :         95 :     bDummy8 = rAFFlags.bDummy8;
     125                 :            : 
     126                 :         95 :     bWithRedlining = rAFFlags.bWithRedlining;
     127                 :            : 
     128                 :         95 :     bRightMargin = rAFFlags.bRightMargin;
     129                 :         95 :     nRightMargin = rAFFlags.nRightMargin;
     130                 :            : 
     131                 :         95 :     cBullet = rAFFlags.cBullet;
     132                 :         95 :     aBulletFont = rAFFlags.aBulletFont;
     133                 :            : 
     134                 :         95 :     cByInputBullet = rAFFlags.cByInputBullet;
     135                 :         95 :     aByInputBulletFont = rAFFlags.aByInputBulletFont;
     136                 :            : 
     137                 :         95 :     bAutoCompleteWords = rAFFlags.bAutoCompleteWords;
     138                 :         95 :     bAutoCmpltCollectWords = rAFFlags.bAutoCmpltCollectWords;
     139                 :         95 :     bAutoCmpltKeepList = rAFFlags.bAutoCmpltKeepList;
     140                 :         95 :     bAutoCmpltEndless = rAFFlags.bAutoCmpltEndless;
     141                 :         95 :     bAutoCmpltAppendBlanc = rAFFlags.bAutoCmpltAppendBlanc;
     142                 :         95 :     bAutoCmpltShowAsTip = rAFFlags.bAutoCmpltShowAsTip;
     143                 :         95 :     m_pAutoCompleteList = rAFFlags.m_pAutoCompleteList;
     144                 :         95 :     pSmartTagMgr = rAFFlags.pSmartTagMgr;
     145                 :         95 :     nAutoCmpltExpandKey = rAFFlags.nAutoCmpltExpandKey;
     146                 :            : 
     147                 :         95 :     nAutoCmpltWordLen = rAFFlags.nAutoCmpltWordLen;
     148                 :         95 :     nAutoCmpltListLen = rAFFlags.nAutoCmpltListLen;
     149                 :            : 
     150                 :         95 :     return *this;
     151                 :            : }
     152                 :            : 
     153                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10