LCOV - code coverage report
Current view: top level - sw/inc - charatr.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 72 80 90.0 %
Date: 2015-06-13 12:38:46 Functions: 36 40 90.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             : #ifndef INCLUDED_SW_INC_CHARATR_HXX
      20             : #define INCLUDED_SW_INC_CHARATR_HXX
      21             : 
      22             : #include <format.hxx>
      23             : #include <hintids.hxx>
      24             : #include <editeng/postitem.hxx>
      25             : #include <editeng/wghtitem.hxx>
      26             : #include <editeng/shdditem.hxx>
      27             : #include <editeng/autokernitem.hxx>
      28             : #include <editeng/wrlmitem.hxx>
      29             : #include <editeng/contouritem.hxx>
      30             : #include <editeng/kernitem.hxx>
      31             : #include <editeng/udlnitem.hxx>
      32             : #include <editeng/crossedoutitem.hxx>
      33             : #include <editeng/fhgtitem.hxx>
      34             : #include <editeng/prszitem.hxx>
      35             : #include <editeng/fontitem.hxx>
      36             : #include <editeng/charsetcoloritem.hxx>
      37             : #include <editeng/escapementitem.hxx>
      38             : #include <editeng/cmapitem.hxx>
      39             : #include <editeng/nhypitem.hxx>
      40             : #include <editeng/blinkitem.hxx>
      41             : #include <editeng/brushitem.hxx>
      42             : #include <editeng/emphasismarkitem.hxx>
      43             : #include <editeng/twolinesitem.hxx>
      44             : #include <editeng/charscaleitem.hxx>
      45             : #include <editeng/charrotateitem.hxx>
      46             : #include <editeng/charreliefitem.hxx>
      47             : #include <editeng/charhiddenitem.hxx>
      48             : #include <editeng/boxitem.hxx>
      49             : #include <editeng/shaditem.hxx>
      50             : #include <editeng/langitem.hxx>
      51             : 
      52             : // implementation of the character attribute methods of SwAttrSet
      53             : 
      54       57092 : inline const SvxPostureItem      &SwAttrSet::GetPosture(bool bInP) const
      55       57092 :     {   return static_cast<const SvxPostureItem&>(Get( RES_CHRATR_POSTURE,bInP)); }
      56       57092 : inline const SvxPostureItem      &SwAttrSet::GetCJKPosture(bool bInP) const
      57       57092 :     {   return static_cast<const SvxPostureItem&>(Get( RES_CHRATR_CJK_POSTURE,bInP)); }
      58       57092 : inline const SvxPostureItem      &SwAttrSet::GetCTLPosture(bool bInP) const
      59       57092 :     {   return static_cast<const SvxPostureItem&>(Get( RES_CHRATR_CTL_POSTURE,bInP)); }
      60       57092 : inline const SvxWeightItem       &SwAttrSet::GetWeight(bool bInP) const
      61       57092 :     {   return static_cast<const SvxWeightItem&>(Get( RES_CHRATR_WEIGHT,bInP)); }
      62       57092 : inline const SvxWeightItem       &SwAttrSet::GetCJKWeight(bool bInP) const
      63       57092 :     {   return static_cast<const SvxWeightItem&>(Get( RES_CHRATR_CJK_WEIGHT,bInP)); }
      64       57092 : inline const SvxWeightItem       &SwAttrSet::GetCTLWeight(bool bInP) const
      65       57092 :     {   return static_cast<const SvxWeightItem&>(Get( RES_CHRATR_CTL_WEIGHT,bInP)); }
      66       57092 : inline const SvxShadowedItem     &SwAttrSet::GetShadowed(bool bInP) const
      67       57092 :     {   return static_cast<const SvxShadowedItem&>(Get( RES_CHRATR_SHADOWED,bInP)); }
      68       57092 : inline const SvxAutoKernItem     &SwAttrSet::GetAutoKern(bool bInP) const
      69       57092 :     {   return static_cast<const SvxAutoKernItem&>(Get( RES_CHRATR_AUTOKERN,bInP)); }
      70       57092 : inline const SvxWordLineModeItem &SwAttrSet::GetWordLineMode(bool bInP) const
      71       57092 :     {   return static_cast<const SvxWordLineModeItem&>(Get( RES_CHRATR_WORDLINEMODE,bInP)); }
      72       57092 : inline const SvxContourItem      &SwAttrSet::GetContour(bool bInP) const
      73       57092 :     {   return static_cast<const SvxContourItem&>(Get( RES_CHRATR_CONTOUR,bInP)); }
      74       57092 : inline const SvxKerningItem      &SwAttrSet::GetKerning(bool bInP) const
      75       57092 :     {   return static_cast<const SvxKerningItem&>(Get( RES_CHRATR_KERNING,bInP)); }
      76      113854 : inline const SvxUnderlineItem    &SwAttrSet::GetUnderline(bool bInP) const
      77      113854 :     {   return static_cast<const SvxUnderlineItem&>(Get( RES_CHRATR_UNDERLINE,bInP)); }
      78      114184 : inline const SvxOverlineItem     &SwAttrSet::GetOverline(bool bInP) const
      79      114184 :     {   return static_cast<const SvxOverlineItem&>(Get( RES_CHRATR_OVERLINE,bInP)); }
      80       57092 : inline const SvxCrossedOutItem   &SwAttrSet::GetCrossedOut(bool bInP) const
      81       57092 :     {   return static_cast<const SvxCrossedOutItem&>(Get( RES_CHRATR_CROSSEDOUT,bInP)); }
      82       57092 : inline const SvxFontHeightItem   &SwAttrSet::GetSize(bool bInP) const
      83       57092 :     {   return static_cast<const SvxFontHeightItem&>(Get( RES_CHRATR_FONTSIZE,bInP)); }
      84       57092 : inline const SvxFontHeightItem   &SwAttrSet::GetCJKSize(bool bInP) const
      85       57092 :     {   return static_cast<const SvxFontHeightItem&>(Get( RES_CHRATR_CJK_FONTSIZE,bInP)); }
      86       57092 : inline const SvxFontHeightItem   &SwAttrSet::GetCTLSize(bool bInP) const
      87       57092 :     {   return static_cast<const SvxFontHeightItem&>(Get( RES_CHRATR_CTL_FONTSIZE,bInP)); }
      88             : inline const SvxPropSizeItem     &SwAttrSet::GetPropSize(bool bInP) const
      89             :     {   return static_cast<const SvxPropSizeItem&>(Get( RES_CHRATR_PROPORTIONALFONTSIZE,bInP)); }
      90       57755 : inline const SvxFontItem         &SwAttrSet::GetFont(bool bInP) const
      91       57755 :     {   return static_cast<const SvxFontItem&>(Get( RES_CHRATR_FONT,bInP)); }
      92       57092 : inline const SvxFontItem         &SwAttrSet::GetCJKFont(bool bInP) const
      93       57092 :     {   return static_cast<const SvxFontItem&>(Get( RES_CHRATR_CJK_FONT,bInP)); }
      94       57092 : inline const SvxFontItem         &SwAttrSet::GetCTLFont(bool bInP) const
      95       57092 :     {   return static_cast<const SvxFontItem&>(Get( RES_CHRATR_CTL_FONT,bInP)); }
      96       57098 : inline const SvxColorItem        &SwAttrSet::GetColor(bool bInP) const
      97       57098 :     {   return static_cast<const SvxColorItem&>(Get( RES_CHRATR_COLOR,bInP)); }
      98             : inline const SvxCharSetColorItem &SwAttrSet::GetCharSetColor(bool bInP) const
      99             :     {   return static_cast<const SvxCharSetColorItem&>(Get( RES_CHRATR_CHARSETCOLOR,bInP)); }
     100       57108 : inline const SvxLanguageItem     &SwAttrSet::GetLanguage(bool bInP) const
     101       57108 :     {   return static_cast<const SvxLanguageItem&>(Get( RES_CHRATR_LANGUAGE,bInP)); }
     102       57092 : inline const SvxLanguageItem     &SwAttrSet::GetCJKLanguage(bool bInP) const
     103       57092 :     {   return static_cast<const SvxLanguageItem&>(Get( RES_CHRATR_CJK_LANGUAGE,bInP)); }
     104       57092 : inline const SvxLanguageItem     &SwAttrSet::GetCTLLanguage(bool bInP) const
     105       57092 :     {   return static_cast<const SvxLanguageItem&>(Get( RES_CHRATR_CTL_LANGUAGE,bInP)); }
     106       57092 : inline const SvxEscapementItem   &SwAttrSet::GetEscapement(bool bInP) const
     107       57092 :     {   return static_cast<const SvxEscapementItem&>(Get( RES_CHRATR_ESCAPEMENT,bInP)); }
     108       57092 : inline const SvxCaseMapItem      &SwAttrSet::GetCaseMap(bool bInP) const
     109       57092 :     {   return static_cast<const SvxCaseMapItem&>(Get( RES_CHRATR_CASEMAP,bInP)); }
     110       57092 : inline const SvxNoHyphenItem     &SwAttrSet::GetNoHyphenHere(bool bInP) const
     111       57092 :     {   return static_cast<const SvxNoHyphenItem&>(Get( RES_CHRATR_NOHYPHEN,bInP)); }
     112       57092 : inline const SvxBlinkItem        &SwAttrSet::GetBlink(bool bInP) const
     113       57092 :     {   return static_cast<const SvxBlinkItem&>(Get( RES_CHRATR_BLINK,bInP)); }
     114             : inline const SvxBrushItem        &SwAttrSet::GetChrBackground( bool bInP ) const
     115             :     {   return static_cast<const SvxBrushItem&>(Get( RES_CHRATR_BACKGROUND, bInP )); }
     116             : inline const SvxBrushItem        &SwAttrSet::GetChrHighlight( bool bInP ) const
     117             :     {   return static_cast<const SvxBrushItem&>(Get( RES_CHRATR_HIGHLIGHT, bInP )); }
     118       57092 : inline const SvxEmphasisMarkItem &SwAttrSet::GetEmphasisMark( bool bInP ) const
     119       57092 :     {   return static_cast<const SvxEmphasisMarkItem&>(Get( RES_CHRATR_EMPHASIS_MARK, bInP )); }
     120       57092 : inline const SvxTwoLinesItem     &SwAttrSet::Get2Lines( bool bInP ) const
     121       57092 :     {   return static_cast<const SvxTwoLinesItem&>(Get( RES_CHRATR_TWO_LINES, bInP )); }
     122       57092 : inline const SvxCharScaleWidthItem  &SwAttrSet::GetCharScaleW( bool bInP ) const
     123       57092 :     {   return static_cast<const SvxCharScaleWidthItem&>(Get( RES_CHRATR_SCALEW, bInP )); }
     124       57619 : inline const SvxCharRotateItem   &SwAttrSet::GetCharRotate( bool bInP ) const
     125       57619 :     {   return static_cast<const SvxCharRotateItem&>(Get( RES_CHRATR_ROTATE, bInP )); }
     126       57092 : inline const SvxCharReliefItem   &SwAttrSet::GetCharRelief( bool bInP ) const
     127       57092 :     {   return static_cast<const SvxCharReliefItem&>(Get( RES_CHRATR_RELIEF, bInP )); }
     128       57092 : inline const SvxCharHiddenItem   &SwAttrSet::GetCharHidden( bool bInP ) const
     129       57092 :     {   return static_cast<const SvxCharHiddenItem&>(Get( RES_CHRATR_HIDDEN, bInP )); }
     130             : inline const SvxBoxItem          &SwAttrSet::GetCharBorder( bool bInP ) const
     131             :     {   return static_cast<const SvxBoxItem&>(Get( RES_CHRATR_BOX, bInP )); }
     132             : inline const SvxShadowItem       &SwAttrSet::GetCharShadow( bool bInP ) const
     133             :     {   return static_cast<const SvxShadowItem&>(Get( RES_CHRATR_SHADOW, bInP )); }
     134             : 
     135             : // implementation of the character attribute methods of SwFormat
     136             : 
     137             : inline const SvxPostureItem          &SwFormat::GetPosture(bool bInP) const
     138             :     {   return m_aSet.GetPosture(bInP); }
     139             : inline const SvxWeightItem           &SwFormat::GetWeight(bool bInP) const
     140             :     {   return m_aSet.GetWeight(bInP); }
     141             : inline const SvxShadowedItem         &SwFormat::GetShadowed(bool bInP) const
     142             :     {   return m_aSet.GetShadowed(bInP); }
     143             : inline const SvxAutoKernItem         &SwFormat::GetAutoKern(bool bInP) const
     144             :     {   return m_aSet.GetAutoKern(bInP); }
     145             : inline const SvxWordLineModeItem     &SwFormat::GetWordLineMode(bool bInP) const
     146             :     {   return m_aSet.GetWordLineMode(bInP); }
     147             : inline const SvxContourItem          &SwFormat::GetContour(bool bInP) const
     148             :     {   return m_aSet.GetContour(bInP); }
     149             : inline const SvxKerningItem          &SwFormat::GetKerning(bool bInP) const
     150             :     {   return m_aSet.GetKerning(bInP); }
     151           0 : inline const SvxUnderlineItem        &SwFormat::GetUnderline(bool bInP) const
     152           0 :     {   return m_aSet.GetUnderline(bInP); }
     153             : inline const SvxOverlineItem         &SwFormat::GetOverline(bool bInP) const
     154             :     {   return m_aSet.GetOverline(bInP); }
     155             : inline const SvxCrossedOutItem       &SwFormat::GetCrossedOut(bool bInP) const
     156             :     {   return m_aSet.GetCrossedOut(bInP); }
     157           0 : inline const SvxFontHeightItem             &SwFormat::GetSize(bool bInP) const
     158           0 :     {   return m_aSet.GetSize(bInP); }
     159             : inline const SvxPropSizeItem         &SwFormat::GetPropSize(bool bInP) const
     160             :     {   return m_aSet.GetPropSize(bInP); }
     161         662 : inline const SvxFontItem             &SwFormat::GetFont(bool bInP) const
     162         662 :     {   return m_aSet.GetFont(bInP); }
     163           0 : inline const SvxFontItem         &SwFormat::GetCJKFont(bool bInP) const
     164           0 :     {   return m_aSet.GetCJKFont(bInP); }
     165           0 : inline const SvxFontItem         &SwFormat::GetCTLFont(bool bInP) const
     166           0 :     {   return m_aSet.GetCTLFont(bInP); }
     167           6 : inline const SvxColorItem            &SwFormat::GetColor(bool bInP) const
     168           6 :     {   return m_aSet.GetColor(bInP); }
     169             :     inline const SvxCharSetColorItem    &SwFormat::GetCharSetColor(bool bInP) const
     170             :     {   return m_aSet.GetCharSetColor(bInP); }
     171             : inline const SvxLanguageItem         &SwFormat::GetLanguage(bool bInP) const
     172             :     {   return m_aSet.GetLanguage(bInP); }
     173             : inline const SvxEscapementItem       &SwFormat::GetEscapement(bool bInP) const
     174             :     {   return m_aSet.GetEscapement(bInP); }
     175             : inline const SvxCaseMapItem          &SwFormat::GetCaseMap(bool bInP) const
     176             :     {   return m_aSet.GetCaseMap(bInP); }
     177             : inline const SvxNoHyphenItem        &SwFormat::GetNoHyphenHere(bool bInP) const
     178             :     {   return m_aSet.GetNoHyphenHere(bInP); }
     179             : inline const SvxBlinkItem           &SwFormat::GetBlink(bool bInP) const
     180             :     {   return m_aSet.GetBlink(bInP); }
     181             : inline const SvxBrushItem           &SwFormat::GetChrBackground(bool bInP) const
     182             :     {   return m_aSet.GetChrBackground(bInP); }
     183             : inline const SvxBrushItem &SwFormat::GetChrHighlight(bool bInP) const
     184             :     {   return m_aSet.GetChrHighlight(bInP); }
     185             : inline const SvxEmphasisMarkItem   &SwFormat::GetEmphasisMark( bool bInP ) const
     186             :     {   return m_aSet.GetEmphasisMark(bInP); }
     187             : inline const SvxTwoLinesItem       &SwFormat::Get2Lines( bool bInP ) const
     188             :     {   return m_aSet.Get2Lines(bInP); }
     189             : inline const SvxCharScaleWidthItem &SwFormat::GetCharScaleW( bool bInP ) const
     190             :     {   return m_aSet.GetCharScaleW(bInP); }
     191             : inline const SvxCharRotateItem     &SwFormat::GetCharRotate( bool bInP ) const
     192             :     {   return m_aSet.GetCharRotate(bInP); }
     193             : inline const SvxCharReliefItem     &SwFormat::GetCharRelief( bool bInP ) const
     194             :     {   return m_aSet.GetCharRelief(bInP); }
     195             : inline const SvxCharHiddenItem      &SwFormat::GetCharHidden( bool bInP ) const
     196             :     {   return m_aSet.GetCharHidden(bInP); }
     197             : inline const SvxBoxItem     &SwFormat::GetCharBorder( bool bInP ) const
     198             :     {   return m_aSet.GetCharBorder(bInP); }
     199             : inline const SvxShadowItem  &SwFormat::GetCharShadow( bool bInP ) const
     200             :     {   return m_aSet.GetCharShadow(bInP); }
     201             : 
     202             : #endif
     203             : 
     204             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11