LCOV - code coverage report
Current view: top level - editeng/source/misc - swafopt.cxx (source / functions) Hit Total Coverage
Test: commit 0e63ca4fde4e446f346e35849c756a30ca294aab Lines: 66 66 100.0 %
Date: 2014-04-11 Functions: 2 2 100.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 <editeng/swafopt.hxx>
      21             : #include <tools/gen.hxx>
      22             : #include <vcl/keycodes.hxx>
      23             : 
      24          75 : SvxSwAutoFmtFlags::SvxSwAutoFmtFlags()
      25             :     : aBulletFont( OUString("StarSymbol"),
      26          75 :                     Size( 0, 14 ) )
      27             : {
      28             :     bAutoCorrect =
      29             :     bCptlSttSntnc =
      30             :     bCptlSttWrd =
      31             :     bChkFontAttr =
      32             :     bChgUserColl =
      33             :     bChgEnumNum =
      34             :     bAddNonBrkSpace =
      35             :     bChgOrdinalNumber =
      36             :     bChgToEnEmDash =
      37             :     bChgWeightUnderl =
      38             :     bSetINetAttr =
      39             :     bAFmtDelSpacesAtSttEnd =
      40             :     bAFmtDelSpacesBetweenLines =
      41             :     bAFmtByInpDelSpacesAtSttEnd =
      42             :     bAFmtByInpDelSpacesBetweenLines =
      43          75 :     bDummy = true;
      44             : 
      45             :     bReplaceStyles =
      46             :     bDelEmptyNode =
      47             :     bWithRedlining =
      48             :     bAutoCmpltEndless =
      49          75 :     bAutoCmpltAppendBlanc = false;
      50             : 
      51             :     bAutoCmpltShowAsTip =
      52             :     bSetBorder =
      53             :     bCreateTable =
      54             :     bSetNumRule =
      55             :     bAFmtByInput =
      56             :     bRightMargin =
      57             :     bAutoCompleteWords =
      58             :     bAutoCmpltCollectWords =
      59          75 :     bAutoCmpltKeepList = true;
      60             : 
      61             :     bDummy6 = bDummy7 = bDummy8 =
      62          75 :          false;
      63             : 
      64          75 :     nRightMargin = 50;      // dflt. 50 %
      65          75 :     nAutoCmpltExpandKey = KEY_RETURN;
      66             : 
      67          75 :     aBulletFont.SetCharSet( RTL_TEXTENCODING_SYMBOL );
      68          75 :     aBulletFont.SetFamily( FAMILY_DONTKNOW );
      69          75 :     aBulletFont.SetPitch( PITCH_DONTKNOW );
      70          75 :     aBulletFont.SetWeight( WEIGHT_DONTKNOW );
      71          75 :     aBulletFont.SetTransparent( true );
      72             : 
      73          75 :     cBullet = 0x2022;
      74          75 :     cByInputBullet = cBullet;
      75          75 :     aByInputBulletFont = aBulletFont;
      76             : 
      77          75 :     nAutoCmpltWordLen = 8;
      78          75 :     nAutoCmpltListLen = 1000;
      79          75 :     m_pAutoCompleteList = 0;
      80          75 :     pSmartTagMgr = 0;
      81          75 : }
      82             : 
      83             : 
      84          37 : SvxSwAutoFmtFlags& SvxSwAutoFmtFlags::operator=( const SvxSwAutoFmtFlags& rAFFlags )
      85             : {
      86          37 :     bAutoCorrect = rAFFlags.bAutoCorrect;
      87          37 :     bCptlSttSntnc = rAFFlags.bCptlSttSntnc;
      88          37 :     bCptlSttWrd = rAFFlags.bCptlSttWrd;
      89          37 :     bChkFontAttr = rAFFlags.bChkFontAttr;
      90             : 
      91          37 :     bChgUserColl = rAFFlags.bChgUserColl;
      92          37 :     bChgEnumNum = rAFFlags.bChgEnumNum;
      93          37 :     bDelEmptyNode = rAFFlags.bDelEmptyNode;
      94          37 :     bSetNumRule = rAFFlags.bSetNumRule;
      95          37 :     bAFmtByInput = rAFFlags.bAFmtByInput;
      96             : 
      97          37 :     bAddNonBrkSpace = rAFFlags.bAddNonBrkSpace;
      98          37 :     bChgOrdinalNumber = rAFFlags.bChgOrdinalNumber;
      99          37 :     bChgToEnEmDash = rAFFlags.bChgToEnEmDash;
     100          37 :     bChgWeightUnderl = rAFFlags.bChgWeightUnderl;
     101          37 :     bSetINetAttr = rAFFlags.bSetINetAttr;
     102          37 :     bSetBorder = rAFFlags.bSetBorder;
     103          37 :     bCreateTable = rAFFlags.bCreateTable;
     104          37 :     bReplaceStyles = rAFFlags.bReplaceStyles;
     105          37 :     bAFmtDelSpacesAtSttEnd = rAFFlags.bAFmtDelSpacesAtSttEnd;
     106          37 :     bAFmtDelSpacesBetweenLines = rAFFlags.bAFmtDelSpacesBetweenLines;
     107          37 :     bAFmtByInpDelSpacesAtSttEnd = rAFFlags.bAFmtByInpDelSpacesAtSttEnd;
     108          37 :     bAFmtByInpDelSpacesBetweenLines = rAFFlags.bAFmtByInpDelSpacesBetweenLines;
     109             : 
     110          37 :     bDummy = rAFFlags.bDummy;
     111             : 
     112          37 :     bDummy6 = rAFFlags.bDummy6;
     113          37 :     bDummy7 = rAFFlags.bDummy7;
     114          37 :     bDummy8 = rAFFlags.bDummy8;
     115             : 
     116          37 :     bWithRedlining = rAFFlags.bWithRedlining;
     117             : 
     118          37 :     bRightMargin = rAFFlags.bRightMargin;
     119          37 :     nRightMargin = rAFFlags.nRightMargin;
     120             : 
     121          37 :     cBullet = rAFFlags.cBullet;
     122          37 :     aBulletFont = rAFFlags.aBulletFont;
     123             : 
     124          37 :     cByInputBullet = rAFFlags.cByInputBullet;
     125          37 :     aByInputBulletFont = rAFFlags.aByInputBulletFont;
     126             : 
     127          37 :     bAutoCompleteWords = rAFFlags.bAutoCompleteWords;
     128          37 :     bAutoCmpltCollectWords = rAFFlags.bAutoCmpltCollectWords;
     129          37 :     bAutoCmpltKeepList = rAFFlags.bAutoCmpltKeepList;
     130          37 :     bAutoCmpltEndless = rAFFlags.bAutoCmpltEndless;
     131          37 :     bAutoCmpltAppendBlanc = rAFFlags.bAutoCmpltAppendBlanc;
     132          37 :     bAutoCmpltShowAsTip = rAFFlags.bAutoCmpltShowAsTip;
     133          37 :     m_pAutoCompleteList = rAFFlags.m_pAutoCompleteList;
     134          37 :     pSmartTagMgr = rAFFlags.pSmartTagMgr;
     135          37 :     nAutoCmpltExpandKey = rAFFlags.nAutoCmpltExpandKey;
     136             : 
     137          37 :     nAutoCmpltWordLen = rAFFlags.nAutoCmpltWordLen;
     138          37 :     nAutoCmpltListLen = rAFFlags.nAutoCmpltListLen;
     139             : 
     140          37 :     return *this;
     141             : }
     142             : 
     143             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10