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

Generated by: LCOV version 1.11