LCOV - code coverage report
Current view: top level - svx/source/xoutdev - xattr2.cxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 122 376 32.4 %
Date: 2014-11-03 Functions: 107 199 53.8 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : #include <com/sun/star/drawing/LineJoint.hpp>
      21             : #include <com/sun/star/drawing/LineCap.hpp>
      22             : #include <com/sun/star/uno/Any.hxx>
      23             : 
      24             : #include <i18nutil/unicode.hxx>
      25             : #include <svx/dialogs.hrc>
      26             : #include "svx/xattr.hxx"
      27             : #include <svx/xtable.hxx>
      28             : #include <svx/dialmgr.hxx>
      29             : #include <editeng/itemtype.hxx>
      30             : #include <svx/xdef.hxx>
      31             : #include <svx/AffineMatrixItem.hxx>
      32             : #include <vcl/svapp.hxx>
      33             : #include <vcl/settings.hxx>
      34             : 
      35      103475 : TYPEINIT1_AUTOFACTORY(XLineTransparenceItem, SfxUInt16Item);
      36             : 
      37        7806 : XLineTransparenceItem::XLineTransparenceItem(sal_uInt16 nLineTransparence) :
      38        7806 :     SfxUInt16Item(XATTR_LINETRANSPARENCE, nLineTransparence)
      39             : {
      40        7806 : }
      41             : 
      42           0 : XLineTransparenceItem::XLineTransparenceItem(SvStream& rIn) :
      43           0 :     SfxUInt16Item(XATTR_LINETRANSPARENCE, rIn)
      44             : {
      45           0 : }
      46             : 
      47       18815 : SfxPoolItem* XLineTransparenceItem::Clone(SfxItemPool* /*pPool*/) const
      48             : {
      49       18815 :     return new XLineTransparenceItem(*this);
      50             : }
      51             : 
      52           0 : SfxPoolItem* XLineTransparenceItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) const
      53             : {
      54           0 :     return new XLineTransparenceItem(rIn);
      55             : }
      56             : 
      57           0 : bool XLineTransparenceItem::GetPresentation
      58             : (
      59             :     SfxItemPresentation ePres,
      60             :     SfxMapUnit          /*eCoreUnit*/,
      61             :     SfxMapUnit          /*ePresUnit*/,
      62             :     OUString&           rText, const IntlWrapper *
      63             : )   const
      64             : {
      65           0 :     rText = OUString();
      66             : 
      67           0 :     switch ( ePres )
      68             :     {
      69             :         case SFX_ITEM_PRESENTATION_COMPLETE:
      70           0 :             rText = OUString( ResId( RID_SVXSTR_TRANSPARENCE, DIALOG_MGR() ) ) + ": ";
      71             :         case SFX_ITEM_PRESENTATION_NAMELESS:
      72           0 :             rText += unicode::formatPercent(GetValue(),
      73           0 :                 Application::GetSettings().GetUILanguageTag());
      74           0 :             return true;
      75             :         default:
      76           0 :             return false;
      77             :     }
      78             : }
      79             : 
      80       58341 : TYPEINIT1_AUTOFACTORY(XLineJointItem, SfxEnumItem);
      81             : 
      82        9534 : XLineJointItem::XLineJointItem( com::sun::star::drawing::LineJoint eLineJoint ) :
      83        9534 :     SfxEnumItem(XATTR_LINEJOINT, sal::static_int_cast< sal_uInt16 >(eLineJoint))
      84             : {
      85        9534 : }
      86             : 
      87           0 : XLineJointItem::XLineJointItem( SvStream& rIn ) :
      88           0 :     SfxEnumItem( XATTR_LINEJOINT, rIn )
      89             : {
      90           0 : }
      91             : 
      92           0 : sal_uInt16 XLineJointItem::GetVersion( sal_uInt16 /*nFileFormatVersion*/) const
      93             : {
      94           0 :     return 1;
      95             : }
      96             : 
      97           0 : SfxPoolItem* XLineJointItem::Create( SvStream& rIn, sal_uInt16 nVer ) const
      98             : {
      99           0 :     XLineJointItem* pRet = new XLineJointItem( rIn );
     100             : 
     101           0 :     if(nVer < 1)
     102           0 :         pRet->SetValue(com::sun::star::drawing::LineJoint_ROUND);
     103             : 
     104           0 :     return pRet;
     105             : }
     106             : 
     107        9540 : SfxPoolItem* XLineJointItem::Clone(SfxItemPool* /*pPool*/) const
     108             : {
     109        9540 :     return new XLineJointItem( *this );
     110             : }
     111             : 
     112           0 : bool XLineJointItem::GetPresentation( SfxItemPresentation /*ePres*/, SfxMapUnit /*eCoreUnit*/,
     113             :     SfxMapUnit /*ePresUnit*/, OUString& rText, const IntlWrapper*) const
     114             : {
     115           0 :     rText = OUString();
     116             : 
     117           0 :     sal_uInt16 nId = 0;
     118             : 
     119           0 :     switch( GetValue() )
     120             :     {
     121             :         case( com::sun::star::drawing::LineJoint_MAKE_FIXED_SIZE ):
     122             :         case( com::sun::star::drawing::LineJoint_NONE ):
     123           0 :             nId = RID_SVXSTR_LINEJOINT_NONE;
     124           0 :         break;
     125             : 
     126             :         case( com::sun::star::drawing::LineJoint_MIDDLE ):
     127           0 :             nId = RID_SVXSTR_LINEJOINT_MIDDLE;
     128           0 :         break;
     129             : 
     130             : 
     131             :         case( com::sun::star::drawing::LineJoint_BEVEL ):
     132           0 :             nId = RID_SVXSTR_LINEJOINT_BEVEL;
     133           0 :         break;
     134             : 
     135             : 
     136             :         case( com::sun::star::drawing::LineJoint_MITER ):
     137           0 :             nId = RID_SVXSTR_LINEJOINT_MITER;
     138           0 :         break;
     139             : 
     140             : 
     141             :         case( com::sun::star::drawing::LineJoint_ROUND ):
     142           0 :             nId = RID_SVXSTR_LINEJOINT_ROUND;
     143           0 :         break;
     144             :     }
     145             : 
     146           0 :     if( nId )
     147           0 :         rText = SVX_RESSTR( nId );
     148             : 
     149           0 :     return true;
     150             : }
     151             : 
     152        2652 : bool XLineJointItem::QueryValue( ::com::sun::star::uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
     153             : {
     154        2652 :     const ::com::sun::star::drawing::LineJoint eJoint = GetValue();
     155        2652 :     rVal <<= eJoint;
     156        2652 :     return true;
     157             : }
     158             : 
     159        5472 : bool XLineJointItem::PutValue( const ::com::sun::star::uno::Any& rVal, sal_uInt8 /*nMemberId*/)
     160             : {
     161             :     ::com::sun::star::drawing::LineJoint eUnoJoint;
     162             : 
     163        5472 :     if(!(rVal >>= eUnoJoint))
     164             :     {
     165             :         // also try an int (for Basic)
     166           0 :         sal_Int32 nLJ = 0;
     167           0 :         if(!(rVal >>= nLJ))
     168           0 :             return false;
     169           0 :         eUnoJoint = (::com::sun::star::drawing::LineJoint)nLJ;
     170             :     }
     171             : 
     172        5472 :     SetValue( sal::static_int_cast< sal_uInt16 >( eUnoJoint ) );
     173             : 
     174        5472 :     return true;
     175             : }
     176             : 
     177           0 : sal_uInt16 XLineJointItem::GetValueCount() const
     178             : {
     179             :     // don't forget to update the api interface also
     180           0 :     return 5;
     181             : }
     182             : 
     183           0 : TYPEINIT1_AUTOFACTORY(AffineMatrixItem, SfxPoolItem);
     184             : 
     185           0 : AffineMatrixItem::AffineMatrixItem(const com::sun::star::geometry::AffineMatrix2D* pMatrix)
     186           0 : :   SfxPoolItem(SID_ATTR_TRANSFORM_MATRIX)
     187             : {
     188           0 :     if(pMatrix)
     189             :     {
     190           0 :         maMatrix = *pMatrix;
     191             :     }
     192             :     else
     193             :     {
     194           0 :         maMatrix.m00 = 1.0;
     195           0 :         maMatrix.m01 = 0.0;
     196           0 :         maMatrix.m02 = 0.0;
     197           0 :         maMatrix.m10 = 0.0;
     198           0 :         maMatrix.m11 = 1.0;
     199           0 :         maMatrix.m12 = 0.0;
     200             :     }
     201           0 : }
     202             : 
     203           0 : AffineMatrixItem::AffineMatrixItem(SvStream& rIn)
     204           0 : :   SfxPoolItem(SID_ATTR_TRANSFORM_MATRIX)
     205             : {
     206           0 :     rIn.ReadDouble( maMatrix.m00 );
     207           0 :     rIn.ReadDouble( maMatrix.m01 );
     208           0 :     rIn.ReadDouble( maMatrix.m02 );
     209           0 :     rIn.ReadDouble( maMatrix.m10 );
     210           0 :     rIn.ReadDouble( maMatrix.m11 );
     211           0 :     rIn.ReadDouble( maMatrix.m12 );
     212           0 : }
     213             : 
     214           0 : AffineMatrixItem::AffineMatrixItem(const AffineMatrixItem& rRef)
     215           0 : :   SfxPoolItem(SID_ATTR_TRANSFORM_MATRIX)
     216             : {
     217           0 :     maMatrix = rRef.maMatrix;
     218           0 : }
     219             : 
     220           0 : AffineMatrixItem::~AffineMatrixItem()
     221             : {
     222           0 : }
     223             : 
     224           0 : bool AffineMatrixItem::operator==(const SfxPoolItem& rRef) const
     225             : {
     226           0 :     if(!SfxPoolItem::operator==(rRef))
     227             :     {
     228           0 :         return false;
     229             :     }
     230             : 
     231           0 :     const AffineMatrixItem* pRef = dynamic_cast< const AffineMatrixItem* >(&rRef);
     232             : 
     233           0 :     if(!pRef)
     234             :     {
     235           0 :         return false;
     236             :     }
     237             : 
     238           0 :     return (maMatrix.m00 == pRef->maMatrix.m00
     239           0 :         && maMatrix.m01 == pRef->maMatrix.m01
     240           0 :         && maMatrix.m02 == pRef->maMatrix.m02
     241           0 :         && maMatrix.m10 == pRef->maMatrix.m10
     242           0 :         && maMatrix.m11 == pRef->maMatrix.m11
     243           0 :         && maMatrix.m12 == pRef->maMatrix.m12);
     244             : }
     245             : 
     246           0 : SfxPoolItem* AffineMatrixItem::Clone( SfxItemPool* /*pPool*/ ) const
     247             : {
     248           0 :     return new AffineMatrixItem(*this);
     249             : }
     250             : 
     251           0 : SfxPoolItem* AffineMatrixItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/ ) const
     252             : {
     253           0 :     return new AffineMatrixItem(rIn);
     254             : }
     255             : 
     256           0 : SvStream& AffineMatrixItem::Store(SvStream &rStream, sal_uInt16 /*nItemVersion*/ ) const
     257             : {
     258           0 :     rStream.WriteDouble( maMatrix.m00 );
     259           0 :     rStream.WriteDouble( maMatrix.m01 );
     260           0 :     rStream.WriteDouble( maMatrix.m02 );
     261           0 :     rStream.WriteDouble( maMatrix.m10 );
     262           0 :     rStream.WriteDouble( maMatrix.m11 );
     263           0 :     rStream.WriteDouble( maMatrix.m12 );
     264           0 :     return rStream;
     265             : }
     266             : 
     267           0 : bool AffineMatrixItem::QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 /*nMemberId*/ ) const
     268             : {
     269           0 :     rVal <<= maMatrix;
     270           0 :     return true;
     271             : }
     272             : 
     273           0 : bool AffineMatrixItem::PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 /*nMemberId*/ )
     274             : {
     275           0 :     if (rVal >>= maMatrix)
     276             :     {
     277           0 :         return true;
     278             :     }
     279             : 
     280             :     OSL_ENSURE(false, "AffineMatrixItem::PutValue - Wrong type!");
     281           0 :     return false;
     282             : }
     283             : 
     284       26771 : TYPEINIT1_AUTOFACTORY(XLineCapItem, SfxEnumItem);
     285             : 
     286        9528 : XLineCapItem::XLineCapItem(com::sun::star::drawing::LineCap eLineCap)
     287        9528 : :   SfxEnumItem(XATTR_LINECAP, sal::static_int_cast< sal_uInt16 >(eLineCap))
     288             : {
     289        9528 : }
     290             : 
     291           0 : XLineCapItem::XLineCapItem( SvStream& rIn )
     292           0 : :   SfxEnumItem(XATTR_LINECAP, rIn)
     293             : {
     294           0 : }
     295             : 
     296           0 : sal_uInt16 XLineCapItem::GetVersion( sal_uInt16 /*nFileFormatVersion*/) const
     297             : {
     298           0 :     return 1;
     299             : }
     300             : 
     301           0 : SfxPoolItem* XLineCapItem::Create( SvStream& rIn, sal_uInt16 nVer ) const
     302             : {
     303           0 :     XLineCapItem* pRet = new XLineCapItem( rIn );
     304             : 
     305           0 :     if(nVer < 1)
     306           0 :         pRet->SetValue(com::sun::star::drawing::LineCap_BUTT);
     307             : 
     308           0 :     return pRet;
     309             : }
     310             : 
     311        1666 : SfxPoolItem* XLineCapItem::Clone(SfxItemPool* /*pPool*/) const
     312             : {
     313        1666 :     return new XLineCapItem( *this );
     314             : }
     315             : 
     316           0 : bool XLineCapItem::GetPresentation( SfxItemPresentation /*ePres*/, SfxMapUnit /*eCoreUnit*/,
     317             :                                                      SfxMapUnit /*ePresUnit*/, OUString& rText, const IntlWrapper*) const
     318             : {
     319           0 :     rText = OUString();
     320             : 
     321           0 :     sal_uInt16 nId = 0;
     322             : 
     323           0 :     switch( GetValue() )
     324             :     {
     325             :         default: /*com::sun::star::drawing::LineCap_BUTT*/
     326           0 :             nId = RID_SVXSTR_LINECAP_BUTT;
     327           0 :         break;
     328             : 
     329             :         case(com::sun::star::drawing::LineCap_ROUND):
     330           0 :             nId = RID_SVXSTR_LINECAP_ROUND;
     331           0 :         break;
     332             : 
     333             :         case(com::sun::star::drawing::LineCap_SQUARE):
     334           0 :             nId = RID_SVXSTR_LINECAP_SQUARE;
     335           0 :         break;
     336             :     }
     337             : 
     338           0 :     if( nId )
     339           0 :         rText = SVX_RESSTR( nId );
     340             : 
     341           0 :     return true;
     342             : }
     343             : 
     344        1634 : bool XLineCapItem::QueryValue( ::com::sun::star::uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
     345             : {
     346        1634 :     const com::sun::star::drawing::LineCap eCap(GetValue());
     347        1634 :     rVal <<= eCap;
     348        1634 :     return true;
     349             : }
     350             : 
     351           4 : bool XLineCapItem::PutValue( const ::com::sun::star::uno::Any& rVal, sal_uInt8 /*nMemberId*/)
     352             : {
     353             :     com::sun::star::drawing::LineCap eUnoCap;
     354             : 
     355           4 :     if(!(rVal >>= eUnoCap))
     356             :     {
     357             :         // also try an int (for Basic)
     358           0 :         sal_Int32 nLJ(0);
     359             : 
     360           0 :         if(!(rVal >>= nLJ))
     361             :         {
     362           0 :             return false;
     363             :         }
     364             : 
     365           0 :         eUnoCap = (com::sun::star::drawing::LineCap)nLJ;
     366             :     }
     367             : 
     368             :     OSL_ENSURE(com::sun::star::drawing::LineCap_BUTT == eUnoCap
     369             :         || com::sun::star::drawing::LineCap_ROUND == eUnoCap
     370             :         || com::sun::star::drawing::LineCap_SQUARE == eUnoCap, "Unknown enum value in XATTR_LINECAP (!)");
     371             : 
     372           4 :     SetValue(sal::static_int_cast< sal_uInt16 >(eUnoCap));
     373             : 
     374           4 :     return true;
     375             : }
     376             : 
     377           0 : sal_uInt16 XLineCapItem::GetValueCount() const
     378             : {
     379             :     // don't forget to update the api interface also
     380           0 :     return 3;
     381             : }
     382             : 
     383       26815 : com::sun::star::drawing::LineCap XLineCapItem::GetValue() const
     384             : {
     385       26815 :     const com::sun::star::drawing::LineCap eRetval((com::sun::star::drawing::LineCap)SfxEnumItem::GetValue());
     386             :     OSL_ENSURE(com::sun::star::drawing::LineCap_BUTT == eRetval
     387             :         || com::sun::star::drawing::LineCap_ROUND == eRetval
     388             :         || com::sun::star::drawing::LineCap_SQUARE == eRetval, "Unknown enum value in XATTR_LINECAP (!)");
     389             : 
     390       26815 :     return eRetval;
     391             : }
     392             : 
     393       77969 : TYPEINIT1_AUTOFACTORY(XFillTransparenceItem, SfxUInt16Item);
     394             : 
     395        8950 : XFillTransparenceItem::XFillTransparenceItem(sal_uInt16 nFillTransparence) :
     396        8950 :     SfxUInt16Item(XATTR_FILLTRANSPARENCE, nFillTransparence)
     397             : {
     398        8950 : }
     399             : 
     400           0 : XFillTransparenceItem::XFillTransparenceItem(SvStream& rIn) :
     401           0 :     SfxUInt16Item(XATTR_FILLTRANSPARENCE, rIn)
     402             : {
     403           0 : }
     404             : 
     405       15763 : SfxPoolItem* XFillTransparenceItem::Clone(SfxItemPool* /*pPool*/) const
     406             : {
     407       15763 :     return new XFillTransparenceItem(*this);
     408             : }
     409             : 
     410           0 : SfxPoolItem* XFillTransparenceItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) const
     411             : {
     412           0 :     return new XFillTransparenceItem(rIn);
     413             : }
     414             : 
     415           0 : bool XFillTransparenceItem::GetPresentation
     416             : (
     417             :     SfxItemPresentation ePres,
     418             :     SfxMapUnit          /*eCoreUnit*/,
     419             :     SfxMapUnit          /*ePresUnit*/,
     420             :     OUString&           rText, const IntlWrapper *
     421             : )   const
     422             : {
     423           0 :     rText = OUString();
     424             : 
     425           0 :     switch ( ePres )
     426             :     {
     427             :         case SFX_ITEM_PRESENTATION_COMPLETE:
     428           0 :             rText = OUString( ResId( RID_SVXSTR_TRANSPARENCE, DIALOG_MGR() ) ) + ": ";
     429             :         case SFX_ITEM_PRESENTATION_NAMELESS:
     430           0 :             rText += unicode::formatPercent(GetValue(),
     431           0 :                 Application::GetSettings().GetUILanguageTag());
     432           0 :             return true;
     433             :         default:
     434           0 :             return false;
     435             :     }
     436             : }
     437             : 
     438       22845 : TYPEINIT1_AUTOFACTORY(XFormTextShadowTranspItem, SfxUInt16Item);
     439             : 
     440        7788 : XFormTextShadowTranspItem::XFormTextShadowTranspItem(sal_uInt16 nShdwTransparence) :
     441        7788 :     SfxUInt16Item(XATTR_FORMTXTSHDWTRANSP, nShdwTransparence)
     442             : {
     443        7788 : }
     444             : 
     445           0 : XFormTextShadowTranspItem::XFormTextShadowTranspItem(SvStream& rIn) :
     446           0 :     SfxUInt16Item(XATTR_FORMTXTSHDWTRANSP, rIn)
     447             : {
     448           0 : }
     449             : 
     450           8 : SfxPoolItem* XFormTextShadowTranspItem::Clone(SfxItemPool* /*pPool*/) const
     451             : {
     452           8 :     return new XFormTextShadowTranspItem(*this);
     453             : }
     454             : 
     455           0 : SfxPoolItem* XFormTextShadowTranspItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) const
     456             : {
     457           0 :     return new XFormTextShadowTranspItem(rIn);
     458             : }
     459             : 
     460             : // class XFillGradientStepCountItem
     461             : 
     462       22845 : TYPEINIT1_AUTOFACTORY(XGradientStepCountItem, SfxUInt16Item);
     463             : 
     464        7788 : XGradientStepCountItem::XGradientStepCountItem( sal_uInt16 nStepCount ) :
     465        7788 :     SfxUInt16Item( XATTR_GRADIENTSTEPCOUNT, nStepCount )
     466             : {
     467        7788 : }
     468             : 
     469           0 : XGradientStepCountItem::XGradientStepCountItem( SvStream& rIn ) :
     470           0 :     SfxUInt16Item( XATTR_GRADIENTSTEPCOUNT, rIn )
     471             : {
     472           0 : }
     473             : 
     474           8 : SfxPoolItem* XGradientStepCountItem::Clone( SfxItemPool* /*pPool*/) const
     475             : {
     476           8 :     return new XGradientStepCountItem( *this );
     477             : }
     478             : 
     479           0 : SfxPoolItem* XGradientStepCountItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) const
     480             : {
     481           0 :     return new XGradientStepCountItem( rIn );
     482             : }
     483             : 
     484           0 : bool XGradientStepCountItem::GetPresentation
     485             : (
     486             :     SfxItemPresentation /*ePres*/,
     487             :     SfxMapUnit          /*eCoreUnit*/,
     488             :     SfxMapUnit          /*ePresUnit*/,
     489             :     OUString&           rText, const IntlWrapper *
     490             : )   const
     491             : {
     492           0 :     rText = OUString();
     493             : 
     494           0 :     rText += OUString::number(GetValue());
     495           0 :     return true;
     496             : }
     497             : 
     498       23995 : TYPEINIT1_AUTOFACTORY( XFillBmpTileItem, SfxBoolItem );
     499             : 
     500       17224 : XFillBmpTileItem::XFillBmpTileItem( bool bTile ) :
     501       17224 :             SfxBoolItem( XATTR_FILLBMP_TILE, bTile )
     502             : {
     503       17224 : }
     504             : 
     505           0 : XFillBmpTileItem::XFillBmpTileItem( SvStream& rIn ) :
     506           0 :             SfxBoolItem( XATTR_FILLBMP_TILE, rIn )
     507             : {
     508           0 : }
     509             : 
     510        1430 : SfxPoolItem* XFillBmpTileItem::Clone( SfxItemPool* /*pPool*/) const
     511             : {
     512        1430 :     return new XFillBmpTileItem( *this );
     513             : }
     514             : 
     515           0 : SfxPoolItem* XFillBmpTileItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
     516             : {
     517           0 :     return new XFillBmpTileItem( rIn );
     518             : }
     519             : 
     520           0 : bool XFillBmpTileItem::GetPresentation
     521             : (
     522             :     SfxItemPresentation /*ePres*/,
     523             :     SfxMapUnit          /*eCoreUnit*/,
     524             :     SfxMapUnit          /*ePresUnit*/,
     525             :     OUString&           rText, const IntlWrapper *
     526             : )   const
     527             : {
     528           0 :     rText = OUString();
     529           0 :     return true;
     530             : }
     531             : 
     532             : // class XFillBmpTilePosItem
     533             : 
     534       69927 : TYPEINIT1_AUTOFACTORY( XFillBmpPosItem, SfxEnumItem );
     535             : 
     536        7816 : XFillBmpPosItem::XFillBmpPosItem( RECT_POINT eRP ) :
     537        7816 :     SfxEnumItem( XATTR_FILLBMP_POS, sal::static_int_cast< sal_uInt16 >( eRP ) )
     538             : {
     539        7816 : }
     540             : 
     541           0 : XFillBmpPosItem::XFillBmpPosItem( SvStream& rIn ) :
     542           0 :             SfxEnumItem( XATTR_FILLBMP_POS, rIn )
     543             : {
     544           0 : }
     545             : 
     546       10795 : SfxPoolItem* XFillBmpPosItem::Clone( SfxItemPool* /*pPool*/) const
     547             : {
     548       10795 :     return new XFillBmpPosItem( *this );
     549             : }
     550             : 
     551           0 : SfxPoolItem* XFillBmpPosItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
     552             : {
     553           0 :     return new XFillBmpPosItem( rIn );
     554             : }
     555             : 
     556           0 : bool XFillBmpPosItem::GetPresentation
     557             : (
     558             :     SfxItemPresentation /*ePres*/,
     559             :     SfxMapUnit          /*eCoreUnit*/,
     560             :     SfxMapUnit          /*ePresUnit*/,
     561             :     OUString&           rText, const IntlWrapper *
     562             : )   const
     563             : {
     564           0 :     rText = OUString();
     565           0 :     return true;
     566             : }
     567             : 
     568           0 : sal_uInt16 XFillBmpPosItem::GetValueCount() const
     569             : {
     570           0 :     return 9;
     571             : }
     572             : 
     573             : // class XFillBmpTileSizeXItem
     574             : 
     575       69721 : TYPEINIT1_AUTOFACTORY( XFillBmpSizeXItem, SfxMetricItem );
     576             : 
     577        7790 : XFillBmpSizeXItem::XFillBmpSizeXItem( long nSizeX ) :
     578        7790 :             SfxMetricItem( XATTR_FILLBMP_SIZEX, nSizeX )
     579             : {
     580        7790 : }
     581             : 
     582           0 : XFillBmpSizeXItem::XFillBmpSizeXItem( SvStream& rIn ) :
     583           0 :             SfxMetricItem( XATTR_FILLBMP_SIZEX, rIn )
     584             : {
     585           0 : }
     586             : 
     587       10791 : SfxPoolItem* XFillBmpSizeXItem::Clone( SfxItemPool* /*pPool*/) const
     588             : {
     589       10791 :     return new XFillBmpSizeXItem( *this );
     590             : }
     591             : 
     592           0 : SfxPoolItem* XFillBmpSizeXItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
     593             : {
     594           0 :     return new XFillBmpSizeXItem( rIn );
     595             : }
     596             : 
     597           0 : bool XFillBmpSizeXItem::GetPresentation
     598             : (
     599             :     SfxItemPresentation /*ePres*/,
     600             :     SfxMapUnit          /*eCoreUnit*/,
     601             :     SfxMapUnit          /*ePresUnit*/,
     602             :     OUString&           rText, const IntlWrapper *
     603             : )   const
     604             : {
     605           0 :     rText = OUString();
     606           0 :     return true;
     607             : }
     608             : 
     609           0 : bool XFillBmpSizeXItem::HasMetrics() const
     610             : {
     611           0 :     return GetValue() > 0L;
     612             : }
     613             : 
     614             : // class XFillBmpTileSizeYItem
     615             : 
     616       69721 : TYPEINIT1_AUTOFACTORY( XFillBmpSizeYItem, SfxMetricItem );
     617             : 
     618        7790 : XFillBmpSizeYItem::XFillBmpSizeYItem( long nSizeY ) :
     619        7790 :             SfxMetricItem( XATTR_FILLBMP_SIZEY, nSizeY )
     620             : {
     621        7790 : }
     622             : 
     623           0 : XFillBmpSizeYItem::XFillBmpSizeYItem( SvStream& rIn ) :
     624           0 :             SfxMetricItem( XATTR_FILLBMP_SIZEY, rIn )
     625             : {
     626           0 : }
     627             : 
     628       10791 : SfxPoolItem* XFillBmpSizeYItem::Clone( SfxItemPool* /*pPool*/) const
     629             : {
     630       10791 :     return new XFillBmpSizeYItem( *this );
     631             : }
     632             : 
     633           0 : SfxPoolItem* XFillBmpSizeYItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
     634             : {
     635           0 :     return new XFillBmpSizeYItem( rIn );
     636             : }
     637             : 
     638           0 : bool XFillBmpSizeYItem::GetPresentation
     639             : (
     640             :     SfxItemPresentation /*ePres*/,
     641             :     SfxMapUnit          /*eCoreUnit*/,
     642             :     SfxMapUnit          /*ePresUnit*/,
     643             :     OUString&           rText, const IntlWrapper *
     644             : )   const
     645             : {
     646           0 :     rText = OUString();
     647           0 :     return true;
     648             : }
     649             : 
     650           0 : bool XFillBmpSizeYItem::HasMetrics() const
     651             : {
     652           0 :     return GetValue() > 0L;
     653             : }
     654             : 
     655             : // class XFillBmpTileLogItem
     656             : 
     657       69889 : TYPEINIT1_AUTOFACTORY( XFillBmpSizeLogItem, SfxBoolItem );
     658             : 
     659        7790 : XFillBmpSizeLogItem::XFillBmpSizeLogItem( bool bLog ) :
     660        7790 :             SfxBoolItem( XATTR_FILLBMP_SIZELOG, bLog )
     661             : {
     662        7790 : }
     663             : 
     664           0 : XFillBmpSizeLogItem::XFillBmpSizeLogItem( SvStream& rIn ) :
     665           0 :             SfxBoolItem( XATTR_FILLBMP_SIZELOG, rIn )
     666             : {
     667           0 : }
     668             : 
     669       10582 : SfxPoolItem* XFillBmpSizeLogItem::Clone( SfxItemPool* /*pPool*/) const
     670             : {
     671       10582 :     return new XFillBmpSizeLogItem( *this );
     672             : }
     673             : 
     674           0 : SfxPoolItem* XFillBmpSizeLogItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
     675             : {
     676           0 :     return new XFillBmpSizeLogItem( rIn );
     677             : }
     678             : 
     679           0 : bool XFillBmpSizeLogItem::GetPresentation
     680             : (
     681             :     SfxItemPresentation /*ePres*/,
     682             :     SfxMapUnit          /*eCoreUnit*/,
     683             :     SfxMapUnit          /*ePresUnit*/,
     684             :     OUString&           rText, const IntlWrapper *
     685             : )   const
     686             : {
     687           0 :     rText = OUString();
     688           0 :     return true;
     689             : }
     690             : 
     691             : // class XFillBmpTileOffXItem
     692             : 
     693       69477 : TYPEINIT1_AUTOFACTORY( XFillBmpTileOffsetXItem, SfxUInt16Item );
     694             : 
     695        7788 : XFillBmpTileOffsetXItem::XFillBmpTileOffsetXItem( sal_uInt16 nOffX ) :
     696        7788 :             SfxUInt16Item( XATTR_FILLBMP_TILEOFFSETX, nOffX )
     697             : {
     698        7788 : }
     699             : 
     700           0 : XFillBmpTileOffsetXItem::XFillBmpTileOffsetXItem( SvStream& rIn ) :
     701           0 :             SfxUInt16Item( XATTR_FILLBMP_TILEOFFSETX, rIn )
     702             : {
     703           0 : }
     704             : 
     705       10641 : SfxPoolItem* XFillBmpTileOffsetXItem::Clone( SfxItemPool* /*pPool*/) const
     706             : {
     707       10641 :     return new XFillBmpTileOffsetXItem( *this );
     708             : }
     709             : 
     710           0 : SfxPoolItem* XFillBmpTileOffsetXItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
     711             : {
     712           0 :     return new XFillBmpTileOffsetXItem( rIn );
     713             : }
     714             : 
     715           0 : bool XFillBmpTileOffsetXItem::GetPresentation
     716             : (
     717             :     SfxItemPresentation /*ePres*/,
     718             :     SfxMapUnit          /*eCoreUnit*/,
     719             :     SfxMapUnit          /*ePresUnit*/,
     720             :     OUString&           rText, const IntlWrapper *
     721             : )   const
     722             : {
     723           0 :     rText = OUString();
     724           0 :     return true;
     725             : }
     726             : 
     727             : // class XFillBmpTileOffYItem
     728             : 
     729       69477 : TYPEINIT1_AUTOFACTORY( XFillBmpTileOffsetYItem, SfxUInt16Item );
     730             : 
     731        7788 : XFillBmpTileOffsetYItem::XFillBmpTileOffsetYItem( sal_uInt16 nOffY ) :
     732        7788 :             SfxUInt16Item( XATTR_FILLBMP_TILEOFFSETY, nOffY )
     733             : {
     734        7788 : }
     735             : 
     736           0 : XFillBmpTileOffsetYItem::XFillBmpTileOffsetYItem( SvStream& rIn ) :
     737           0 :             SfxUInt16Item( XATTR_FILLBMP_TILEOFFSETY, rIn )
     738             : {
     739           0 : }
     740             : 
     741       10639 : SfxPoolItem* XFillBmpTileOffsetYItem::Clone( SfxItemPool* /*pPool*/) const
     742             : {
     743       10639 :     return new XFillBmpTileOffsetYItem( *this );
     744             : }
     745             : 
     746           0 : SfxPoolItem* XFillBmpTileOffsetYItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
     747             : {
     748           0 :     return new XFillBmpTileOffsetYItem( rIn );
     749             : }
     750             : 
     751           0 : bool XFillBmpTileOffsetYItem::GetPresentation
     752             : (
     753             :     SfxItemPresentation /*ePres*/,
     754             :     SfxMapUnit          /*eCoreUnit*/,
     755             :     SfxMapUnit          /*ePresUnit*/,
     756             :     OUString&           rText, const IntlWrapper *
     757             : )   const
     758             : {
     759           0 :     rText = OUString();
     760           0 :     return true;
     761             : }
     762             : 
     763       24113 : TYPEINIT1_AUTOFACTORY( XFillBmpStretchItem, SfxBoolItem );
     764             : 
     765       17224 : XFillBmpStretchItem::XFillBmpStretchItem( bool bStretch ) :
     766       17224 :             SfxBoolItem( XATTR_FILLBMP_STRETCH, bStretch )
     767             : {
     768       17224 : }
     769             : 
     770           0 : XFillBmpStretchItem::XFillBmpStretchItem( SvStream& rIn ) :
     771           0 :             SfxBoolItem( XATTR_FILLBMP_STRETCH, rIn )
     772             : {
     773           0 : }
     774             : 
     775        1684 : SfxPoolItem* XFillBmpStretchItem::Clone( SfxItemPool* /*pPool*/) const
     776             : {
     777        1684 :     return new XFillBmpStretchItem( *this );
     778             : }
     779             : 
     780           0 : SfxPoolItem* XFillBmpStretchItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
     781             : {
     782           0 :     return new XFillBmpStretchItem( rIn );
     783             : }
     784             : 
     785           0 : bool XFillBmpStretchItem::GetPresentation
     786             : (
     787             :     SfxItemPresentation /*ePres*/,
     788             :     SfxMapUnit          /*eCoreUnit*/,
     789             :     SfxMapUnit          /*ePresUnit*/,
     790             :     OUString&           rText, const IntlWrapper *
     791             : )   const
     792             : {
     793           0 :     rText = OUString();
     794           0 :     return true;
     795             : }
     796             : 
     797             : // class XFillBmpTileOffPosXItem
     798             : 
     799       69477 : TYPEINIT1_AUTOFACTORY( XFillBmpPosOffsetXItem, SfxUInt16Item );
     800             : 
     801        7788 : XFillBmpPosOffsetXItem::XFillBmpPosOffsetXItem( sal_uInt16 nOffPosX ) :
     802        7788 :             SfxUInt16Item( XATTR_FILLBMP_POSOFFSETX, nOffPosX )
     803             : {
     804        7788 : }
     805             : 
     806           0 : XFillBmpPosOffsetXItem::XFillBmpPosOffsetXItem( SvStream& rIn ) :
     807           0 :             SfxUInt16Item( XATTR_FILLBMP_POSOFFSETX, rIn )
     808             : {
     809           0 : }
     810             : 
     811       10635 : SfxPoolItem* XFillBmpPosOffsetXItem::Clone( SfxItemPool* /*pPool*/) const
     812             : {
     813       10635 :     return new XFillBmpPosOffsetXItem( *this );
     814             : }
     815             : 
     816           0 : SfxPoolItem* XFillBmpPosOffsetXItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
     817             : {
     818           0 :     return new XFillBmpPosOffsetXItem( rIn );
     819             : }
     820             : 
     821           0 : bool XFillBmpPosOffsetXItem::GetPresentation
     822             : (
     823             :     SfxItemPresentation /*ePres*/,
     824             :     SfxMapUnit          /*eCoreUnit*/,
     825             :     SfxMapUnit          /*ePresUnit*/,
     826             :     OUString&           rText, const IntlWrapper *
     827             : )   const
     828             : {
     829           0 :     rText = OUString();
     830           0 :     return true;
     831             : }
     832             : 
     833             : // class XFillBmpTileOffPosYItem
     834             : 
     835       69477 : TYPEINIT1_AUTOFACTORY( XFillBmpPosOffsetYItem, SfxUInt16Item );
     836             : 
     837        7788 : XFillBmpPosOffsetYItem::XFillBmpPosOffsetYItem( sal_uInt16 nOffPosY ) :
     838        7788 :             SfxUInt16Item( XATTR_FILLBMP_POSOFFSETY, nOffPosY )
     839             : {
     840        7788 : }
     841             : 
     842           0 : XFillBmpPosOffsetYItem::XFillBmpPosOffsetYItem( SvStream& rIn ) :
     843           0 :             SfxUInt16Item( XATTR_FILLBMP_POSOFFSETY, rIn )
     844             : {
     845           0 : }
     846             : 
     847       10633 : SfxPoolItem* XFillBmpPosOffsetYItem::Clone( SfxItemPool* /*pPool*/) const
     848             : {
     849       10633 :     return new XFillBmpPosOffsetYItem( *this );
     850             : }
     851             : 
     852           0 : SfxPoolItem* XFillBmpPosOffsetYItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
     853             : {
     854           0 :     return new XFillBmpPosOffsetYItem( rIn );
     855             : }
     856             : 
     857           0 : bool XFillBmpPosOffsetYItem::GetPresentation
     858             : (
     859             :     SfxItemPresentation /*ePres*/,
     860             :     SfxMapUnit          /*eCoreUnit*/,
     861             :     SfxMapUnit          /*ePresUnit*/,
     862             :     OUString&           rText, const IntlWrapper *
     863             : )   const
     864             : {
     865           0 :     rText = OUString();
     866           0 :     return true;
     867             : }
     868             : 
     869       69477 : TYPEINIT1_AUTOFACTORY(XFillBackgroundItem, SfxBoolItem);
     870             : 
     871        7788 : XFillBackgroundItem::XFillBackgroundItem( bool bFill ) :
     872        7788 :     SfxBoolItem( XATTR_FILLBACKGROUND, bFill )
     873             : {
     874        7788 : }
     875             : 
     876           0 : XFillBackgroundItem::XFillBackgroundItem( SvStream& rIn ) :
     877           0 :     SfxBoolItem( XATTR_FILLBACKGROUND, rIn )
     878             : {
     879           0 : }
     880             : 
     881       10623 : SfxPoolItem* XFillBackgroundItem::Clone( SfxItemPool* /*pPool*/) const
     882             : {
     883       10623 :     return new XFillBackgroundItem( *this );
     884             : }
     885             : 
     886           0 : SfxPoolItem* XFillBackgroundItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) const
     887             : {
     888           0 :     return new XFillBackgroundItem( rIn );
     889             : }
     890             : 
     891           0 : bool XFillBackgroundItem::GetPresentation( SfxItemPresentation /*ePres*/, SfxMapUnit /*eCoreUnit*/,
     892             :                                                           SfxMapUnit /*ePresUnit*/, OUString& rText, const IntlWrapper*) const
     893             : {
     894           0 :     rText = OUString();
     895           0 :     return true;
     896         651 : }
     897             : 
     898             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10