LCOV - code coverage report
Current view: top level - svx/source/xoutdev - xattr2.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 115 335 34.3 %
Date: 2012-08-25 Functions: 97 166 58.4 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 55 258 21.3 %

           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 <com/sun/star/drawing/LineJoint.hpp>
      30                 :            : #include <com/sun/star/uno/Any.hxx>
      31                 :            : 
      32                 :            : #include <svx/dialogs.hrc>
      33                 :            : #include "svx/xattr.hxx"
      34                 :            : #include <svx/xtable.hxx>
      35                 :            : #include <svx/dialmgr.hxx>
      36                 :            : #include <editeng/itemtype.hxx>
      37                 :            : #include <svx/xdef.hxx>
      38                 :            : 
      39                 :            : /************************************************************************/
      40                 :            : 
      41                 :            : //------------------------------
      42                 :            : // class XLineTransparenceItem
      43                 :            : //------------------------------
      44 [ -  + ][ -  + ]:     135605 : TYPEINIT1_AUTOFACTORY(XLineTransparenceItem, SfxUInt16Item);
                 [ #  # ]
      45                 :            : 
      46                 :            : /*************************************************************************
      47                 :            : |*
      48                 :            : |*    XLineTransparenceItem::XLineTransparenceItem(sal_uInt16)
      49                 :            : |*
      50                 :            : *************************************************************************/
      51                 :            : 
      52                 :       3632 : XLineTransparenceItem::XLineTransparenceItem(sal_uInt16 nLineTransparence) :
      53                 :       3632 :     SfxUInt16Item(XATTR_LINETRANSPARENCE, nLineTransparence)
      54                 :            : {
      55                 :       3632 : }
      56                 :            : 
      57                 :            : /*************************************************************************
      58                 :            : |*
      59                 :            : |*    XLineTransparenceItem::XLineTransparenceItem(SvStream& rIn)
      60                 :            : |*
      61                 :            : *************************************************************************/
      62                 :            : 
      63                 :          0 : XLineTransparenceItem::XLineTransparenceItem(SvStream& rIn) :
      64                 :          0 :     SfxUInt16Item(XATTR_LINETRANSPARENCE, rIn)
      65                 :            : {
      66                 :          0 : }
      67                 :            : 
      68                 :            : /*************************************************************************
      69                 :            : |*
      70                 :            : |*    XLineTransparenceItem::Clone(SfxItemPool* pPool) const
      71                 :            : |*
      72                 :            : *************************************************************************/
      73                 :            : 
      74                 :      26368 : SfxPoolItem* XLineTransparenceItem::Clone(SfxItemPool* /*pPool*/) const
      75                 :            : {
      76         [ +  - ]:      26368 :     return new XLineTransparenceItem(*this);
      77                 :            : }
      78                 :            : 
      79                 :            : /*************************************************************************
      80                 :            : |*
      81                 :            : |*    SfxPoolItem* XLineTransparenceItem::Create(SvStream& rIn, sal_uInt16 nVer) const
      82                 :            : |*
      83                 :            : *************************************************************************/
      84                 :            : 
      85                 :          0 : SfxPoolItem* XLineTransparenceItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) const
      86                 :            : {
      87         [ #  # ]:          0 :     return new XLineTransparenceItem(rIn);
      88                 :            : }
      89                 :            : 
      90                 :            : //------------------------------------------------------------------------
      91                 :            : 
      92                 :          0 : SfxItemPresentation XLineTransparenceItem::GetPresentation
      93                 :            : (
      94                 :            :     SfxItemPresentation ePres,
      95                 :            :     SfxMapUnit          /*eCoreUnit*/,
      96                 :            :     SfxMapUnit          /*ePresUnit*/,
      97                 :            :     XubString&          rText, const IntlWrapper *
      98                 :            : )   const
      99                 :            : {
     100                 :          0 :     rText.Erase();
     101                 :            : 
     102   [ #  #  #  # ]:          0 :     switch ( ePres )
     103                 :            :     {
     104                 :            :         case SFX_ITEM_PRESENTATION_NONE:
     105                 :          0 :             return ePres;
     106                 :            :         case SFX_ITEM_PRESENTATION_COMPLETE:
     107 [ #  # ][ #  # ]:          0 :             rText = XubString( ResId( RID_SVXSTR_TRANSPARENCE, DIALOG_MGR() ) );
                 [ #  # ]
     108                 :          0 :             rText.AppendAscii(": ");
     109                 :            :         case SFX_ITEM_PRESENTATION_NAMELESS:
     110         [ #  # ]:          0 :             rText += XubString( UniString::CreateFromInt32((sal_uInt16) GetValue()) );
     111                 :          0 :             rText += sal_Unicode('%');
     112                 :          0 :             return ePres;
     113                 :            :         default:
     114                 :          0 :             return SFX_ITEM_PRESENTATION_NONE;
     115                 :            :     }
     116                 :            : }
     117                 :            : 
     118                 :            : //-----------------------
     119                 :            : // class XLineJointItem -
     120                 :            : //-----------------------
     121                 :            : 
     122 [ -  + ][ -  + ]:      34960 : TYPEINIT1_AUTOFACTORY(XLineJointItem, SfxEnumItem);
                 [ #  # ]
     123                 :            : 
     124                 :            : // -----------------------------------------------------------------------------
     125                 :            : 
     126                 :       3974 : XLineJointItem::XLineJointItem( XLineJoint eLineJoint ) :
     127                 :       3974 :     SfxEnumItem(XATTR_LINEJOINT, sal::static_int_cast< sal_uInt16 >(eLineJoint))
     128                 :            : {
     129                 :       3974 : }
     130                 :            : 
     131                 :            : // -----------------------------------------------------------------------------
     132                 :            : 
     133                 :          0 : XLineJointItem::XLineJointItem( SvStream& rIn ) :
     134                 :          0 :     SfxEnumItem( XATTR_LINEJOINT, rIn )
     135                 :            : {
     136                 :          0 : }
     137                 :            : 
     138                 :            : // -----------------------------------------------------------------------------
     139                 :            : 
     140                 :          0 : sal_uInt16 XLineJointItem::GetVersion( sal_uInt16 /*nFileFormatVersion*/) const
     141                 :            : {
     142                 :          0 :     return 1;
     143                 :            : }
     144                 :            : 
     145                 :            : // -----------------------------------------------------------------------------
     146                 :            : 
     147                 :          0 : SfxPoolItem* XLineJointItem::Create( SvStream& rIn, sal_uInt16 nVer ) const
     148                 :            : {
     149         [ #  # ]:          0 :     XLineJointItem* pRet = new XLineJointItem( rIn );
     150                 :            : 
     151         [ #  # ]:          0 :     if(nVer < 1)
     152                 :          0 :         pRet->SetValue(XLINEJOINT_ROUND);
     153                 :            : 
     154                 :          0 :     return pRet;
     155                 :            : }
     156                 :            : 
     157                 :            : // -----------------------------------------------------------------------------
     158                 :            : 
     159                 :       6025 : SfxPoolItem* XLineJointItem::Clone(SfxItemPool* /*pPool*/) const
     160                 :            : {
     161         [ +  - ]:       6025 :     return new XLineJointItem( *this );
     162                 :            : }
     163                 :            : 
     164                 :            : // -----------------------------------------------------------------------------
     165                 :            : 
     166                 :          0 : SfxItemPresentation XLineJointItem::GetPresentation( SfxItemPresentation ePres, SfxMapUnit /*eCoreUnit*/,
     167                 :            :                                                      SfxMapUnit /*ePresUnit*/, XubString& rText, const IntlWrapper*) const
     168                 :            : {
     169                 :          0 :     rText.Erase();
     170                 :            : 
     171      [ #  #  # ]:          0 :     switch( ePres )
     172                 :            :     {
     173                 :          0 :         case SFX_ITEM_PRESENTATION_NONE: return ePres;
     174                 :            : 
     175                 :            :         case SFX_ITEM_PRESENTATION_COMPLETE:
     176                 :            :         case SFX_ITEM_PRESENTATION_NAMELESS:
     177                 :            :         {
     178                 :          0 :             sal_uInt16 nId = 0;
     179                 :            : 
     180   [ #  #  #  #  :          0 :             switch( GetValue() )
                   #  # ]
     181                 :            :             {
     182                 :            :                 case( XLINEJOINT_NONE ):
     183                 :          0 :                     nId = RID_SVXSTR_LINEJOINT_NONE;
     184                 :          0 :                 break;
     185                 :            : 
     186                 :            :                 case( XLINEJOINT_MIDDLE ):
     187                 :          0 :                     nId = RID_SVXSTR_LINEJOINT_MIDDLE;
     188                 :          0 :                 break;
     189                 :            : 
     190                 :            : 
     191                 :            :                 case( XLINEJOINT_BEVEL ):
     192                 :          0 :                     nId = RID_SVXSTR_LINEJOINT_BEVEL;
     193                 :          0 :                 break;
     194                 :            : 
     195                 :            : 
     196                 :            :                 case( XLINEJOINT_MITER ):
     197                 :          0 :                     nId = RID_SVXSTR_LINEJOINT_MITER;
     198                 :          0 :                 break;
     199                 :            : 
     200                 :            : 
     201                 :            :                 case( XLINEJOINT_ROUND ):
     202                 :          0 :                     nId = RID_SVXSTR_LINEJOINT_ROUND;
     203                 :          0 :                 break;
     204                 :            :             }
     205                 :            : 
     206         [ #  # ]:          0 :             if( nId )
     207 [ #  # ][ #  # ]:          0 :                 rText = SVX_RESSTR( nId );
     208                 :            : 
     209                 :          0 :             return ePres;
     210                 :            :         }
     211                 :            :         default:
     212                 :          0 :             return SFX_ITEM_PRESENTATION_NONE;
     213                 :            :     }
     214                 :            : }
     215                 :            : 
     216                 :            : // -----------------------------------------------------------------------------
     217                 :            : 
     218                 :        231 : bool XLineJointItem::QueryValue( ::com::sun::star::uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
     219                 :            : {
     220                 :        231 :     ::com::sun::star::drawing::LineJoint eJoint = ::com::sun::star::drawing::LineJoint_NONE;
     221                 :            : 
     222   [ -  -  -  -  :        231 :     switch( GetValue() )
                   +  - ]
     223                 :            :     {
     224                 :            :     case XLINEJOINT_NONE:
     225                 :          0 :         break;
     226                 :            :     case XLINEJOINT_MIDDLE:
     227                 :          0 :         eJoint = ::com::sun::star::drawing::LineJoint_MIDDLE;
     228                 :          0 :         break;
     229                 :            :     case XLINEJOINT_BEVEL:
     230                 :          0 :         eJoint = ::com::sun::star::drawing::LineJoint_BEVEL;
     231                 :          0 :         break;
     232                 :            :     case XLINEJOINT_MITER:
     233                 :          0 :         eJoint = ::com::sun::star::drawing::LineJoint_MITER;
     234                 :          0 :         break;
     235                 :            :     case XLINEJOINT_ROUND:
     236                 :        231 :         eJoint = ::com::sun::star::drawing::LineJoint_ROUND;
     237                 :        231 :         break;
     238                 :            :     default:
     239                 :            :         OSL_FAIL( "Unknown LineJoint enum value!" );
     240                 :            :     }
     241                 :            : 
     242         [ +  - ]:        231 :     rVal <<= eJoint;
     243                 :        231 :     return true;
     244                 :            : }
     245                 :            : 
     246                 :            : // -----------------------------------------------------------------------------
     247                 :            : 
     248                 :       4603 : bool XLineJointItem::PutValue( const ::com::sun::star::uno::Any& rVal, sal_uInt8 /*nMemberId*/)
     249                 :            : {
     250                 :       4603 :     XLineJoint eJoint = XLINEJOINT_NONE;
     251                 :            :     ::com::sun::star::drawing::LineJoint eUnoJoint;
     252                 :            : 
     253 [ +  - ][ -  + ]:       4603 :     if(!(rVal >>= eUnoJoint))
     254                 :            :     {
     255                 :            :         // also try an int (for Basic)
     256                 :          0 :         sal_Int32 nLJ = 0;
     257         [ #  # ]:          0 :         if(!(rVal >>= nLJ))
     258                 :          0 :             return false;
     259                 :          0 :         eUnoJoint = (::com::sun::star::drawing::LineJoint)nLJ;
     260                 :            :     }
     261                 :            : 
     262   [ -  +  +  +  :       4603 :     switch( eUnoJoint )
                      - ]
     263                 :            :     {
     264                 :            :     case ::com::sun::star::drawing::LineJoint_MIDDLE:
     265                 :          0 :         eJoint = XLINEJOINT_MIDDLE;
     266                 :          0 :         break;
     267                 :            :     case ::com::sun::star::drawing::LineJoint_BEVEL:
     268                 :         26 :         eJoint = XLINEJOINT_BEVEL;
     269                 :         26 :         break;
     270                 :            :     case ::com::sun::star::drawing::LineJoint_MITER:
     271                 :          9 :         eJoint = XLINEJOINT_MITER;
     272                 :          9 :         break;
     273                 :            :     case ::com::sun::star::drawing::LineJoint_ROUND:
     274                 :       4568 :         eJoint = XLINEJOINT_ROUND;
     275                 :       4568 :         break;
     276                 :            :     default:
     277                 :          0 :         break;
     278                 :            :     }
     279                 :            : 
     280                 :       4603 :     SetValue( sal::static_int_cast< sal_uInt16 >( eJoint ) );
     281                 :            : 
     282                 :       4603 :     return true;
     283                 :            : }
     284                 :            : 
     285                 :            : // -----------------------------------------------------------------------------
     286                 :            : 
     287                 :          0 : sal_uInt16 XLineJointItem::GetValueCount() const
     288                 :            : {
     289                 :            :     // don't forget to update the api interface also
     290                 :          0 :     return 5;
     291                 :            : }
     292                 :            : 
     293                 :            : //------------------------------
     294                 :            : // class XFillTransparenceItem
     295                 :            : //------------------------------
     296 [ -  + ][ -  + ]:     102808 : TYPEINIT1_AUTOFACTORY(XFillTransparenceItem, SfxUInt16Item);
                 [ #  # ]
     297                 :            : 
     298                 :            : /*************************************************************************
     299                 :            : |*
     300                 :            : |*    XFillTransparenceItem::XFillTransparenceItem(sal_uInt16)
     301                 :            : |*
     302                 :            : *************************************************************************/
     303                 :            : 
     304                 :       3661 : XFillTransparenceItem::XFillTransparenceItem(sal_uInt16 nFillTransparence) :
     305                 :       3661 :     SfxUInt16Item(XATTR_FILLTRANSPARENCE, nFillTransparence)
     306                 :            : {
     307                 :       3661 : }
     308                 :            : 
     309                 :            : /*************************************************************************
     310                 :            : |*
     311                 :            : |*    XFillTransparenceItem::XFillTransparenceItem(SvStream& rIn)
     312                 :            : |*
     313                 :            : *************************************************************************/
     314                 :            : 
     315                 :          0 : XFillTransparenceItem::XFillTransparenceItem(SvStream& rIn) :
     316                 :          0 :     SfxUInt16Item(XATTR_FILLTRANSPARENCE, rIn)
     317                 :            : {
     318                 :          0 : }
     319                 :            : 
     320                 :            : /*************************************************************************
     321                 :            : |*
     322                 :            : |*    XFillTransparenceItem::Clone(SfxItemPool* pPool) const
     323                 :            : |*
     324                 :            : *************************************************************************/
     325                 :            : 
     326                 :      19905 : SfxPoolItem* XFillTransparenceItem::Clone(SfxItemPool* /*pPool*/) const
     327                 :            : {
     328         [ +  - ]:      19905 :     return new XFillTransparenceItem(*this);
     329                 :            : }
     330                 :            : 
     331                 :            : /*************************************************************************
     332                 :            : |*
     333                 :            : |*    SfxPoolItem* XFillTransparenceItem::Create(SvStream& rIn, sal_uInt16 nVer) const
     334                 :            : |*
     335                 :            : *************************************************************************/
     336                 :            : 
     337                 :          0 : SfxPoolItem* XFillTransparenceItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) const
     338                 :            : {
     339         [ #  # ]:          0 :     return new XFillTransparenceItem(rIn);
     340                 :            : }
     341                 :            : 
     342                 :            : //------------------------------------------------------------------------
     343                 :            : 
     344                 :          0 : SfxItemPresentation XFillTransparenceItem::GetPresentation
     345                 :            : (
     346                 :            :     SfxItemPresentation ePres,
     347                 :            :     SfxMapUnit          /*eCoreUnit*/,
     348                 :            :     SfxMapUnit          /*ePresUnit*/,
     349                 :            :     XubString&          rText, const IntlWrapper *
     350                 :            : )   const
     351                 :            : {
     352                 :          0 :     rText.Erase();
     353                 :            : 
     354   [ #  #  #  # ]:          0 :     switch ( ePres )
     355                 :            :     {
     356                 :            :         case SFX_ITEM_PRESENTATION_NONE:
     357                 :          0 :             return ePres;
     358                 :            :         case SFX_ITEM_PRESENTATION_COMPLETE:
     359 [ #  # ][ #  # ]:          0 :             rText = XubString( ResId( RID_SVXSTR_TRANSPARENCE, DIALOG_MGR() ) );
                 [ #  # ]
     360                 :          0 :             rText.AppendAscii(": ");
     361                 :            :         case SFX_ITEM_PRESENTATION_NAMELESS:
     362         [ #  # ]:          0 :             rText += XubString( UniString::CreateFromInt32((sal_uInt16) GetValue() ));
     363                 :          0 :             rText += sal_Unicode('%');
     364                 :          0 :             return ePres;
     365                 :            :         default:
     366                 :          0 :             return SFX_ITEM_PRESENTATION_NONE;
     367                 :            :     }
     368                 :            : }
     369                 :            : 
     370                 :            : //------------------------------
     371                 :            : // class XFormTextShadowTranspItem
     372                 :            : //------------------------------
     373 [ -  + ][ -  + ]:      10230 : TYPEINIT1_AUTOFACTORY(XFormTextShadowTranspItem, SfxUInt16Item);
                 [ #  # ]
     374                 :            : 
     375                 :            : /*************************************************************************
     376                 :            : |*
     377                 :            : |*    XFormTextShadowTranspItem::XFormTextShadowTranspItem(sal_uInt16)
     378                 :            : |*
     379                 :            : *************************************************************************/
     380                 :            : 
     381                 :       3632 : XFormTextShadowTranspItem::XFormTextShadowTranspItem(sal_uInt16 nShdwTransparence) :
     382                 :       3632 :     SfxUInt16Item(XATTR_FORMTXTSHDWTRANSP, nShdwTransparence)
     383                 :            : {
     384                 :       3632 : }
     385                 :            : 
     386                 :            : /*************************************************************************
     387                 :            : |*
     388                 :            : |*    XFormTextShadowTranspItem::XFormTextShadowTranspItem(SvStream& rIn)
     389                 :            : |*
     390                 :            : *************************************************************************/
     391                 :            : 
     392                 :          0 : XFormTextShadowTranspItem::XFormTextShadowTranspItem(SvStream& rIn) :
     393                 :          0 :     SfxUInt16Item(XATTR_FORMTXTSHDWTRANSP, rIn)
     394                 :            : {
     395                 :          0 : }
     396                 :            : 
     397                 :            : /*************************************************************************
     398                 :            : |*
     399                 :            : |*    XFormTextShadowTranspItem::Clone(SfxItemPool* pPool) const
     400                 :            : |*
     401                 :            : *************************************************************************/
     402                 :            : 
     403                 :          1 : SfxPoolItem* XFormTextShadowTranspItem::Clone(SfxItemPool* /*pPool*/) const
     404                 :            : {
     405         [ +  - ]:          1 :     return new XFormTextShadowTranspItem(*this);
     406                 :            : }
     407                 :            : 
     408                 :            : /*************************************************************************
     409                 :            : |*
     410                 :            : |*    SfxPoolItem* XFormTextShadowTranspItem::Create(SvStream& rIn, sal_uInt16 nVer) const
     411                 :            : |*
     412                 :            : *************************************************************************/
     413                 :            : 
     414                 :          0 : SfxPoolItem* XFormTextShadowTranspItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) const
     415                 :            : {
     416         [ #  # ]:          0 :     return new XFormTextShadowTranspItem(rIn);
     417                 :            : }
     418                 :            : 
     419                 :            : 
     420                 :            : //------------------------------
     421                 :            : // class XFillGradientStepCountItem
     422                 :            : //------------------------------
     423 [ -  + ][ -  + ]:      10231 : TYPEINIT1_AUTOFACTORY(XGradientStepCountItem, SfxUInt16Item);
                 [ #  # ]
     424                 :            : 
     425                 :            : /*************************************************************************
     426                 :            : |*
     427                 :            : |*    XGradientStepCountItem::XGradientStepCountItem( sal_uInt16 )
     428                 :            : |*
     429                 :            : *************************************************************************/
     430                 :            : 
     431                 :       3632 : XGradientStepCountItem::XGradientStepCountItem( sal_uInt16 nStepCount ) :
     432                 :       3632 :     SfxUInt16Item( XATTR_GRADIENTSTEPCOUNT, nStepCount )
     433                 :            : {
     434                 :       3632 : }
     435                 :            : 
     436                 :            : /*************************************************************************
     437                 :            : |*
     438                 :            : |*    XGradientStepCountItem::XGradientStepCountItem( SvStream& rIn )
     439                 :            : |*
     440                 :            : *************************************************************************/
     441                 :            : 
     442                 :          0 : XGradientStepCountItem::XGradientStepCountItem( SvStream& rIn ) :
     443                 :          0 :     SfxUInt16Item( XATTR_GRADIENTSTEPCOUNT, rIn )
     444                 :            : {
     445                 :          0 : }
     446                 :            : 
     447                 :            : /*************************************************************************
     448                 :            : |*
     449                 :            : |*    XGradientStepCountItem::Clone( SfxItemPool* pPool ) const
     450                 :            : |*
     451                 :            : *************************************************************************/
     452                 :            : 
     453                 :          1 : SfxPoolItem* XGradientStepCountItem::Clone( SfxItemPool* /*pPool*/) const
     454                 :            : {
     455         [ +  - ]:          1 :     return new XGradientStepCountItem( *this );
     456                 :            : }
     457                 :            : 
     458                 :            : /*************************************************************************
     459                 :            : |*
     460                 :            : |*    SfxPoolItem* XGradientStepCountItem::Create(SvStream& rIn, sal_uInt16 nVer) const
     461                 :            : |*
     462                 :            : *************************************************************************/
     463                 :            : 
     464                 :          0 : SfxPoolItem* XGradientStepCountItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) const
     465                 :            : {
     466         [ #  # ]:          0 :     return new XGradientStepCountItem( rIn );
     467                 :            : }
     468                 :            : 
     469                 :            : //------------------------------------------------------------------------
     470                 :            : 
     471                 :          0 : SfxItemPresentation XGradientStepCountItem::GetPresentation
     472                 :            : (
     473                 :            :     SfxItemPresentation ePres,
     474                 :            :     SfxMapUnit          /*eCoreUnit*/,
     475                 :            :     SfxMapUnit          /*ePresUnit*/,
     476                 :            :     XubString&          rText, const IntlWrapper *
     477                 :            : )   const
     478                 :            : {
     479                 :          0 :     rText.Erase();
     480                 :            : 
     481      [ #  #  # ]:          0 :     switch ( ePres )
     482                 :            :     {
     483                 :            :         case SFX_ITEM_PRESENTATION_NONE:
     484                 :          0 :             return ePres;
     485                 :            :         case SFX_ITEM_PRESENTATION_COMPLETE:
     486                 :            : //          rText = XubString( ResId( RID_SVXSTR_GRADIENTSTEPCOUNT, DIALOG_MGR() ) );
     487                 :            : //          rText += ": ";
     488                 :            :         case SFX_ITEM_PRESENTATION_NAMELESS:
     489         [ #  # ]:          0 :             rText += XubString( UniString::CreateFromInt32((sal_uInt16) GetValue() ));
     490                 :          0 :             return ePres;
     491                 :            :         default:
     492                 :          0 :             return SFX_ITEM_PRESENTATION_NONE;
     493                 :            :     }
     494                 :            : }
     495                 :            : 
     496                 :            : 
     497                 :            : //------------------------------
     498                 :            : // class XFillBmpTileItem
     499                 :            : //------------------------------
     500 [ -  + ][ -  + ]:      11363 : TYPEINIT1_AUTOFACTORY( XFillBmpTileItem, SfxBoolItem );
                 [ #  # ]
     501                 :            : 
     502                 :      21957 : XFillBmpTileItem::XFillBmpTileItem( sal_Bool bTile ) :
     503                 :      21957 :             SfxBoolItem( XATTR_FILLBMP_TILE, bTile )
     504                 :            : {
     505                 :      21957 : }
     506                 :            : 
     507                 :          0 : XFillBmpTileItem::XFillBmpTileItem( SvStream& rIn ) :
     508                 :          0 :             SfxBoolItem( XATTR_FILLBMP_TILE, rIn )
     509                 :            : {
     510                 :          0 : }
     511                 :            : 
     512                 :       1318 : SfxPoolItem* XFillBmpTileItem::Clone( SfxItemPool* /*pPool*/) const
     513                 :            : {
     514         [ +  - ]:       1318 :     return new XFillBmpTileItem( *this );
     515                 :            : }
     516                 :            : 
     517                 :          0 : SfxPoolItem* XFillBmpTileItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
     518                 :            : {
     519         [ #  # ]:          0 :     return new XFillBmpTileItem( rIn );
     520                 :            : }
     521                 :            : 
     522                 :          0 : SfxItemPresentation XFillBmpTileItem::GetPresentation
     523                 :            : (
     524                 :            :     SfxItemPresentation ePres,
     525                 :            :     SfxMapUnit          /*eCoreUnit*/,
     526                 :            :     SfxMapUnit          /*ePresUnit*/,
     527                 :            :     XubString&          rText, const IntlWrapper *
     528                 :            : )   const
     529                 :            : {
     530                 :          0 :     rText.Erase();
     531                 :            : 
     532      [ #  #  # ]:          0 :     switch ( ePres )
     533                 :            :     {
     534                 :            :         case SFX_ITEM_PRESENTATION_NONE:
     535                 :          0 :             return ePres;
     536                 :            :         case SFX_ITEM_PRESENTATION_COMPLETE:
     537                 :            :         case SFX_ITEM_PRESENTATION_NAMELESS:
     538                 :          0 :             return ePres;
     539                 :            :         default:
     540                 :          0 :             return SFX_ITEM_PRESENTATION_NONE;
     541                 :            :     }
     542                 :            : }
     543                 :            : 
     544                 :            : 
     545                 :            : //------------------------------
     546                 :            : // class XFillBmpTilePosItem
     547                 :            : //------------------------------
     548 [ -  + ][ -  + ]:     102748 : TYPEINIT1_AUTOFACTORY( XFillBmpPosItem, SfxEnumItem );
                 [ #  # ]
     549                 :            : 
     550                 :       3632 : XFillBmpPosItem::XFillBmpPosItem( RECT_POINT eRP ) :
     551                 :       3632 :     SfxEnumItem( XATTR_FILLBMP_POS, sal::static_int_cast< sal_uInt16 >( eRP ) )
     552                 :            : {
     553                 :       3632 : }
     554                 :            : 
     555                 :          0 : XFillBmpPosItem::XFillBmpPosItem( SvStream& rIn ) :
     556                 :          0 :             SfxEnumItem( XATTR_FILLBMP_POS, rIn )
     557                 :            : {
     558                 :          0 : }
     559                 :            : 
     560                 :      19819 : SfxPoolItem* XFillBmpPosItem::Clone( SfxItemPool* /*pPool*/) const
     561                 :            : {
     562         [ +  - ]:      19819 :     return new XFillBmpPosItem( *this );
     563                 :            : }
     564                 :            : 
     565                 :          0 : SfxPoolItem* XFillBmpPosItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
     566                 :            : {
     567         [ #  # ]:          0 :     return new XFillBmpPosItem( rIn );
     568                 :            : }
     569                 :            : 
     570                 :          0 : SfxItemPresentation XFillBmpPosItem::GetPresentation
     571                 :            : (
     572                 :            :     SfxItemPresentation ePres,
     573                 :            :     SfxMapUnit          /*eCoreUnit*/,
     574                 :            :     SfxMapUnit          /*ePresUnit*/,
     575                 :            :     XubString&          rText, const IntlWrapper *
     576                 :            : )   const
     577                 :            : {
     578                 :          0 :     rText.Erase();
     579                 :            : 
     580      [ #  #  # ]:          0 :     switch ( ePres )
     581                 :            :     {
     582                 :            :         case SFX_ITEM_PRESENTATION_NONE:
     583                 :          0 :             return ePres;
     584                 :            :         case SFX_ITEM_PRESENTATION_COMPLETE:
     585                 :            :         case SFX_ITEM_PRESENTATION_NAMELESS:
     586                 :          0 :             return ePres;
     587                 :            :         default:
     588                 :          0 :             return SFX_ITEM_PRESENTATION_NONE;
     589                 :            :     }
     590                 :            : }
     591                 :            : 
     592                 :          0 : sal_uInt16 XFillBmpPosItem::GetValueCount() const
     593                 :            : {
     594                 :          0 :     return 9;
     595                 :            : }
     596                 :            : 
     597                 :            : 
     598                 :            : //------------------------------
     599                 :            : // class XFillBmpTileSizeXItem
     600                 :            : //------------------------------
     601 [ -  + ][ -  + ]:     102784 : TYPEINIT1_AUTOFACTORY( XFillBmpSizeXItem, SfxMetricItem );
                 [ #  # ]
     602                 :            : 
     603                 :       3632 : XFillBmpSizeXItem::XFillBmpSizeXItem( long nSizeX ) :
     604                 :       3632 :             SfxMetricItem( XATTR_FILLBMP_SIZEX, nSizeX )
     605                 :            : {
     606                 :       3632 : }
     607                 :            : 
     608                 :          0 : XFillBmpSizeXItem::XFillBmpSizeXItem( SvStream& rIn ) :
     609                 :          0 :             SfxMetricItem( XATTR_FILLBMP_SIZEX, rIn )
     610                 :            : {
     611                 :          0 : }
     612                 :            : 
     613                 :      20322 : SfxPoolItem* XFillBmpSizeXItem::Clone( SfxItemPool* /*pPool*/) const
     614                 :            : {
     615         [ +  - ]:      20322 :     return new XFillBmpSizeXItem( *this );
     616                 :            : }
     617                 :            : 
     618                 :          0 : SfxPoolItem* XFillBmpSizeXItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
     619                 :            : {
     620         [ #  # ]:          0 :     return new XFillBmpSizeXItem( rIn );
     621                 :            : }
     622                 :            : 
     623                 :          0 : SfxItemPresentation XFillBmpSizeXItem::GetPresentation
     624                 :            : (
     625                 :            :     SfxItemPresentation ePres,
     626                 :            :     SfxMapUnit          /*eCoreUnit*/,
     627                 :            :     SfxMapUnit          /*ePresUnit*/,
     628                 :            :     XubString&          rText, const IntlWrapper *
     629                 :            : )   const
     630                 :            : {
     631                 :          0 :     rText.Erase();
     632                 :            : 
     633      [ #  #  # ]:          0 :     switch ( ePres )
     634                 :            :     {
     635                 :            :         case SFX_ITEM_PRESENTATION_NONE:
     636                 :          0 :             return ePres;
     637                 :            :         case SFX_ITEM_PRESENTATION_COMPLETE:
     638                 :            :         case SFX_ITEM_PRESENTATION_NAMELESS:
     639                 :          0 :             return ePres;
     640                 :            :         default:
     641                 :          0 :             return SFX_ITEM_PRESENTATION_NONE;
     642                 :            :     }
     643                 :            : }
     644                 :            : 
     645                 :          0 : bool XFillBmpSizeXItem::HasMetrics() const
     646                 :            : {
     647                 :          0 :     return GetValue() > 0L;
     648                 :            : }
     649                 :            : 
     650                 :            : 
     651                 :            : //------------------------------
     652                 :            : // class XFillBmpTileSizeYItem
     653                 :            : //------------------------------
     654 [ -  + ][ -  + ]:     102784 : TYPEINIT1_AUTOFACTORY( XFillBmpSizeYItem, SfxMetricItem );
                 [ #  # ]
     655                 :            : 
     656                 :       3632 : XFillBmpSizeYItem::XFillBmpSizeYItem( long nSizeY ) :
     657                 :       3632 :             SfxMetricItem( XATTR_FILLBMP_SIZEY, nSizeY )
     658                 :            : {
     659                 :       3632 : }
     660                 :            : 
     661                 :          0 : XFillBmpSizeYItem::XFillBmpSizeYItem( SvStream& rIn ) :
     662                 :          0 :             SfxMetricItem( XATTR_FILLBMP_SIZEY, rIn )
     663                 :            : {
     664                 :          0 : }
     665                 :            : 
     666                 :      20317 : SfxPoolItem* XFillBmpSizeYItem::Clone( SfxItemPool* /*pPool*/) const
     667                 :            : {
     668         [ +  - ]:      20317 :     return new XFillBmpSizeYItem( *this );
     669                 :            : }
     670                 :            : 
     671                 :          0 : SfxPoolItem* XFillBmpSizeYItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
     672                 :            : {
     673         [ #  # ]:          0 :     return new XFillBmpSizeYItem( rIn );
     674                 :            : }
     675                 :            : 
     676                 :          0 : SfxItemPresentation XFillBmpSizeYItem::GetPresentation
     677                 :            : (
     678                 :            :     SfxItemPresentation ePres,
     679                 :            :     SfxMapUnit          /*eCoreUnit*/,
     680                 :            :     SfxMapUnit          /*ePresUnit*/,
     681                 :            :     XubString&          rText, const IntlWrapper *
     682                 :            : )   const
     683                 :            : {
     684                 :          0 :     rText.Erase();
     685                 :            : 
     686      [ #  #  # ]:          0 :     switch ( ePres )
     687                 :            :     {
     688                 :            :         case SFX_ITEM_PRESENTATION_NONE:
     689                 :          0 :             return ePres;
     690                 :            :         case SFX_ITEM_PRESENTATION_COMPLETE:
     691                 :            :         case SFX_ITEM_PRESENTATION_NAMELESS:
     692                 :          0 :             return ePres;
     693                 :            :         default:
     694                 :          0 :             return SFX_ITEM_PRESENTATION_NONE;
     695                 :            :     }
     696                 :            : }
     697                 :            : 
     698                 :          0 : bool XFillBmpSizeYItem::HasMetrics() const
     699                 :            : {
     700                 :          0 :     return GetValue() > 0L;
     701                 :            : }
     702                 :            : 
     703                 :            : 
     704                 :            : //------------------------------
     705                 :            : // class XFillBmpTileLogItem
     706                 :            : //------------------------------
     707 [ -  + ][ -  + ]:     102797 : TYPEINIT1_AUTOFACTORY( XFillBmpSizeLogItem, SfxBoolItem );
                 [ #  # ]
     708                 :            : 
     709                 :       3632 : XFillBmpSizeLogItem::XFillBmpSizeLogItem( sal_Bool bLog ) :
     710                 :       3632 :             SfxBoolItem( XATTR_FILLBMP_SIZELOG, bLog )
     711                 :            : {
     712                 :       3632 : }
     713                 :            : 
     714                 :          0 : XFillBmpSizeLogItem::XFillBmpSizeLogItem( SvStream& rIn ) :
     715                 :          0 :             SfxBoolItem( XATTR_FILLBMP_SIZELOG, rIn )
     716                 :            : {
     717                 :          0 : }
     718                 :            : 
     719                 :      19624 : SfxPoolItem* XFillBmpSizeLogItem::Clone( SfxItemPool* /*pPool*/) const
     720                 :            : {
     721         [ +  - ]:      19624 :     return new XFillBmpSizeLogItem( *this );
     722                 :            : }
     723                 :            : 
     724                 :          0 : SfxPoolItem* XFillBmpSizeLogItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
     725                 :            : {
     726         [ #  # ]:          0 :     return new XFillBmpSizeLogItem( rIn );
     727                 :            : }
     728                 :            : 
     729                 :          0 : SfxItemPresentation XFillBmpSizeLogItem::GetPresentation
     730                 :            : (
     731                 :            :     SfxItemPresentation ePres,
     732                 :            :     SfxMapUnit          /*eCoreUnit*/,
     733                 :            :     SfxMapUnit          /*ePresUnit*/,
     734                 :            :     XubString&          rText, const IntlWrapper *
     735                 :            : )   const
     736                 :            : {
     737                 :          0 :     rText.Erase();
     738                 :            : 
     739      [ #  #  # ]:          0 :     switch ( ePres )
     740                 :            :     {
     741                 :            :         case SFX_ITEM_PRESENTATION_NONE:
     742                 :          0 :             return ePres;
     743                 :            :         case SFX_ITEM_PRESENTATION_COMPLETE:
     744                 :            :         case SFX_ITEM_PRESENTATION_NAMELESS:
     745                 :          0 :             return ePres;
     746                 :            :         default:
     747                 :          0 :             return SFX_ITEM_PRESENTATION_NONE;
     748                 :            :     }
     749                 :            : }
     750                 :            : 
     751                 :            : 
     752                 :            : //------------------------------
     753                 :            : // class XFillBmpTileOffXItem
     754                 :            : //------------------------------
     755 [ -  + ][ -  + ]:     102748 : TYPEINIT1_AUTOFACTORY( XFillBmpTileOffsetXItem, SfxUInt16Item );
                 [ #  # ]
     756                 :            : 
     757                 :       3632 : XFillBmpTileOffsetXItem::XFillBmpTileOffsetXItem( sal_uInt16 nOffX ) :
     758                 :       3632 :             SfxUInt16Item( XATTR_FILLBMP_TILEOFFSETX, nOffX )
     759                 :            : {
     760                 :       3632 : }
     761                 :            : 
     762                 :          0 : XFillBmpTileOffsetXItem::XFillBmpTileOffsetXItem( SvStream& rIn ) :
     763                 :          0 :             SfxUInt16Item( XATTR_FILLBMP_TILEOFFSETX, rIn )
     764                 :            : {
     765                 :          0 : }
     766                 :            : 
     767                 :      19842 : SfxPoolItem* XFillBmpTileOffsetXItem::Clone( SfxItemPool* /*pPool*/) const
     768                 :            : {
     769         [ +  - ]:      19842 :     return new XFillBmpTileOffsetXItem( *this );
     770                 :            : }
     771                 :            : 
     772                 :          0 : SfxPoolItem* XFillBmpTileOffsetXItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
     773                 :            : {
     774         [ #  # ]:          0 :     return new XFillBmpTileOffsetXItem( rIn );
     775                 :            : }
     776                 :            : 
     777                 :          0 : SfxItemPresentation XFillBmpTileOffsetXItem::GetPresentation
     778                 :            : (
     779                 :            :     SfxItemPresentation ePres,
     780                 :            :     SfxMapUnit          /*eCoreUnit*/,
     781                 :            :     SfxMapUnit          /*ePresUnit*/,
     782                 :            :     XubString&          rText, const IntlWrapper *
     783                 :            : )   const
     784                 :            : {
     785                 :          0 :     rText.Erase();
     786                 :            : 
     787      [ #  #  # ]:          0 :     switch ( ePres )
     788                 :            :     {
     789                 :            :         case SFX_ITEM_PRESENTATION_NONE:
     790                 :          0 :             return ePres;
     791                 :            :         case SFX_ITEM_PRESENTATION_COMPLETE:
     792                 :            :         case SFX_ITEM_PRESENTATION_NAMELESS:
     793                 :          0 :             return ePres;
     794                 :            :         default:
     795                 :          0 :             return SFX_ITEM_PRESENTATION_NONE;
     796                 :            :     }
     797                 :            : }
     798                 :            : 
     799                 :            : 
     800                 :            : //------------------------------
     801                 :            : // class XFillBmpTileOffYItem
     802                 :            : //------------------------------
     803 [ -  + ][ -  + ]:     102748 : TYPEINIT1_AUTOFACTORY( XFillBmpTileOffsetYItem, SfxUInt16Item );
                 [ #  # ]
     804                 :            : 
     805                 :       3632 : XFillBmpTileOffsetYItem::XFillBmpTileOffsetYItem( sal_uInt16 nOffY ) :
     806                 :       3632 :             SfxUInt16Item( XATTR_FILLBMP_TILEOFFSETY, nOffY )
     807                 :            : {
     808                 :       3632 : }
     809                 :            : 
     810                 :          0 : XFillBmpTileOffsetYItem::XFillBmpTileOffsetYItem( SvStream& rIn ) :
     811                 :          0 :             SfxUInt16Item( XATTR_FILLBMP_TILEOFFSETY, rIn )
     812                 :            : {
     813                 :          0 : }
     814                 :            : 
     815                 :      19834 : SfxPoolItem* XFillBmpTileOffsetYItem::Clone( SfxItemPool* /*pPool*/) const
     816                 :            : {
     817         [ +  - ]:      19834 :     return new XFillBmpTileOffsetYItem( *this );
     818                 :            : }
     819                 :            : 
     820                 :          0 : SfxPoolItem* XFillBmpTileOffsetYItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
     821                 :            : {
     822         [ #  # ]:          0 :     return new XFillBmpTileOffsetYItem( rIn );
     823                 :            : }
     824                 :            : 
     825                 :          0 : SfxItemPresentation XFillBmpTileOffsetYItem::GetPresentation
     826                 :            : (
     827                 :            :     SfxItemPresentation ePres,
     828                 :            :     SfxMapUnit          /*eCoreUnit*/,
     829                 :            :     SfxMapUnit          /*ePresUnit*/,
     830                 :            :     XubString&          rText, const IntlWrapper *
     831                 :            : )   const
     832                 :            : {
     833                 :          0 :     rText.Erase();
     834                 :            : 
     835      [ #  #  # ]:          0 :     switch ( ePres )
     836                 :            :     {
     837                 :            :         case SFX_ITEM_PRESENTATION_NONE:
     838                 :          0 :             return ePres;
     839                 :            :         case SFX_ITEM_PRESENTATION_COMPLETE:
     840                 :            :         case SFX_ITEM_PRESENTATION_NAMELESS:
     841                 :          0 :             return ePres;
     842                 :            :         default:
     843                 :          0 :             return SFX_ITEM_PRESENTATION_NONE;
     844                 :            :     }
     845                 :            : }
     846                 :            : 
     847                 :            : 
     848                 :            : //------------------------------
     849                 :            : // class XFillBmpStretchItem
     850                 :            : //------------------------------
     851 [ -  + ][ -  + ]:      11363 : TYPEINIT1_AUTOFACTORY( XFillBmpStretchItem, SfxBoolItem );
                 [ #  # ]
     852                 :            : 
     853                 :      21957 : XFillBmpStretchItem::XFillBmpStretchItem( sal_Bool bStretch ) :
     854                 :      21957 :             SfxBoolItem( XATTR_FILLBMP_STRETCH, bStretch )
     855                 :            : {
     856                 :      21957 : }
     857                 :            : 
     858                 :          0 : XFillBmpStretchItem::XFillBmpStretchItem( SvStream& rIn ) :
     859                 :          0 :             SfxBoolItem( XATTR_FILLBMP_STRETCH, rIn )
     860                 :            : {
     861                 :          0 : }
     862                 :            : 
     863                 :       1522 : SfxPoolItem* XFillBmpStretchItem::Clone( SfxItemPool* /*pPool*/) const
     864                 :            : {
     865         [ +  - ]:       1522 :     return new XFillBmpStretchItem( *this );
     866                 :            : }
     867                 :            : 
     868                 :          0 : SfxPoolItem* XFillBmpStretchItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
     869                 :            : {
     870         [ #  # ]:          0 :     return new XFillBmpStretchItem( rIn );
     871                 :            : }
     872                 :            : 
     873                 :          0 : SfxItemPresentation XFillBmpStretchItem::GetPresentation
     874                 :            : (
     875                 :            :     SfxItemPresentation ePres,
     876                 :            :     SfxMapUnit          /*eCoreUnit*/,
     877                 :            :     SfxMapUnit          /*ePresUnit*/,
     878                 :            :     XubString&          rText, const IntlWrapper *
     879                 :            : )   const
     880                 :            : {
     881                 :          0 :     rText.Erase();
     882                 :            : 
     883      [ #  #  # ]:          0 :     switch ( ePres )
     884                 :            :     {
     885                 :            :         case SFX_ITEM_PRESENTATION_NONE:
     886                 :          0 :             return ePres;
     887                 :            :         case SFX_ITEM_PRESENTATION_COMPLETE:
     888                 :            :         case SFX_ITEM_PRESENTATION_NAMELESS:
     889                 :          0 :             return ePres;
     890                 :            :         default:
     891                 :          0 :             return SFX_ITEM_PRESENTATION_NONE;
     892                 :            :     }
     893                 :            : }
     894                 :            : 
     895                 :            : 
     896                 :            : //------------------------------
     897                 :            : // class XFillBmpTileOffPosXItem
     898                 :            : //------------------------------
     899 [ -  + ][ -  + ]:     102748 : TYPEINIT1_AUTOFACTORY( XFillBmpPosOffsetXItem, SfxUInt16Item );
                 [ #  # ]
     900                 :            : 
     901                 :       3632 : XFillBmpPosOffsetXItem::XFillBmpPosOffsetXItem( sal_uInt16 nOffPosX ) :
     902                 :       3632 :             SfxUInt16Item( XATTR_FILLBMP_POSOFFSETX, nOffPosX )
     903                 :            : {
     904                 :       3632 : }
     905                 :            : 
     906                 :          0 : XFillBmpPosOffsetXItem::XFillBmpPosOffsetXItem( SvStream& rIn ) :
     907                 :          0 :             SfxUInt16Item( XATTR_FILLBMP_POSOFFSETX, rIn )
     908                 :            : {
     909                 :          0 : }
     910                 :            : 
     911                 :      19833 : SfxPoolItem* XFillBmpPosOffsetXItem::Clone( SfxItemPool* /*pPool*/) const
     912                 :            : {
     913         [ +  - ]:      19833 :     return new XFillBmpPosOffsetXItem( *this );
     914                 :            : }
     915                 :            : 
     916                 :          0 : SfxPoolItem* XFillBmpPosOffsetXItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
     917                 :            : {
     918         [ #  # ]:          0 :     return new XFillBmpPosOffsetXItem( rIn );
     919                 :            : }
     920                 :            : 
     921                 :          0 : SfxItemPresentation XFillBmpPosOffsetXItem::GetPresentation
     922                 :            : (
     923                 :            :     SfxItemPresentation ePres,
     924                 :            :     SfxMapUnit          /*eCoreUnit*/,
     925                 :            :     SfxMapUnit          /*ePresUnit*/,
     926                 :            :     XubString&          rText, const IntlWrapper *
     927                 :            : )   const
     928                 :            : {
     929                 :          0 :     rText.Erase();
     930                 :            : 
     931      [ #  #  # ]:          0 :     switch ( ePres )
     932                 :            :     {
     933                 :            :         case SFX_ITEM_PRESENTATION_NONE:
     934                 :          0 :             return ePres;
     935                 :            :         case SFX_ITEM_PRESENTATION_COMPLETE:
     936                 :            :         case SFX_ITEM_PRESENTATION_NAMELESS:
     937                 :          0 :             return ePres;
     938                 :            :         default:
     939                 :          0 :             return SFX_ITEM_PRESENTATION_NONE;
     940                 :            :     }
     941                 :            : }
     942                 :            : 
     943                 :            : 
     944                 :            : //------------------------------
     945                 :            : // class XFillBmpTileOffPosYItem
     946                 :            : //------------------------------
     947 [ -  + ][ -  + ]:     102748 : TYPEINIT1_AUTOFACTORY( XFillBmpPosOffsetYItem, SfxUInt16Item );
                 [ #  # ]
     948                 :            : 
     949                 :       3632 : XFillBmpPosOffsetYItem::XFillBmpPosOffsetYItem( sal_uInt16 nOffPosY ) :
     950                 :       3632 :             SfxUInt16Item( XATTR_FILLBMP_POSOFFSETY, nOffPosY )
     951                 :            : {
     952                 :       3632 : }
     953                 :            : 
     954                 :          0 : XFillBmpPosOffsetYItem::XFillBmpPosOffsetYItem( SvStream& rIn ) :
     955                 :          0 :             SfxUInt16Item( XATTR_FILLBMP_POSOFFSETY, rIn )
     956                 :            : {
     957                 :          0 : }
     958                 :            : 
     959                 :      19822 : SfxPoolItem* XFillBmpPosOffsetYItem::Clone( SfxItemPool* /*pPool*/) const
     960                 :            : {
     961         [ +  - ]:      19822 :     return new XFillBmpPosOffsetYItem( *this );
     962                 :            : }
     963                 :            : 
     964                 :          0 : SfxPoolItem* XFillBmpPosOffsetYItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
     965                 :            : {
     966         [ #  # ]:          0 :     return new XFillBmpPosOffsetYItem( rIn );
     967                 :            : }
     968                 :            : 
     969                 :          0 : SfxItemPresentation XFillBmpPosOffsetYItem::GetPresentation
     970                 :            : (
     971                 :            :     SfxItemPresentation ePres,
     972                 :            :     SfxMapUnit          /*eCoreUnit*/,
     973                 :            :     SfxMapUnit          /*ePresUnit*/,
     974                 :            :     XubString&          rText, const IntlWrapper *
     975                 :            : )   const
     976                 :            : {
     977                 :          0 :     rText.Erase();
     978                 :            : 
     979      [ #  #  # ]:          0 :     switch ( ePres )
     980                 :            :     {
     981                 :            :         case SFX_ITEM_PRESENTATION_NONE:
     982                 :          0 :             return ePres;
     983                 :            :         case SFX_ITEM_PRESENTATION_COMPLETE:
     984                 :            :         case SFX_ITEM_PRESENTATION_NAMELESS:
     985                 :          0 :             return ePres;
     986                 :            :         default:
     987                 :          0 :             return SFX_ITEM_PRESENTATION_NONE;
     988                 :            :     }
     989                 :            : }
     990                 :            : 
     991                 :            : //--------------------------
     992                 :            : // class XFillBackgroundItem
     993                 :            : //--------------------------
     994 [ -  + ][ -  + ]:     102748 : TYPEINIT1_AUTOFACTORY(XFillBackgroundItem, SfxBoolItem);
                 [ #  # ]
     995                 :            : 
     996                 :            : /*************************************************************************
     997                 :            : |*
     998                 :            : |*    XFillBackgroundItem::XFillBackgroundItem( sal_Bool )
     999                 :            : |*
    1000                 :            : *************************************************************************/
    1001                 :            : 
    1002                 :       3632 : XFillBackgroundItem::XFillBackgroundItem( sal_Bool bFill ) :
    1003                 :       3632 :     SfxBoolItem( XATTR_FILLBACKGROUND, bFill )
    1004                 :            : {
    1005                 :       3632 : }
    1006                 :            : 
    1007                 :            : /*************************************************************************
    1008                 :            : |*
    1009                 :            : |*    XFillBackgroundItem::XFillBackgroundItem( SvStream& rIn )
    1010                 :            : |*
    1011                 :            : *************************************************************************/
    1012                 :            : 
    1013                 :          0 : XFillBackgroundItem::XFillBackgroundItem( SvStream& rIn ) :
    1014                 :          0 :     SfxBoolItem( XATTR_FILLBACKGROUND, rIn )
    1015                 :            : {
    1016                 :          0 : }
    1017                 :            : 
    1018                 :            : /*************************************************************************
    1019                 :            : |*
    1020                 :            : |*    XFillBackgroundItem::Clone( SfxItemPool* pPool ) const
    1021                 :            : |*
    1022                 :            : *************************************************************************/
    1023                 :            : 
    1024                 :      19794 : SfxPoolItem* XFillBackgroundItem::Clone( SfxItemPool* /*pPool*/) const
    1025                 :            : {
    1026         [ +  - ]:      19794 :     return new XFillBackgroundItem( *this );
    1027                 :            : }
    1028                 :            : 
    1029                 :            : /*************************************************************************
    1030                 :            : |*
    1031                 :            : |*    SfxPoolItem* XFillBackgroundItem::Create(SvStream& rIn, sal_uInt16 nVer) const
    1032                 :            : |*
    1033                 :            : *************************************************************************/
    1034                 :            : 
    1035                 :          0 : SfxPoolItem* XFillBackgroundItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) const
    1036                 :            : {
    1037         [ #  # ]:          0 :     return new XFillBackgroundItem( rIn );
    1038                 :            : }
    1039                 :            : 
    1040                 :            : //------------------------------------------------------------------------
    1041                 :            : 
    1042                 :          0 : SfxItemPresentation XFillBackgroundItem::GetPresentation( SfxItemPresentation ePres, SfxMapUnit /*eCoreUnit*/,
    1043                 :            :                                                           SfxMapUnit /*ePresUnit*/, XubString& rText, const IntlWrapper*) const
    1044                 :            : {
    1045                 :          0 :     rText.Erase();
    1046                 :            : 
    1047      [ #  #  # ]:          0 :     switch( ePres )
    1048                 :            :     {
    1049                 :            :         case SFX_ITEM_PRESENTATION_NONE:
    1050                 :          0 :             return ePres;
    1051                 :            : 
    1052                 :            :         case SFX_ITEM_PRESENTATION_COMPLETE:
    1053                 :            :         case SFX_ITEM_PRESENTATION_NAMELESS:
    1054                 :          0 :             return ePres;
    1055                 :            :         default:
    1056                 :          0 :             return SFX_ITEM_PRESENTATION_NONE;
    1057                 :            :     }
    1058                 :            : }
    1059                 :            : 
    1060                 :            : 
    1061                 :            : 
    1062                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10