LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/sw/inc - frmatr.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 54 56 96.4 %
Date: 2013-07-09 Functions: 27 28 96.4 %
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             : #ifndef _FRMATR_HXX
      20             : #define _FRMATR_HXX
      21             : 
      22             : #include <hintids.hxx> // IDs of attributes before frmitems to make sure
      23             : #include <format.hxx>  // they are available for implementation of the inlines.
      24             : 
      25             : // Inlines
      26             : 
      27             : 
      28             : // Implementation of FrameAttribute methods of SwAttrSet.
      29          46 : inline const SvxPaperBinItem &SwAttrSet::GetPaperBin(sal_Bool bInP) const
      30          46 :     { return (const SvxPaperBinItem&)Get( RES_PAPER_BIN,bInP); }
      31      163228 : inline const SvxLRSpaceItem &SwAttrSet::GetLRSpace(sal_Bool bInP) const
      32      163228 :     { return (const SvxLRSpaceItem&)Get( RES_LR_SPACE,bInP); }
      33       18067 : inline const SvxULSpaceItem &SwAttrSet::GetULSpace(sal_Bool bInP) const
      34       18067 :     { return (const SvxULSpaceItem&)Get( RES_UL_SPACE,bInP); }
      35         860 : inline const SvxPrintItem &SwAttrSet::GetPrint(sal_Bool bInP) const
      36         860 :     { return (const SvxPrintItem&)Get( RES_PRINT,bInP); }
      37         385 : inline const SvxOpaqueItem &SwAttrSet::GetOpaque(sal_Bool bInP) const
      38         385 :     { return (const SvxOpaqueItem&)Get( RES_OPAQUE,bInP); }
      39       39230 : inline const SvxProtectItem &SwAttrSet::GetProtect(sal_Bool bInP) const
      40       39230 :     { return (const SvxProtectItem&)Get( RES_PROTECT,bInP); }
      41       30253 : inline const SvxBoxItem &SwAttrSet::GetBox(sal_Bool bInP) const
      42       30253 :     { return (const SvxBoxItem&)Get( RES_BOX,bInP); }
      43       21926 : inline const SvxFmtKeepItem &SwAttrSet::GetKeep(sal_Bool bInP) const
      44       21926 :     { return (const SvxFmtKeepItem&)Get( RES_KEEP,bInP); }
      45      109715 : inline const SvxBrushItem &SwAttrSet::GetBackground(sal_Bool bInP) const
      46      109715 :     { return (const SvxBrushItem&)Get( RES_BACKGROUND,bInP); }
      47       91140 : inline const XFillStyleItem &SwAttrSet::GetFillStyle(sal_Bool bInP) const
      48       91140 :     { return (const XFillStyleItem&)Get( RES_FILL_STYLE,bInP); }
      49       91140 : inline const XFillGradientItem &SwAttrSet::GetFillGradient(sal_Bool bInP) const
      50       91140 :     { return (const XFillGradientItem&)Get( RES_FILL_GRADIENT,bInP); }
      51        9850 : inline const SvxShadowItem &SwAttrSet::GetShadow(sal_Bool bInP) const
      52        9850 :     { return (const SvxShadowItem&)Get( RES_SHADOW,bInP); }
      53       11445 : inline const SvxFmtBreakItem &SwAttrSet::GetBreak(sal_Bool bInP) const
      54       11445 :     { return (const SvxFmtBreakItem&)Get( RES_BREAK,bInP); }
      55           6 : inline const SvxMacroItem &SwAttrSet::GetMacro(sal_Bool bInP) const
      56           6 :     { return (const SvxMacroItem&)Get( RES_FRMMACRO,bInP); }
      57        6410 : inline const SvxFrameDirectionItem &SwAttrSet::GetFrmDir(sal_Bool bInP) const
      58        6410 :     { return (const SvxFrameDirectionItem&)Get( RES_FRAMEDIR,bInP); }
      59             : 
      60             : 
      61             : // Implementation of FrameAttribute methods of SwFmt.
      62          46 : inline const SvxPaperBinItem &SwFmt::GetPaperBin(sal_Bool bInP) const
      63          46 :     { return aSet.GetPaperBin(bInP); }
      64        5950 : inline const SvxLRSpaceItem &SwFmt::GetLRSpace(sal_Bool bInP) const
      65        5950 :     { return aSet.GetLRSpace(bInP); }
      66        4293 : inline const SvxULSpaceItem &SwFmt::GetULSpace(sal_Bool bInP) const
      67        4293 :     { return aSet.GetULSpace(bInP); }
      68         860 : inline const SvxPrintItem &SwFmt::GetPrint(sal_Bool bInP) const
      69         860 :     { return aSet.GetPrint(bInP); }
      70         385 : inline const SvxOpaqueItem &SwFmt::GetOpaque(sal_Bool bInP) const
      71         385 :     { return aSet.GetOpaque(bInP); }
      72       39230 : inline const SvxProtectItem &SwFmt::GetProtect(sal_Bool bInP) const
      73       39230 :     { return aSet.GetProtect(bInP); }
      74        1534 : inline const SvxBoxItem &SwFmt::GetBox(sal_Bool bInP) const
      75        1534 :     { return aSet.GetBox(bInP); }
      76           0 : inline const SvxFmtKeepItem &SwFmt::GetKeep(sal_Bool bInP) const
      77           0 :     { return aSet.GetKeep(bInP); }
      78        7406 : inline const SvxBrushItem &SwFmt::GetBackground(sal_Bool bInP) const
      79        7406 :     { return aSet.GetBackground(bInP); }
      80          63 : inline const SvxShadowItem &SwFmt::GetShadow(sal_Bool bInP) const
      81          63 :     { return aSet.GetShadow(bInP); }
      82          15 : inline const SvxFmtBreakItem &SwFmt::GetBreak(sal_Bool bInP) const
      83          15 :     { return aSet.GetBreak(bInP); }
      84           6 : inline const SvxMacroItem &SwFmt::GetMacro(sal_Bool bInP) const
      85           6 :     { return aSet.GetMacro(bInP); }
      86         684 : inline const SvxFrameDirectionItem  &SwFmt::GetFrmDir(sal_Bool bInP) const
      87         684 :     { return aSet.GetFrmDir(bInP); }
      88             : 
      89             : #endif //_FRMATR_HXX
      90             : 
      91             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10