LCOV - code coverage report
Current view: top level - sw/source/core/bastyp - swtypes.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 44 48 91.7 %
Date: 2012-08-25 Functions: 5 7 71.4 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 15 28 53.6 %

           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 "swtypes.hxx"
      30                 :            : #include "tools/string.hxx"
      31                 :            : 
      32                 :            : #include <bodyfrm.hxx>
      33                 :            : #include <cellfrm.hxx>
      34                 :            : #include <colfrm.hxx>
      35                 :            : #include <editeng/unolingu.hxx>
      36                 :            : #include <fntcache.hxx>
      37                 :            : #include <frmfmt.hxx>
      38                 :            : #include <frmtool.hxx>
      39                 :            : #include <hffrm.hxx>
      40                 :            : #include <ndtxt.hxx>
      41                 :            : #include <pagefrm.hxx>
      42                 :            : #include <rowfrm.hxx>
      43                 :            : #include <sectfrm.hxx>
      44                 :            : #include <swatrset.hxx>
      45                 :            : #include <swfntcch.hxx>
      46                 :            : #include <swtable.hxx>
      47                 :            : #include <swtblfmt.hxx>
      48                 :            : #include <tabfrm.hxx>
      49                 :            : #include <txtfrm.hxx>
      50                 :            : #include <UndoDelete.hxx>
      51                 :            : #include <UndoInsert.hxx>
      52                 :            : #include <vcl/svapp.hxx>
      53                 :            : #include <vcl/window.hxx>
      54                 :            : #include <vcl/graph.hxx>
      55                 :            : #include <viscrs.hxx>
      56                 :            : 
      57                 :            : using namespace com::sun::star;
      58                 :            : 
      59                 :         73 : UniString aEmptyStr;    // constant string
      60                 :         73 : rtl::OUString aDotStr('.'); // constant string
      61                 :            : 
      62                 :         73 : IMPL_FIXEDMEMPOOL_NEWDEL( SwAttrSet )
      63                 :         73 : IMPL_FIXEDMEMPOOL_NEWDEL( SwStartNode )
      64                 :         73 : IMPL_FIXEDMEMPOOL_NEWDEL( SwEndNode )
      65                 :         73 : IMPL_FIXEDMEMPOOL_NEWDEL( SwTableBox )
      66                 :         73 : IMPL_FIXEDMEMPOOL_NEWDEL( SwUndoDelete )
      67                 :         73 : IMPL_FIXEDMEMPOOL_NEWDEL( SwUndoInsert )
      68                 :         73 : IMPL_FIXEDMEMPOOL_NEWDEL( SwPaM )
      69                 :         73 : IMPL_FIXEDMEMPOOL_NEWDEL( SwCursor )
      70                 :         73 : IMPL_FIXEDMEMPOOL_NEWDEL( SwShellCrsr )
      71                 :         73 : IMPL_FIXEDMEMPOOL_NEWDEL( SwTxtNode )
      72                 :         73 : IMPL_FIXEDMEMPOOL_NEWDEL( SwpHints )
      73                 :         73 : IMPL_FIXEDMEMPOOL_NEWDEL( SwFntObj )
      74                 :         73 : IMPL_FIXEDMEMPOOL_NEWDEL( SwFontObj )
      75                 :         73 : IMPL_FIXEDMEMPOOL_NEWDEL( SwBorderAttrs )
      76                 :         73 : IMPL_FIXEDMEMPOOL_NEWDEL( SwCellFrm )
      77                 :         73 : IMPL_FIXEDMEMPOOL_NEWDEL( SwRowFrm )
      78                 :         73 : IMPL_FIXEDMEMPOOL_NEWDEL( SwColumnFrm )
      79                 :         73 : IMPL_FIXEDMEMPOOL_NEWDEL( SwSectionFrm )
      80                 :         73 : IMPL_FIXEDMEMPOOL_NEWDEL( SwTabFrm )
      81                 :         73 : IMPL_FIXEDMEMPOOL_NEWDEL( SwPageFrm )
      82                 :         73 : IMPL_FIXEDMEMPOOL_NEWDEL( SwBodyFrm )
      83                 :         73 : IMPL_FIXEDMEMPOOL_NEWDEL( SwHeaderFrm )
      84                 :         73 : IMPL_FIXEDMEMPOOL_NEWDEL( SwFooterFrm )
      85                 :         73 : IMPL_FIXEDMEMPOOL_NEWDEL( SwTxtFrm )
      86                 :         73 : IMPL_FIXEDMEMPOOL_NEWDEL( SwTableFmt )
      87                 :         73 : IMPL_FIXEDMEMPOOL_NEWDEL( SwTableLineFmt )
      88                 :         73 : IMPL_FIXEDMEMPOOL_NEWDEL( SwTableBoxFmt )
      89                 :         73 : IMPL_FIXEDMEMPOOL_NEWDEL( _SwCursor_SavePos )
      90                 :            : 
      91                 :        165 : Size GetGraphicSizeTwip( const Graphic& rGraphic, OutputDevice* pOutDev )
      92                 :            : {
      93         [ +  - ]:        165 :     const MapMode aMapTwip( MAP_TWIP );
      94         [ +  - ]:        165 :     Size aSize( rGraphic.GetPrefSize() );
      95 [ +  - ][ +  - ]:        165 :     if( MAP_PIXEL == rGraphic.GetPrefMapMode().GetMapUnit() )
                 [ +  + ]
      96                 :            :     {
      97         [ +  - ]:        150 :         if( !pOutDev )
      98         [ +  - ]:        150 :             pOutDev = Application::GetDefaultDevice();
      99         [ +  - ]:        150 :         aSize = pOutDev->PixelToLogic( aSize, aMapTwip );
     100                 :            :     }
     101                 :            :     else
     102                 :            :     {
     103                 :            :         aSize = OutputDevice::LogicToLogic( aSize,
     104                 :            :                                             rGraphic.GetPrefMapMode(),
     105 [ +  - ][ +  - ]:         15 :                                             aMapTwip );
                 [ +  - ]
     106                 :            :     }
     107         [ +  - ]:        165 :     return aSize;
     108                 :            : }
     109                 :            : 
     110                 :       6441 : uno::Reference< linguistic2::XSpellChecker1 >  GetSpellChecker()
     111                 :            : {
     112                 :       6441 :     return LinguMgr::GetSpellChecker();
     113                 :            : }
     114                 :            : 
     115                 :       1551 : uno::Reference< linguistic2::XHyphenator >  GetHyphenator()
     116                 :            : {
     117                 :       1551 :     return LinguMgr::GetHyphenator();
     118                 :            : }
     119                 :            : 
     120                 :          0 : uno::Reference< linguistic2::XThesaurus >  GetThesaurus()
     121                 :            : {
     122                 :          0 :     return LinguMgr::GetThesaurus();
     123                 :            : }
     124                 :            : 
     125                 :          0 : uno::Reference< beans::XPropertySet >  GetLinguPropertySet()
     126                 :            : {
     127                 :          0 :     return LinguMgr::GetLinguPropertySet();
     128 [ +  - ][ +  - ]:        219 : }
     129                 :            : 
     130                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10