LCOV - code coverage report
Current view: top level - sw/inc - charatr.hxx (source / functions) Hit Total Coverage
Test: commit 0e63ca4fde4e446f346e35849c756a30ca294aab Lines: 74 80 92.5 %
Date: 2014-04-11 Functions: 37 40 92.5 %
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 INCLUDED_SW_INC_CHARATR_HXX
      20             : #define INCLUDED_SW_INC_CHARATR_HXX
      21             : 
      22             : #include <format.hxx>
      23             : #include <hintids.hxx>
      24             : 
      25             : // implementation of the character attribute methods of SwAttrSet
      26             : 
      27       36851 : inline const SvxPostureItem      &SwAttrSet::GetPosture(sal_Bool bInP) const
      28       36851 :     {   return (const SvxPostureItem&)Get( RES_CHRATR_POSTURE,bInP); }
      29       36851 : inline const SvxPostureItem      &SwAttrSet::GetCJKPosture(sal_Bool bInP) const
      30       36851 :     {   return (const SvxPostureItem&)Get( RES_CHRATR_CJK_POSTURE,bInP); }
      31       36851 : inline const SvxPostureItem      &SwAttrSet::GetCTLPosture(sal_Bool bInP) const
      32       36851 :     {   return (const SvxPostureItem&)Get( RES_CHRATR_CTL_POSTURE,bInP); }
      33       36851 : inline const SvxWeightItem       &SwAttrSet::GetWeight(sal_Bool bInP) const
      34       36851 :     {   return (const SvxWeightItem&)Get( RES_CHRATR_WEIGHT,bInP); }
      35       36851 : inline const SvxWeightItem       &SwAttrSet::GetCJKWeight(sal_Bool bInP) const
      36       36851 :     {   return (const SvxWeightItem&)Get( RES_CHRATR_CJK_WEIGHT,bInP); }
      37       36851 : inline const SvxWeightItem       &SwAttrSet::GetCTLWeight(sal_Bool bInP) const
      38       36851 :     {   return (const SvxWeightItem&)Get( RES_CHRATR_CTL_WEIGHT,bInP); }
      39       36851 : inline const SvxShadowedItem     &SwAttrSet::GetShadowed(sal_Bool bInP) const
      40       36851 :     {   return (const SvxShadowedItem&)Get( RES_CHRATR_SHADOWED,bInP); }
      41       36851 : inline const SvxAutoKernItem     &SwAttrSet::GetAutoKern(sal_Bool bInP) const
      42       36851 :     {   return (const SvxAutoKernItem&)Get( RES_CHRATR_AUTOKERN,bInP); }
      43       36851 : inline const SvxWordLineModeItem     &SwAttrSet::GetWordLineMode(sal_Bool bInP) const
      44       36851 :     {   return (const SvxWordLineModeItem&)Get( RES_CHRATR_WORDLINEMODE,bInP); }
      45       36851 : inline const SvxContourItem      &SwAttrSet::GetContour(sal_Bool bInP) const
      46       36851 :     {   return (const SvxContourItem&)Get( RES_CHRATR_CONTOUR,bInP); }
      47       36851 : inline const SvxKerningItem      &SwAttrSet::GetKerning(sal_Bool bInP) const
      48       36851 :     {   return (const SvxKerningItem&)Get( RES_CHRATR_KERNING,bInP); }
      49       73382 : inline const SvxUnderlineItem    &SwAttrSet::GetUnderline(sal_Bool bInP) const
      50       73382 :     {   return (const SvxUnderlineItem&)Get( RES_CHRATR_UNDERLINE,bInP); }
      51       73702 : inline const SvxOverlineItem     &SwAttrSet::GetOverline(sal_Bool bInP) const
      52       73702 :     {   return (const SvxOverlineItem&)Get( RES_CHRATR_OVERLINE,bInP); }
      53       36851 : inline const SvxCrossedOutItem   &SwAttrSet::GetCrossedOut(sal_Bool bInP) const
      54       36851 :     {   return (const SvxCrossedOutItem&)Get( RES_CHRATR_CROSSEDOUT,bInP); }
      55       36851 : inline const SvxFontHeightItem         &SwAttrSet::GetSize(sal_Bool bInP) const
      56       36851 :     {   return (const SvxFontHeightItem&)Get( RES_CHRATR_FONTSIZE,bInP); }
      57       36851 : inline const SvxFontHeightItem         &SwAttrSet::GetCJKSize(sal_Bool bInP) const
      58       36851 :     {   return (const SvxFontHeightItem&)Get( RES_CHRATR_CJK_FONTSIZE,bInP); }
      59       36851 : inline const SvxFontHeightItem         &SwAttrSet::GetCTLSize(sal_Bool bInP) const
      60       36851 :     {   return (const SvxFontHeightItem&)Get( RES_CHRATR_CTL_FONTSIZE,bInP); }
      61             : inline const SvxPropSizeItem     &SwAttrSet::GetPropSize(sal_Bool bInP) const
      62             :     {   return (const SvxPropSizeItem&)Get( RES_CHRATR_PROPORTIONALFONTSIZE,bInP); }
      63       37181 : inline const SvxFontItem         &SwAttrSet::GetFont(sal_Bool bInP) const
      64       37181 :     {   return (const SvxFontItem&)Get( RES_CHRATR_FONT,bInP); }
      65       36851 : inline const SvxFontItem         &SwAttrSet::GetCJKFont(sal_Bool bInP) const
      66       36851 :     {   return (const SvxFontItem&)Get( RES_CHRATR_CJK_FONT,bInP); }
      67       36851 : inline const SvxFontItem         &SwAttrSet::GetCTLFont(sal_Bool bInP) const
      68       36851 :     {   return (const SvxFontItem&)Get( RES_CHRATR_CTL_FONT,bInP); }
      69       36862 : inline const SvxColorItem        &SwAttrSet::GetColor(sal_Bool bInP) const
      70       36862 :     {   return (const SvxColorItem&)Get( RES_CHRATR_COLOR,bInP); }
      71             : inline const SvxCharSetColorItem &SwAttrSet::GetCharSetColor(sal_Bool bInP) const
      72             :     {   return (const SvxCharSetColorItem&)Get( RES_CHRATR_CHARSETCOLOR,bInP); }
      73       36867 : inline const SvxLanguageItem     &SwAttrSet::GetLanguage(sal_Bool bInP) const
      74       36867 :     {   return (const SvxLanguageItem&)Get( RES_CHRATR_LANGUAGE,bInP); }
      75       36851 : inline const SvxLanguageItem     &SwAttrSet::GetCJKLanguage(sal_Bool bInP) const
      76       36851 :     {   return (const SvxLanguageItem&)Get( RES_CHRATR_CJK_LANGUAGE,bInP); }
      77       36851 : inline const SvxLanguageItem     &SwAttrSet::GetCTLLanguage(sal_Bool bInP) const
      78       36851 :     {   return (const SvxLanguageItem&)Get( RES_CHRATR_CTL_LANGUAGE,bInP); }
      79       36851 : inline const SvxEscapementItem   &SwAttrSet::GetEscapement(sal_Bool bInP) const
      80       36851 :     {   return (const SvxEscapementItem&)Get( RES_CHRATR_ESCAPEMENT,bInP); }
      81       36851 : inline const SvxCaseMapItem     &SwAttrSet::GetCaseMap(sal_Bool bInP) const
      82       36851 :     {   return (const SvxCaseMapItem&)Get( RES_CHRATR_CASEMAP,bInP); }
      83       36851 : inline const SvxNoHyphenItem    &SwAttrSet::GetNoHyphenHere(sal_Bool bInP) const
      84       36851 :     {   return (const SvxNoHyphenItem&)Get( RES_CHRATR_NOHYPHEN,bInP); }
      85       36851 : inline const SvxBlinkItem  &SwAttrSet::GetBlink(sal_Bool bInP) const
      86       36851 :     {   return (const SvxBlinkItem&)Get( RES_CHRATR_BLINK,bInP); }
      87             : inline const SvxBrushItem &SwAttrSet::GetChrBackground( sal_Bool bInP ) const
      88             :     {   return (const SvxBrushItem&)Get( RES_CHRATR_BACKGROUND, bInP ); }
      89             : inline const SvxBrushItem &SwAttrSet::GetChrHighlight( sal_Bool bInP ) const
      90             :     {   return (const SvxBrushItem&)Get( RES_CHRATR_HIGHLIGHT, bInP ); }
      91       36851 : inline const SvxEmphasisMarkItem &SwAttrSet::GetEmphasisMark( sal_Bool bInP ) const
      92       36851 :     {   return (const SvxEmphasisMarkItem&)Get( RES_CHRATR_EMPHASIS_MARK, bInP ); }
      93       36851 : inline const SvxTwoLinesItem    &SwAttrSet::Get2Lines( sal_Bool bInP ) const
      94       36851 :     {   return (const SvxTwoLinesItem&)Get( RES_CHRATR_TWO_LINES, bInP ); }
      95       36851 : inline const SvxCharScaleWidthItem  &SwAttrSet::GetCharScaleW( sal_Bool bInP ) const
      96       36851 :     {   return (const SvxCharScaleWidthItem&)Get( RES_CHRATR_SCALEW, bInP ); }
      97       37032 : inline const SvxCharRotateItem  &SwAttrSet::GetCharRotate( sal_Bool bInP ) const
      98       37032 :     {   return (const SvxCharRotateItem&)Get( RES_CHRATR_ROTATE, bInP ); }
      99       36851 : inline const SvxCharReliefItem  &SwAttrSet::GetCharRelief( sal_Bool bInP ) const
     100       36851 :     {   return (const SvxCharReliefItem&)Get( RES_CHRATR_RELIEF, bInP ); }
     101       36851 : inline const SvxCharHiddenItem  &SwAttrSet::GetCharHidden( sal_Bool bInP ) const
     102       36851 :     {   return (const SvxCharHiddenItem&)Get( RES_CHRATR_HIDDEN, bInP ); }
     103             : inline const SvxBoxItem  &SwAttrSet::GetCharBorder( sal_Bool bInP ) const
     104             :     {   return (const SvxBoxItem&)Get( RES_CHRATR_BOX, bInP ); }
     105             : inline const SvxShadowItem  &SwAttrSet::GetCharShadow( sal_Bool bInP ) const
     106             :     {   return (const SvxShadowItem&)Get( RES_CHRATR_SHADOW, bInP ); }
     107             : 
     108             : // implementation of the character attribute methods of SwFmt
     109             : 
     110             : inline const SvxPostureItem          &SwFmt::GetPosture(sal_Bool bInP) const
     111             :     {   return aSet.GetPosture(bInP); }
     112             : inline const SvxWeightItem           &SwFmt::GetWeight(sal_Bool bInP) const
     113             :     {   return aSet.GetWeight(bInP); }
     114             : inline const SvxShadowedItem         &SwFmt::GetShadowed(sal_Bool bInP) const
     115             :     {   return aSet.GetShadowed(bInP); }
     116             : inline const SvxAutoKernItem         &SwFmt::GetAutoKern(sal_Bool bInP) const
     117             :     {   return aSet.GetAutoKern(bInP); }
     118             : inline const SvxWordLineModeItem     &SwFmt::GetWordLineMode(sal_Bool bInP) const
     119             :     {   return aSet.GetWordLineMode(bInP); }
     120             : inline const SvxContourItem          &SwFmt::GetContour(sal_Bool bInP) const
     121             :     {   return aSet.GetContour(bInP); }
     122             : inline const SvxKerningItem          &SwFmt::GetKerning(sal_Bool bInP) const
     123             :     {   return aSet.GetKerning(bInP); }
     124           8 : inline const SvxUnderlineItem        &SwFmt::GetUnderline(sal_Bool bInP) const
     125           8 :     {   return aSet.GetUnderline(bInP); }
     126             : inline const SvxOverlineItem         &SwFmt::GetOverline(sal_Bool bInP) const
     127             :     {   return aSet.GetOverline(bInP); }
     128             : inline const SvxCrossedOutItem       &SwFmt::GetCrossedOut(sal_Bool bInP) const
     129             :     {   return aSet.GetCrossedOut(bInP); }
     130           0 : inline const SvxFontHeightItem             &SwFmt::GetSize(sal_Bool bInP) const
     131           0 :     {   return aSet.GetSize(bInP); }
     132             : inline const SvxPropSizeItem         &SwFmt::GetPropSize(sal_Bool bInP) const
     133             :     {   return aSet.GetPropSize(bInP); }
     134         330 : inline const SvxFontItem             &SwFmt::GetFont(sal_Bool bInP) const
     135         330 :     {   return aSet.GetFont(bInP); }
     136           0 : inline const SvxFontItem         &SwFmt::GetCJKFont(sal_Bool bInP) const
     137           0 :     {   return aSet.GetCJKFont(bInP); }
     138           0 : inline const SvxFontItem         &SwFmt::GetCTLFont(sal_Bool bInP) const
     139           0 :     {   return aSet.GetCTLFont(bInP); }
     140          11 : inline const SvxColorItem            &SwFmt::GetColor(sal_Bool bInP) const
     141          11 :     {   return aSet.GetColor(bInP); }
     142             :     inline const SvxCharSetColorItem    &SwFmt::GetCharSetColor(sal_Bool bInP) const
     143             :     {   return aSet.GetCharSetColor(bInP); }
     144             : inline const SvxLanguageItem         &SwFmt::GetLanguage(sal_Bool bInP) const
     145             :     {   return aSet.GetLanguage(bInP); }
     146             : inline const SvxEscapementItem       &SwFmt::GetEscapement(sal_Bool bInP) const
     147             :     {   return aSet.GetEscapement(bInP); }
     148             : inline const SvxCaseMapItem          &SwFmt::GetCaseMap(sal_Bool bInP) const
     149             :     {   return aSet.GetCaseMap(bInP); }
     150             : inline const SvxNoHyphenItem        &SwFmt::GetNoHyphenHere(sal_Bool bInP) const
     151             :     {   return aSet.GetNoHyphenHere(bInP); }
     152             : inline const SvxBlinkItem           &SwFmt::GetBlink(sal_Bool bInP) const
     153             :     {   return aSet.GetBlink(bInP); }
     154             : inline const SvxBrushItem           &SwFmt::GetChrBackground(sal_Bool bInP) const
     155             :     {   return aSet.GetChrBackground(bInP); }
     156             : inline const SvxBrushItem &SwFmt::GetChrHighlight(sal_Bool bInP) const
     157             :     {   return aSet.GetChrHighlight(bInP); }
     158             : inline const SvxEmphasisMarkItem   &SwFmt::GetEmphasisMark( sal_Bool bInP ) const
     159             :     {   return aSet.GetEmphasisMark(bInP); }
     160             : inline const SvxTwoLinesItem       &SwFmt::Get2Lines( sal_Bool bInP ) const
     161             :     {   return aSet.Get2Lines(bInP); }
     162             : inline const SvxCharScaleWidthItem &SwFmt::GetCharScaleW( sal_Bool bInP ) const
     163             :     {   return aSet.GetCharScaleW(bInP); }
     164             : inline const SvxCharRotateItem     &SwFmt::GetCharRotate( sal_Bool bInP ) const
     165             :     {   return aSet.GetCharRotate(bInP); }
     166             : inline const SvxCharReliefItem     &SwFmt::GetCharRelief( sal_Bool bInP ) const
     167             :     {   return aSet.GetCharRelief(bInP); }
     168             : inline const SvxCharHiddenItem      &SwFmt::GetCharHidden( sal_Bool bInP ) const
     169             :     {   return aSet.GetCharHidden(bInP); }
     170             : inline const SvxBoxItem     &SwFmt::GetCharBorder( sal_Bool bInP ) const
     171             :     {   return aSet.GetCharBorder(bInP); }
     172             : inline const SvxShadowItem  &SwFmt::GetCharShadow( sal_Bool bInP ) const
     173             :     {   return aSet.GetCharShadow(bInP); }
     174             : 
     175             : #endif
     176             : 
     177             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10