LCOV - code coverage report
Current view: top level - sw/source/core/bastyp - swtypes.cxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 45 47 95.7 %
Date: 2015-06-13 12:38:46 Functions: 6 7 85.7 %
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 "swtypes.hxx"
      21             : #include <rtl/ustring.hxx>
      22             : 
      23             : #include <bodyfrm.hxx>
      24             : #include <cellfrm.hxx>
      25             : #include <colfrm.hxx>
      26             : #include <editeng/unolingu.hxx>
      27             : #include <fntcache.hxx>
      28             : #include <frmfmt.hxx>
      29             : #include <frmtool.hxx>
      30             : #include <hffrm.hxx>
      31             : #include <ndtxt.hxx>
      32             : #include <pagefrm.hxx>
      33             : #include <rowfrm.hxx>
      34             : #include <sectfrm.hxx>
      35             : #include <swatrset.hxx>
      36             : #include <swfntcch.hxx>
      37             : #include <swtable.hxx>
      38             : #include <swtblfmt.hxx>
      39             : #include <tabfrm.hxx>
      40             : #include <txtfrm.hxx>
      41             : #include <UndoDelete.hxx>
      42             : #include <UndoInsert.hxx>
      43             : #include <vcl/svapp.hxx>
      44             : #include <vcl/window.hxx>
      45             : #include <vcl/graph.hxx>
      46             : #include <viscrs.hxx>
      47             : 
      48             : using namespace com::sun::star;
      49             : 
      50          59 : OUString aEmptyOUStr;  // remove once aEmptyOUStr can be changed to OUString
      51             : 
      52          59 : IMPL_FIXEDMEMPOOL_NEWDEL( SwAttrSet )
      53          59 : IMPL_FIXEDMEMPOOL_NEWDEL( SwStartNode )
      54          59 : IMPL_FIXEDMEMPOOL_NEWDEL( SwEndNode )
      55          59 : IMPL_FIXEDMEMPOOL_NEWDEL( SwTableBox )
      56          59 : IMPL_FIXEDMEMPOOL_NEWDEL( SwUndoDelete )
      57          59 : IMPL_FIXEDMEMPOOL_NEWDEL( SwUndoInsert )
      58          59 : IMPL_FIXEDMEMPOOL_NEWDEL( SwPaM )
      59          59 : IMPL_FIXEDMEMPOOL_NEWDEL( SwCursor )
      60          59 : IMPL_FIXEDMEMPOOL_NEWDEL( SwShellCrsr )
      61          59 : IMPL_FIXEDMEMPOOL_NEWDEL( SwTextNode )
      62          59 : IMPL_FIXEDMEMPOOL_NEWDEL( SwpHints )
      63          59 : IMPL_FIXEDMEMPOOL_NEWDEL( SwFntObj )
      64          59 : IMPL_FIXEDMEMPOOL_NEWDEL( SwFontObj )
      65          59 : IMPL_FIXEDMEMPOOL_NEWDEL( SwBorderAttrs )
      66          59 : IMPL_FIXEDMEMPOOL_NEWDEL( SwCellFrm )
      67          59 : IMPL_FIXEDMEMPOOL_NEWDEL( SwRowFrm )
      68          59 : IMPL_FIXEDMEMPOOL_NEWDEL( SwColumnFrm )
      69          59 : IMPL_FIXEDMEMPOOL_NEWDEL( SwSectionFrm )
      70          59 : IMPL_FIXEDMEMPOOL_NEWDEL( SwTabFrm )
      71          59 : IMPL_FIXEDMEMPOOL_NEWDEL( SwPageFrm )
      72          59 : IMPL_FIXEDMEMPOOL_NEWDEL( SwBodyFrm )
      73          59 : IMPL_FIXEDMEMPOOL_NEWDEL( SwHeaderFrm )
      74          59 : IMPL_FIXEDMEMPOOL_NEWDEL( SwFooterFrm )
      75          59 : IMPL_FIXEDMEMPOOL_NEWDEL( SwTextFrm )
      76          59 : IMPL_FIXEDMEMPOOL_NEWDEL( SwTableFormat )
      77          59 : IMPL_FIXEDMEMPOOL_NEWDEL( SwTableLineFormat )
      78          59 : IMPL_FIXEDMEMPOOL_NEWDEL( SwTableBoxFormat )
      79          59 : IMPL_FIXEDMEMPOOL_NEWDEL( _SwCursor_SavePos )
      80             : 
      81         873 : Size GetGraphicSizeTwip(const Graphic& rGraphic, vcl::RenderContext* pOutDev)
      82             : {
      83         873 :     const MapMode aMapTwip(MAP_TWIP);
      84         873 :     Size aSize(rGraphic.GetPrefSize());
      85         873 :     if (MAP_PIXEL == rGraphic.GetPrefMapMode().GetMapUnit())
      86             :     {
      87         420 :         if (!pOutDev)
      88         420 :             pOutDev = Application::GetDefaultDevice();
      89         420 :         aSize = pOutDev->PixelToLogic(aSize, aMapTwip);
      90             :     }
      91             :     else
      92             :     {
      93         453 :         aSize = OutputDevice::LogicToLogic(aSize, rGraphic.GetPrefMapMode(), aMapTwip);
      94             :     }
      95         873 :     return aSize;
      96             : }
      97             : 
      98    48519662 : uno::Reference< linguistic2::XSpellChecker1 >  GetSpellChecker()
      99             : {
     100    48519662 :     return LinguMgr::GetSpellChecker();
     101             : }
     102             : 
     103        9089 : uno::Reference< linguistic2::XHyphenator >  GetHyphenator()
     104             : {
     105        9089 :     return LinguMgr::GetHyphenator();
     106             : }
     107             : 
     108           0 : uno::Reference< linguistic2::XThesaurus >  GetThesaurus()
     109             : {
     110           0 :     return LinguMgr::GetThesaurus();
     111             : }
     112             : 
     113           4 : uno::Reference< linguistic2::XLinguProperties >  GetLinguPropertySet()
     114             : {
     115           4 :     return LinguMgr::GetLinguPropertySet();
     116         177 : }
     117             : 
     118             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11