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

Generated by: LCOV version 1.10