LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/svx/source/xoutdev - xattr2.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 114 420 27.1 %
Date: 2013-07-09 Functions: 104 200 52.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      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 <svx/dialogs.hrc>
      25             : #include "svx/xattr.hxx"
      26             : #include <svx/xtable.hxx>
      27             : #include <svx/dialmgr.hxx>
      28             : #include <editeng/itemtype.hxx>
      29             : #include <svx/xdef.hxx>
      30             : #include <svx/AffineMatrixItem.hxx>
      31             : 
      32             : /************************************************************************/
      33             : 
      34             : //------------------------------
      35             : // class XLineTransparenceItem
      36             : //------------------------------
      37       71177 : TYPEINIT1_AUTOFACTORY(XLineTransparenceItem, SfxUInt16Item);
      38             : 
      39             : /*************************************************************************
      40             : |*
      41             : |*    XLineTransparenceItem::XLineTransparenceItem(sal_uInt16)
      42             : |*
      43             : *************************************************************************/
      44             : 
      45        1410 : XLineTransparenceItem::XLineTransparenceItem(sal_uInt16 nLineTransparence) :
      46        1410 :     SfxUInt16Item(XATTR_LINETRANSPARENCE, nLineTransparence)
      47             : {
      48        1410 : }
      49             : 
      50             : /*************************************************************************
      51             : |*
      52             : |*    XLineTransparenceItem::XLineTransparenceItem(SvStream& rIn)
      53             : |*
      54             : *************************************************************************/
      55             : 
      56           0 : XLineTransparenceItem::XLineTransparenceItem(SvStream& rIn) :
      57           0 :     SfxUInt16Item(XATTR_LINETRANSPARENCE, rIn)
      58             : {
      59           0 : }
      60             : 
      61             : /*************************************************************************
      62             : |*
      63             : |*    XLineTransparenceItem::Clone(SfxItemPool* pPool) const
      64             : |*
      65             : *************************************************************************/
      66             : 
      67       14138 : SfxPoolItem* XLineTransparenceItem::Clone(SfxItemPool* /*pPool*/) const
      68             : {
      69       14138 :     return new XLineTransparenceItem(*this);
      70             : }
      71             : 
      72             : /*************************************************************************
      73             : |*
      74             : |*    SfxPoolItem* XLineTransparenceItem::Create(SvStream& rIn, sal_uInt16 nVer) const
      75             : |*
      76             : *************************************************************************/
      77             : 
      78           0 : SfxPoolItem* XLineTransparenceItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) const
      79             : {
      80           0 :     return new XLineTransparenceItem(rIn);
      81             : }
      82             : 
      83             : //------------------------------------------------------------------------
      84             : 
      85           0 : SfxItemPresentation XLineTransparenceItem::GetPresentation
      86             : (
      87             :     SfxItemPresentation ePres,
      88             :     SfxMapUnit          /*eCoreUnit*/,
      89             :     SfxMapUnit          /*ePresUnit*/,
      90             :     OUString&           rText, const IntlWrapper *
      91             : )   const
      92             : {
      93           0 :     rText = OUString();
      94             : 
      95           0 :     switch ( ePres )
      96             :     {
      97             :         case SFX_ITEM_PRESENTATION_NONE:
      98           0 :             return ePres;
      99             :         case SFX_ITEM_PRESENTATION_COMPLETE:
     100           0 :             rText = OUString( ResId( RID_SVXSTR_TRANSPARENCE, DIALOG_MGR() ) ) + ": ";
     101             :         case SFX_ITEM_PRESENTATION_NAMELESS:
     102           0 :             rText = rText + OUString::number( GetValue() ) + "%";
     103           0 :             return ePres;
     104             :         default:
     105           0 :             return SFX_ITEM_PRESENTATION_NONE;
     106             :     }
     107             : }
     108             : 
     109             : //-----------------------
     110             : // class XLineJointItem -
     111             : //-----------------------
     112             : 
     113       17107 : TYPEINIT1_AUTOFACTORY(XLineJointItem, SfxEnumItem);
     114             : 
     115             : // -----------------------------------------------------------------------------
     116             : 
     117        2167 : XLineJointItem::XLineJointItem( com::sun::star::drawing::LineJoint eLineJoint ) :
     118        2167 :     SfxEnumItem(XATTR_LINEJOINT, sal::static_int_cast< sal_uInt16 >(eLineJoint))
     119             : {
     120        2167 : }
     121             : 
     122             : // -----------------------------------------------------------------------------
     123             : 
     124           0 : XLineJointItem::XLineJointItem( SvStream& rIn ) :
     125           0 :     SfxEnumItem( XATTR_LINEJOINT, rIn )
     126             : {
     127           0 : }
     128             : 
     129             : // -----------------------------------------------------------------------------
     130             : 
     131           0 : sal_uInt16 XLineJointItem::GetVersion( sal_uInt16 /*nFileFormatVersion*/) const
     132             : {
     133           0 :     return 1;
     134             : }
     135             : 
     136             : // -----------------------------------------------------------------------------
     137             : 
     138           0 : SfxPoolItem* XLineJointItem::Create( SvStream& rIn, sal_uInt16 nVer ) const
     139             : {
     140           0 :     XLineJointItem* pRet = new XLineJointItem( rIn );
     141             : 
     142           0 :     if(nVer < 1)
     143           0 :         pRet->SetValue(com::sun::star::drawing::LineJoint_ROUND);
     144             : 
     145           0 :     return pRet;
     146             : }
     147             : 
     148             : // -----------------------------------------------------------------------------
     149             : 
     150        3063 : SfxPoolItem* XLineJointItem::Clone(SfxItemPool* /*pPool*/) const
     151             : {
     152        3063 :     return new XLineJointItem( *this );
     153             : }
     154             : 
     155             : // -----------------------------------------------------------------------------
     156             : 
     157           0 : SfxItemPresentation XLineJointItem::GetPresentation( SfxItemPresentation ePres, SfxMapUnit /*eCoreUnit*/,
     158             :     SfxMapUnit /*ePresUnit*/, OUString& rText, const IntlWrapper*) const
     159             : {
     160           0 :     rText = OUString();
     161             : 
     162           0 :     switch( ePres )
     163             :     {
     164           0 :         case SFX_ITEM_PRESENTATION_NONE: return ePres;
     165             : 
     166             :         case SFX_ITEM_PRESENTATION_COMPLETE:
     167             :         case SFX_ITEM_PRESENTATION_NAMELESS:
     168             :         {
     169           0 :             sal_uInt16 nId = 0;
     170             : 
     171           0 :             switch( GetValue() )
     172             :             {
     173             :                 case( com::sun::star::drawing::LineJoint_MAKE_FIXED_SIZE ):
     174             :                 case( com::sun::star::drawing::LineJoint_NONE ):
     175           0 :                     nId = RID_SVXSTR_LINEJOINT_NONE;
     176           0 :                 break;
     177             : 
     178             :                 case( com::sun::star::drawing::LineJoint_MIDDLE ):
     179           0 :                     nId = RID_SVXSTR_LINEJOINT_MIDDLE;
     180           0 :                 break;
     181             : 
     182             : 
     183             :                 case( com::sun::star::drawing::LineJoint_BEVEL ):
     184           0 :                     nId = RID_SVXSTR_LINEJOINT_BEVEL;
     185           0 :                 break;
     186             : 
     187             : 
     188             :                 case( com::sun::star::drawing::LineJoint_MITER ):
     189           0 :                     nId = RID_SVXSTR_LINEJOINT_MITER;
     190           0 :                 break;
     191             : 
     192             : 
     193             :                 case( com::sun::star::drawing::LineJoint_ROUND ):
     194           0 :                     nId = RID_SVXSTR_LINEJOINT_ROUND;
     195           0 :                 break;
     196             :             }
     197             : 
     198           0 :             if( nId )
     199           0 :                 rText = SVX_RESSTR( nId );
     200             : 
     201           0 :             return ePres;
     202             :         }
     203             :         default:
     204           0 :             return SFX_ITEM_PRESENTATION_NONE;
     205             :     }
     206             : }
     207             : 
     208             : // -----------------------------------------------------------------------------
     209             : 
     210         150 : bool XLineJointItem::QueryValue( ::com::sun::star::uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
     211             : {
     212         150 :     const ::com::sun::star::drawing::LineJoint eJoint = GetValue();
     213         150 :     rVal <<= eJoint;
     214         150 :     return true;
     215             : }
     216             : 
     217             : // -----------------------------------------------------------------------------
     218             : 
     219        2325 : bool XLineJointItem::PutValue( const ::com::sun::star::uno::Any& rVal, sal_uInt8 /*nMemberId*/)
     220             : {
     221             :     ::com::sun::star::drawing::LineJoint eUnoJoint;
     222             : 
     223        2325 :     if(!(rVal >>= eUnoJoint))
     224             :     {
     225             :         // also try an int (for Basic)
     226           0 :         sal_Int32 nLJ = 0;
     227           0 :         if(!(rVal >>= nLJ))
     228           0 :             return false;
     229           0 :         eUnoJoint = (::com::sun::star::drawing::LineJoint)nLJ;
     230             :     }
     231             : 
     232        2325 :     SetValue( sal::static_int_cast< sal_uInt16 >( eUnoJoint ) );
     233             : 
     234        2325 :     return true;
     235             : }
     236             : 
     237             : // -----------------------------------------------------------------------------
     238             : 
     239           0 : sal_uInt16 XLineJointItem::GetValueCount() const
     240             : {
     241             :     // don't forget to update the api interface also
     242           0 :     return 5;
     243             : }
     244             : 
     245             : //---------------------
     246             : // class AffineMatrixItem
     247             : //---------------------
     248             : 
     249           0 : TYPEINIT1_AUTOFACTORY(AffineMatrixItem, SfxPoolItem);
     250             : 
     251           0 : AffineMatrixItem::AffineMatrixItem(const com::sun::star::geometry::AffineMatrix2D* pMatrix)
     252           0 : :   SfxPoolItem(SID_ATTR_TRANSFORM_MATRIX)
     253             : {
     254           0 :     if(pMatrix)
     255             :     {
     256           0 :         maMatrix = *pMatrix;
     257             :     }
     258             :     else
     259             :     {
     260           0 :         maMatrix.m00 = 1.0;
     261           0 :         maMatrix.m01 = 0.0;
     262           0 :         maMatrix.m02 = 0.0;
     263           0 :         maMatrix.m10 = 0.0;
     264           0 :         maMatrix.m11 = 1.0;
     265           0 :         maMatrix.m12 = 0.0;
     266             :     }
     267           0 : }
     268             : 
     269           0 : AffineMatrixItem::AffineMatrixItem(SvStream& rIn)
     270           0 : :   SfxPoolItem(SID_ATTR_TRANSFORM_MATRIX)
     271             : {
     272           0 :     rIn >> maMatrix.m00;
     273           0 :     rIn >> maMatrix.m01;
     274           0 :     rIn >> maMatrix.m02;
     275           0 :     rIn >> maMatrix.m10;
     276           0 :     rIn >> maMatrix.m11;
     277           0 :     rIn >> maMatrix.m12;
     278           0 : }
     279             : 
     280           0 : AffineMatrixItem::AffineMatrixItem(const AffineMatrixItem& rRef)
     281           0 : :   SfxPoolItem(SID_ATTR_TRANSFORM_MATRIX)
     282             : {
     283           0 :     maMatrix = rRef.maMatrix;
     284           0 : }
     285             : 
     286           0 : AffineMatrixItem::~AffineMatrixItem()
     287             : {
     288           0 : }
     289             : 
     290           0 : int AffineMatrixItem::operator==(const SfxPoolItem& rRef) const
     291             : {
     292           0 :     if(!SfxPoolItem::operator==(rRef))
     293             :     {
     294           0 :         return 0;
     295             :     }
     296             : 
     297           0 :     const AffineMatrixItem* pRef = dynamic_cast< const AffineMatrixItem* >(&rRef);
     298             : 
     299           0 :     if(!pRef)
     300             :     {
     301           0 :         return 0;
     302             :     }
     303             : 
     304           0 :     return (maMatrix.m00 == pRef->maMatrix.m00
     305           0 :         && maMatrix.m01 == pRef->maMatrix.m01
     306           0 :         && maMatrix.m02 == pRef->maMatrix.m02
     307           0 :         && maMatrix.m10 == pRef->maMatrix.m10
     308           0 :         && maMatrix.m11 == pRef->maMatrix.m11
     309           0 :         && maMatrix.m12 == pRef->maMatrix.m12);
     310             : }
     311             : 
     312           0 : SfxPoolItem* AffineMatrixItem::Clone( SfxItemPool* /*pPool*/ ) const
     313             : {
     314           0 :     return new AffineMatrixItem(*this);
     315             : }
     316             : 
     317           0 : SfxPoolItem* AffineMatrixItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/ ) const
     318             : {
     319           0 :     return new AffineMatrixItem(rIn);
     320             : }
     321             : 
     322           0 : SvStream& AffineMatrixItem::Store(SvStream &rStream, sal_uInt16 /*nItemVersion*/ ) const
     323             : {
     324           0 :     rStream << maMatrix.m00;
     325           0 :     rStream << maMatrix.m01;
     326           0 :     rStream << maMatrix.m02;
     327           0 :     rStream << maMatrix.m10;
     328           0 :     rStream << maMatrix.m11;
     329           0 :     rStream << maMatrix.m12;
     330           0 :     return rStream;
     331             : }
     332             : 
     333           0 : bool AffineMatrixItem::QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 /*nMemberId*/ ) const
     334             : {
     335           0 :     rVal <<= maMatrix;
     336           0 :     return true;
     337             : }
     338             : 
     339           0 : bool AffineMatrixItem::PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 /*nMemberId*/ )
     340             : {
     341           0 :     if (rVal >>= maMatrix)
     342             :     {
     343           0 :         return true;
     344             :     }
     345             : 
     346             :     OSL_ENSURE(false, "AffineMatrixItem::PutValue - Wrong type!");
     347           0 :     return false;
     348             : }
     349             : 
     350           0 : const com::sun::star::geometry::AffineMatrix2D& AffineMatrixItem::GetAffineMatrix2D() const
     351             : {
     352           0 :     return maMatrix;
     353             : }
     354             : 
     355             : //-----------------------
     356             : // class XLineCapItem -
     357             : //-----------------------
     358             : 
     359        4893 : TYPEINIT1_AUTOFACTORY(XLineCapItem, SfxEnumItem);
     360             : 
     361             : // -----------------------------------------------------------------------------
     362             : 
     363        2167 : XLineCapItem::XLineCapItem(com::sun::star::drawing::LineCap eLineCap)
     364        2167 : :   SfxEnumItem(XATTR_LINECAP, sal::static_int_cast< sal_uInt16 >(eLineCap))
     365             : {
     366        2167 : }
     367             : 
     368             : // -----------------------------------------------------------------------------
     369             : 
     370           0 : XLineCapItem::XLineCapItem( SvStream& rIn )
     371           0 : :   SfxEnumItem(XATTR_LINECAP, rIn)
     372             : {
     373           0 : }
     374             : 
     375             : // -----------------------------------------------------------------------------
     376             : 
     377           0 : sal_uInt16 XLineCapItem::GetVersion( sal_uInt16 /*nFileFormatVersion*/) const
     378             : {
     379           0 :     return 1;
     380             : }
     381             : 
     382             : // -----------------------------------------------------------------------------
     383             : 
     384           0 : SfxPoolItem* XLineCapItem::Create( SvStream& rIn, sal_uInt16 nVer ) const
     385             : {
     386           0 :     XLineCapItem* pRet = new XLineCapItem( rIn );
     387             : 
     388           0 :     if(nVer < 1)
     389           0 :         pRet->SetValue(com::sun::star::drawing::LineCap_BUTT);
     390             : 
     391           0 :     return pRet;
     392             : }
     393             : 
     394             : // -----------------------------------------------------------------------------
     395             : 
     396          31 : SfxPoolItem* XLineCapItem::Clone(SfxItemPool* /*pPool*/) const
     397             : {
     398          31 :     return new XLineCapItem( *this );
     399             : }
     400             : 
     401             : // -----------------------------------------------------------------------------
     402             : 
     403           0 : SfxItemPresentation XLineCapItem::GetPresentation( SfxItemPresentation ePres, SfxMapUnit /*eCoreUnit*/,
     404             :                                                      SfxMapUnit /*ePresUnit*/, OUString& rText, const IntlWrapper*) const
     405             : {
     406           0 :     rText = OUString();
     407             : 
     408           0 :     switch( ePres )
     409             :     {
     410           0 :         case SFX_ITEM_PRESENTATION_NONE: return ePres;
     411             : 
     412             :         case SFX_ITEM_PRESENTATION_COMPLETE:
     413             :         case SFX_ITEM_PRESENTATION_NAMELESS:
     414             :         {
     415           0 :             sal_uInt16 nId = 0;
     416             : 
     417           0 :             switch( GetValue() )
     418             :             {
     419             :                 default: /*com::sun::star::drawing::LineCap_BUTT*/
     420           0 :                     nId = RID_SVXSTR_LINECAP_BUTT;
     421           0 :                 break;
     422             : 
     423             :                 case(com::sun::star::drawing::LineCap_ROUND):
     424           0 :                     nId = RID_SVXSTR_LINECAP_ROUND;
     425           0 :                 break;
     426             : 
     427             :                 case(com::sun::star::drawing::LineCap_SQUARE):
     428           0 :                     nId = RID_SVXSTR_LINECAP_SQUARE;
     429           0 :                 break;
     430             :             }
     431             : 
     432           0 :             if( nId )
     433           0 :                 rText = SVX_RESSTR( nId );
     434             : 
     435           0 :             return ePres;
     436             :         }
     437             :         default:
     438           0 :             return SFX_ITEM_PRESENTATION_NONE;
     439             :     }
     440             : }
     441             : 
     442             : // -----------------------------------------------------------------------------
     443             : 
     444           8 : bool XLineCapItem::QueryValue( ::com::sun::star::uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
     445             : {
     446           8 :     const com::sun::star::drawing::LineCap eCap(GetValue());
     447           8 :     rVal <<= eCap;
     448           8 :     return true;
     449             : }
     450             : 
     451             : // -----------------------------------------------------------------------------
     452             : 
     453           0 : bool XLineCapItem::PutValue( const ::com::sun::star::uno::Any& rVal, sal_uInt8 /*nMemberId*/)
     454             : {
     455             :     com::sun::star::drawing::LineCap eUnoCap;
     456             : 
     457           0 :     if(!(rVal >>= eUnoCap))
     458             :     {
     459             :         // also try an int (for Basic)
     460           0 :         sal_Int32 nLJ(0);
     461             : 
     462           0 :         if(!(rVal >>= nLJ))
     463             :         {
     464           0 :             return false;
     465             :         }
     466             : 
     467           0 :         eUnoCap = (com::sun::star::drawing::LineCap)nLJ;
     468             :     }
     469             : 
     470             :     OSL_ENSURE(com::sun::star::drawing::LineCap_BUTT == eUnoCap
     471             :         || com::sun::star::drawing::LineCap_ROUND == eUnoCap
     472             :         || com::sun::star::drawing::LineCap_SQUARE == eUnoCap, "Unknown enum value in XATTR_LINECAP (!)");
     473             : 
     474           0 :     SetValue(sal::static_int_cast< sal_uInt16 >(eUnoCap));
     475             : 
     476           0 :     return true;
     477             : }
     478             : 
     479             : // -----------------------------------------------------------------------------
     480             : 
     481           0 : sal_uInt16 XLineCapItem::GetValueCount() const
     482             : {
     483             :     // don't forget to update the api interface also
     484           0 :     return 3;
     485             : }
     486             : 
     487             : // -----------------------------------------------------------------------------
     488             : 
     489       11213 : com::sun::star::drawing::LineCap XLineCapItem::GetValue() const
     490             : {
     491       11213 :     const com::sun::star::drawing::LineCap eRetval((com::sun::star::drawing::LineCap)SfxEnumItem::GetValue());
     492             :     OSL_ENSURE(com::sun::star::drawing::LineCap_BUTT == eRetval
     493             :         || com::sun::star::drawing::LineCap_ROUND == eRetval
     494             :         || com::sun::star::drawing::LineCap_SQUARE == eRetval, "Unknown enum value in XATTR_LINECAP (!)");
     495             : 
     496       11213 :     return eRetval;
     497             : }
     498             : 
     499             : //------------------------------
     500             : // class XFillTransparenceItem
     501             : //------------------------------
     502       55311 : TYPEINIT1_AUTOFACTORY(XFillTransparenceItem, SfxUInt16Item);
     503             : 
     504             : /*************************************************************************
     505             : |*
     506             : |*    XFillTransparenceItem::XFillTransparenceItem(sal_uInt16)
     507             : |*
     508             : *************************************************************************/
     509             : 
     510        1526 : XFillTransparenceItem::XFillTransparenceItem(sal_uInt16 nFillTransparence) :
     511        1526 :     SfxUInt16Item(XATTR_FILLTRANSPARENCE, nFillTransparence)
     512             : {
     513        1526 : }
     514             : 
     515             : /*************************************************************************
     516             : |*
     517             : |*    XFillTransparenceItem::XFillTransparenceItem(SvStream& rIn)
     518             : |*
     519             : *************************************************************************/
     520             : 
     521           0 : XFillTransparenceItem::XFillTransparenceItem(SvStream& rIn) :
     522           0 :     SfxUInt16Item(XATTR_FILLTRANSPARENCE, rIn)
     523             : {
     524           0 : }
     525             : 
     526             : /*************************************************************************
     527             : |*
     528             : |*    XFillTransparenceItem::Clone(SfxItemPool* pPool) const
     529             : |*
     530             : *************************************************************************/
     531             : 
     532       11040 : SfxPoolItem* XFillTransparenceItem::Clone(SfxItemPool* /*pPool*/) const
     533             : {
     534       11040 :     return new XFillTransparenceItem(*this);
     535             : }
     536             : 
     537             : /*************************************************************************
     538             : |*
     539             : |*    SfxPoolItem* XFillTransparenceItem::Create(SvStream& rIn, sal_uInt16 nVer) const
     540             : |*
     541             : *************************************************************************/
     542             : 
     543           0 : SfxPoolItem* XFillTransparenceItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) const
     544             : {
     545           0 :     return new XFillTransparenceItem(rIn);
     546             : }
     547             : 
     548             : //------------------------------------------------------------------------
     549             : 
     550           0 : SfxItemPresentation XFillTransparenceItem::GetPresentation
     551             : (
     552             :     SfxItemPresentation ePres,
     553             :     SfxMapUnit          /*eCoreUnit*/,
     554             :     SfxMapUnit          /*ePresUnit*/,
     555             :     OUString&           rText, const IntlWrapper *
     556             : )   const
     557             : {
     558           0 :     rText = OUString();
     559             : 
     560           0 :     switch ( ePres )
     561             :     {
     562             :         case SFX_ITEM_PRESENTATION_NONE:
     563           0 :             return ePres;
     564             :         case SFX_ITEM_PRESENTATION_COMPLETE:
     565           0 :             rText = OUString( ResId( RID_SVXSTR_TRANSPARENCE, DIALOG_MGR() ) ) + ": ";
     566             :         case SFX_ITEM_PRESENTATION_NAMELESS:
     567           0 :             rText = rText + OUString::number( GetValue() ) + "%";
     568           0 :             return ePres;
     569             :         default:
     570           0 :             return SFX_ITEM_PRESENTATION_NONE;
     571             :     }
     572             : }
     573             : 
     574             : //------------------------------
     575             : // class XFormTextShadowTranspItem
     576             : //------------------------------
     577        4020 : TYPEINIT1_AUTOFACTORY(XFormTextShadowTranspItem, SfxUInt16Item);
     578             : 
     579             : /*************************************************************************
     580             : |*
     581             : |*    XFormTextShadowTranspItem::XFormTextShadowTranspItem(sal_uInt16)
     582             : |*
     583             : *************************************************************************/
     584             : 
     585        1404 : XFormTextShadowTranspItem::XFormTextShadowTranspItem(sal_uInt16 nShdwTransparence) :
     586        1404 :     SfxUInt16Item(XATTR_FORMTXTSHDWTRANSP, nShdwTransparence)
     587             : {
     588        1404 : }
     589             : 
     590             : /*************************************************************************
     591             : |*
     592             : |*    XFormTextShadowTranspItem::XFormTextShadowTranspItem(SvStream& rIn)
     593             : |*
     594             : *************************************************************************/
     595             : 
     596           0 : XFormTextShadowTranspItem::XFormTextShadowTranspItem(SvStream& rIn) :
     597           0 :     SfxUInt16Item(XATTR_FORMTXTSHDWTRANSP, rIn)
     598             : {
     599           0 : }
     600             : 
     601             : /*************************************************************************
     602             : |*
     603             : |*    XFormTextShadowTranspItem::Clone(SfxItemPool* pPool) const
     604             : |*
     605             : *************************************************************************/
     606             : 
     607           0 : SfxPoolItem* XFormTextShadowTranspItem::Clone(SfxItemPool* /*pPool*/) const
     608             : {
     609           0 :     return new XFormTextShadowTranspItem(*this);
     610             : }
     611             : 
     612             : /*************************************************************************
     613             : |*
     614             : |*    SfxPoolItem* XFormTextShadowTranspItem::Create(SvStream& rIn, sal_uInt16 nVer) const
     615             : |*
     616             : *************************************************************************/
     617             : 
     618           0 : SfxPoolItem* XFormTextShadowTranspItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) const
     619             : {
     620           0 :     return new XFormTextShadowTranspItem(rIn);
     621             : }
     622             : 
     623             : 
     624             : //------------------------------
     625             : // class XFillGradientStepCountItem
     626             : //------------------------------
     627        4020 : TYPEINIT1_AUTOFACTORY(XGradientStepCountItem, SfxUInt16Item);
     628             : 
     629             : /*************************************************************************
     630             : |*
     631             : |*    XGradientStepCountItem::XGradientStepCountItem( sal_uInt16 )
     632             : |*
     633             : *************************************************************************/
     634             : 
     635        1404 : XGradientStepCountItem::XGradientStepCountItem( sal_uInt16 nStepCount ) :
     636        1404 :     SfxUInt16Item( XATTR_GRADIENTSTEPCOUNT, nStepCount )
     637             : {
     638        1404 : }
     639             : 
     640             : /*************************************************************************
     641             : |*
     642             : |*    XGradientStepCountItem::XGradientStepCountItem( SvStream& rIn )
     643             : |*
     644             : *************************************************************************/
     645             : 
     646           0 : XGradientStepCountItem::XGradientStepCountItem( SvStream& rIn ) :
     647           0 :     SfxUInt16Item( XATTR_GRADIENTSTEPCOUNT, rIn )
     648             : {
     649           0 : }
     650             : 
     651             : /*************************************************************************
     652             : |*
     653             : |*    XGradientStepCountItem::Clone( SfxItemPool* pPool ) const
     654             : |*
     655             : *************************************************************************/
     656             : 
     657           0 : SfxPoolItem* XGradientStepCountItem::Clone( SfxItemPool* /*pPool*/) const
     658             : {
     659           0 :     return new XGradientStepCountItem( *this );
     660             : }
     661             : 
     662             : /*************************************************************************
     663             : |*
     664             : |*    SfxPoolItem* XGradientStepCountItem::Create(SvStream& rIn, sal_uInt16 nVer) const
     665             : |*
     666             : *************************************************************************/
     667             : 
     668           0 : SfxPoolItem* XGradientStepCountItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) const
     669             : {
     670           0 :     return new XGradientStepCountItem( rIn );
     671             : }
     672             : 
     673             : //------------------------------------------------------------------------
     674             : 
     675           0 : SfxItemPresentation XGradientStepCountItem::GetPresentation
     676             : (
     677             :     SfxItemPresentation ePres,
     678             :     SfxMapUnit          /*eCoreUnit*/,
     679             :     SfxMapUnit          /*ePresUnit*/,
     680             :     OUString&           rText, const IntlWrapper *
     681             : )   const
     682             : {
     683           0 :     rText = OUString();
     684             : 
     685           0 :     switch ( ePres )
     686             :     {
     687             :         case SFX_ITEM_PRESENTATION_NONE:
     688           0 :             return ePres;
     689             :         case SFX_ITEM_PRESENTATION_COMPLETE:
     690             : //          rText = OUString( ResId( RID_SVXSTR_GRADIENTSTEPCOUNT, DIALOG_MGR() ) ) + ": ";
     691             :         case SFX_ITEM_PRESENTATION_NAMELESS:
     692           0 :             rText += OUString::number(GetValue());
     693           0 :             return ePres;
     694             :         default:
     695           0 :             return SFX_ITEM_PRESENTATION_NONE;
     696             :     }
     697             : }
     698             : 
     699             : 
     700             : //------------------------------
     701             : // class XFillBmpTileItem
     702             : //------------------------------
     703        4603 : TYPEINIT1_AUTOFACTORY( XFillBmpTileItem, SfxBoolItem );
     704             : 
     705       11395 : XFillBmpTileItem::XFillBmpTileItem( sal_Bool bTile ) :
     706       11395 :             SfxBoolItem( XATTR_FILLBMP_TILE, bTile )
     707             : {
     708       11395 : }
     709             : 
     710           0 : XFillBmpTileItem::XFillBmpTileItem( SvStream& rIn ) :
     711           0 :             SfxBoolItem( XATTR_FILLBMP_TILE, rIn )
     712             : {
     713           0 : }
     714             : 
     715         754 : SfxPoolItem* XFillBmpTileItem::Clone( SfxItemPool* /*pPool*/) const
     716             : {
     717         754 :     return new XFillBmpTileItem( *this );
     718             : }
     719             : 
     720           0 : SfxPoolItem* XFillBmpTileItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
     721             : {
     722           0 :     return new XFillBmpTileItem( rIn );
     723             : }
     724             : 
     725           0 : SfxItemPresentation XFillBmpTileItem::GetPresentation
     726             : (
     727             :     SfxItemPresentation ePres,
     728             :     SfxMapUnit          /*eCoreUnit*/,
     729             :     SfxMapUnit          /*ePresUnit*/,
     730             :     OUString&           rText, const IntlWrapper *
     731             : )   const
     732             : {
     733           0 :     rText = OUString();
     734             : 
     735           0 :     switch ( ePres )
     736             :     {
     737             :         case SFX_ITEM_PRESENTATION_NONE:
     738           0 :             return ePres;
     739             :         case SFX_ITEM_PRESENTATION_COMPLETE:
     740             :         case SFX_ITEM_PRESENTATION_NAMELESS:
     741           0 :             return ePres;
     742             :         default:
     743           0 :             return SFX_ITEM_PRESENTATION_NONE;
     744             :     }
     745             : }
     746             : 
     747             : 
     748             : //------------------------------
     749             : // class XFillBmpTilePosItem
     750             : //------------------------------
     751       54478 : TYPEINIT1_AUTOFACTORY( XFillBmpPosItem, SfxEnumItem );
     752             : 
     753        1404 : XFillBmpPosItem::XFillBmpPosItem( RECT_POINT eRP ) :
     754        1404 :     SfxEnumItem( XATTR_FILLBMP_POS, sal::static_int_cast< sal_uInt16 >( eRP ) )
     755             : {
     756        1404 : }
     757             : 
     758           0 : XFillBmpPosItem::XFillBmpPosItem( SvStream& rIn ) :
     759           0 :             SfxEnumItem( XATTR_FILLBMP_POS, rIn )
     760             : {
     761           0 : }
     762             : 
     763       10806 : SfxPoolItem* XFillBmpPosItem::Clone( SfxItemPool* /*pPool*/) const
     764             : {
     765       10806 :     return new XFillBmpPosItem( *this );
     766             : }
     767             : 
     768           0 : SfxPoolItem* XFillBmpPosItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
     769             : {
     770           0 :     return new XFillBmpPosItem( rIn );
     771             : }
     772             : 
     773           0 : SfxItemPresentation XFillBmpPosItem::GetPresentation
     774             : (
     775             :     SfxItemPresentation ePres,
     776             :     SfxMapUnit          /*eCoreUnit*/,
     777             :     SfxMapUnit          /*ePresUnit*/,
     778             :     OUString&           rText, const IntlWrapper *
     779             : )   const
     780             : {
     781           0 :     rText = OUString();
     782             : 
     783           0 :     switch ( ePres )
     784             :     {
     785             :         case SFX_ITEM_PRESENTATION_NONE:
     786           0 :             return ePres;
     787             :         case SFX_ITEM_PRESENTATION_COMPLETE:
     788             :         case SFX_ITEM_PRESENTATION_NAMELESS:
     789           0 :             return ePres;
     790             :         default:
     791           0 :             return SFX_ITEM_PRESENTATION_NONE;
     792             :     }
     793             : }
     794             : 
     795           0 : sal_uInt16 XFillBmpPosItem::GetValueCount() const
     796             : {
     797           0 :     return 9;
     798             : }
     799             : 
     800             : 
     801             : //------------------------------
     802             : // class XFillBmpTileSizeXItem
     803             : //------------------------------
     804       54496 : TYPEINIT1_AUTOFACTORY( XFillBmpSizeXItem, SfxMetricItem );
     805             : 
     806        1404 : XFillBmpSizeXItem::XFillBmpSizeXItem( long nSizeX ) :
     807        1404 :             SfxMetricItem( XATTR_FILLBMP_SIZEX, nSizeX )
     808             : {
     809        1404 : }
     810             : 
     811           0 : XFillBmpSizeXItem::XFillBmpSizeXItem( SvStream& rIn ) :
     812           0 :             SfxMetricItem( XATTR_FILLBMP_SIZEX, rIn )
     813             : {
     814           0 : }
     815             : 
     816       11087 : SfxPoolItem* XFillBmpSizeXItem::Clone( SfxItemPool* /*pPool*/) const
     817             : {
     818       11087 :     return new XFillBmpSizeXItem( *this );
     819             : }
     820             : 
     821           0 : SfxPoolItem* XFillBmpSizeXItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
     822             : {
     823           0 :     return new XFillBmpSizeXItem( rIn );
     824             : }
     825             : 
     826           0 : SfxItemPresentation XFillBmpSizeXItem::GetPresentation
     827             : (
     828             :     SfxItemPresentation ePres,
     829             :     SfxMapUnit          /*eCoreUnit*/,
     830             :     SfxMapUnit          /*ePresUnit*/,
     831             :     OUString&           rText, const IntlWrapper *
     832             : )   const
     833             : {
     834           0 :     rText = OUString();
     835             : 
     836           0 :     switch ( ePres )
     837             :     {
     838             :         case SFX_ITEM_PRESENTATION_NONE:
     839           0 :             return ePres;
     840             :         case SFX_ITEM_PRESENTATION_COMPLETE:
     841             :         case SFX_ITEM_PRESENTATION_NAMELESS:
     842           0 :             return ePres;
     843             :         default:
     844           0 :             return SFX_ITEM_PRESENTATION_NONE;
     845             :     }
     846             : }
     847             : 
     848           0 : bool XFillBmpSizeXItem::HasMetrics() const
     849             : {
     850           0 :     return GetValue() > 0L;
     851             : }
     852             : 
     853             : 
     854             : //------------------------------
     855             : // class XFillBmpTileSizeYItem
     856             : //------------------------------
     857       54496 : TYPEINIT1_AUTOFACTORY( XFillBmpSizeYItem, SfxMetricItem );
     858             : 
     859        1404 : XFillBmpSizeYItem::XFillBmpSizeYItem( long nSizeY ) :
     860        1404 :             SfxMetricItem( XATTR_FILLBMP_SIZEY, nSizeY )
     861             : {
     862        1404 : }
     863             : 
     864           0 : XFillBmpSizeYItem::XFillBmpSizeYItem( SvStream& rIn ) :
     865           0 :             SfxMetricItem( XATTR_FILLBMP_SIZEY, rIn )
     866             : {
     867           0 : }
     868             : 
     869       11086 : SfxPoolItem* XFillBmpSizeYItem::Clone( SfxItemPool* /*pPool*/) const
     870             : {
     871       11086 :     return new XFillBmpSizeYItem( *this );
     872             : }
     873             : 
     874           0 : SfxPoolItem* XFillBmpSizeYItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
     875             : {
     876           0 :     return new XFillBmpSizeYItem( rIn );
     877             : }
     878             : 
     879           0 : SfxItemPresentation XFillBmpSizeYItem::GetPresentation
     880             : (
     881             :     SfxItemPresentation ePres,
     882             :     SfxMapUnit          /*eCoreUnit*/,
     883             :     SfxMapUnit          /*ePresUnit*/,
     884             :     OUString&           rText, const IntlWrapper *
     885             : )   const
     886             : {
     887           0 :     rText = OUString();
     888             : 
     889           0 :     switch ( ePres )
     890             :     {
     891             :         case SFX_ITEM_PRESENTATION_NONE:
     892           0 :             return ePres;
     893             :         case SFX_ITEM_PRESENTATION_COMPLETE:
     894             :         case SFX_ITEM_PRESENTATION_NAMELESS:
     895           0 :             return ePres;
     896             :         default:
     897           0 :             return SFX_ITEM_PRESENTATION_NONE;
     898             :     }
     899             : }
     900             : 
     901           0 : bool XFillBmpSizeYItem::HasMetrics() const
     902             : {
     903           0 :     return GetValue() > 0L;
     904             : }
     905             : 
     906             : 
     907             : //------------------------------
     908             : // class XFillBmpTileLogItem
     909             : //------------------------------
     910       54498 : TYPEINIT1_AUTOFACTORY( XFillBmpSizeLogItem, SfxBoolItem );
     911             : 
     912        1404 : XFillBmpSizeLogItem::XFillBmpSizeLogItem( sal_Bool bLog ) :
     913        1404 :             SfxBoolItem( XATTR_FILLBMP_SIZELOG, bLog )
     914             : {
     915        1404 : }
     916             : 
     917           0 : XFillBmpSizeLogItem::XFillBmpSizeLogItem( SvStream& rIn ) :
     918           0 :             SfxBoolItem( XATTR_FILLBMP_SIZELOG, rIn )
     919             : {
     920           0 : }
     921             : 
     922       10743 : SfxPoolItem* XFillBmpSizeLogItem::Clone( SfxItemPool* /*pPool*/) const
     923             : {
     924       10743 :     return new XFillBmpSizeLogItem( *this );
     925             : }
     926             : 
     927           0 : SfxPoolItem* XFillBmpSizeLogItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
     928             : {
     929           0 :     return new XFillBmpSizeLogItem( rIn );
     930             : }
     931             : 
     932           0 : SfxItemPresentation XFillBmpSizeLogItem::GetPresentation
     933             : (
     934             :     SfxItemPresentation ePres,
     935             :     SfxMapUnit          /*eCoreUnit*/,
     936             :     SfxMapUnit          /*ePresUnit*/,
     937             :     OUString&           rText, const IntlWrapper *
     938             : )   const
     939             : {
     940           0 :     rText = OUString();
     941             : 
     942           0 :     switch ( ePres )
     943             :     {
     944             :         case SFX_ITEM_PRESENTATION_NONE:
     945           0 :             return ePres;
     946             :         case SFX_ITEM_PRESENTATION_COMPLETE:
     947             :         case SFX_ITEM_PRESENTATION_NAMELESS:
     948           0 :             return ePres;
     949             :         default:
     950           0 :             return SFX_ITEM_PRESENTATION_NONE;
     951             :     }
     952             : }
     953             : 
     954             : 
     955             : //------------------------------
     956             : // class XFillBmpTileOffXItem
     957             : //------------------------------
     958       54478 : TYPEINIT1_AUTOFACTORY( XFillBmpTileOffsetXItem, SfxUInt16Item );
     959             : 
     960        1404 : XFillBmpTileOffsetXItem::XFillBmpTileOffsetXItem( sal_uInt16 nOffX ) :
     961        1404 :             SfxUInt16Item( XATTR_FILLBMP_TILEOFFSETX, nOffX )
     962             : {
     963        1404 : }
     964             : 
     965           0 : XFillBmpTileOffsetXItem::XFillBmpTileOffsetXItem( SvStream& rIn ) :
     966           0 :             SfxUInt16Item( XATTR_FILLBMP_TILEOFFSETX, rIn )
     967             : {
     968           0 : }
     969             : 
     970       10815 : SfxPoolItem* XFillBmpTileOffsetXItem::Clone( SfxItemPool* /*pPool*/) const
     971             : {
     972       10815 :     return new XFillBmpTileOffsetXItem( *this );
     973             : }
     974             : 
     975           0 : SfxPoolItem* XFillBmpTileOffsetXItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
     976             : {
     977           0 :     return new XFillBmpTileOffsetXItem( rIn );
     978             : }
     979             : 
     980           0 : SfxItemPresentation XFillBmpTileOffsetXItem::GetPresentation
     981             : (
     982             :     SfxItemPresentation ePres,
     983             :     SfxMapUnit          /*eCoreUnit*/,
     984             :     SfxMapUnit          /*ePresUnit*/,
     985             :     OUString&           rText, const IntlWrapper *
     986             : )   const
     987             : {
     988           0 :     rText = OUString();
     989             : 
     990           0 :     switch ( ePres )
     991             :     {
     992             :         case SFX_ITEM_PRESENTATION_NONE:
     993           0 :             return ePres;
     994             :         case SFX_ITEM_PRESENTATION_COMPLETE:
     995             :         case SFX_ITEM_PRESENTATION_NAMELESS:
     996           0 :             return ePres;
     997             :         default:
     998           0 :             return SFX_ITEM_PRESENTATION_NONE;
     999             :     }
    1000             : }
    1001             : 
    1002             : 
    1003             : //------------------------------
    1004             : // class XFillBmpTileOffYItem
    1005             : //------------------------------
    1006       54478 : TYPEINIT1_AUTOFACTORY( XFillBmpTileOffsetYItem, SfxUInt16Item );
    1007             : 
    1008        1404 : XFillBmpTileOffsetYItem::XFillBmpTileOffsetYItem( sal_uInt16 nOffY ) :
    1009        1404 :             SfxUInt16Item( XATTR_FILLBMP_TILEOFFSETY, nOffY )
    1010             : {
    1011        1404 : }
    1012             : 
    1013           0 : XFillBmpTileOffsetYItem::XFillBmpTileOffsetYItem( SvStream& rIn ) :
    1014           0 :             SfxUInt16Item( XATTR_FILLBMP_TILEOFFSETY, rIn )
    1015             : {
    1016           0 : }
    1017             : 
    1018       10811 : SfxPoolItem* XFillBmpTileOffsetYItem::Clone( SfxItemPool* /*pPool*/) const
    1019             : {
    1020       10811 :     return new XFillBmpTileOffsetYItem( *this );
    1021             : }
    1022             : 
    1023           0 : SfxPoolItem* XFillBmpTileOffsetYItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
    1024             : {
    1025           0 :     return new XFillBmpTileOffsetYItem( rIn );
    1026             : }
    1027             : 
    1028           0 : SfxItemPresentation XFillBmpTileOffsetYItem::GetPresentation
    1029             : (
    1030             :     SfxItemPresentation ePres,
    1031             :     SfxMapUnit          /*eCoreUnit*/,
    1032             :     SfxMapUnit          /*ePresUnit*/,
    1033             :     OUString&           rText, const IntlWrapper *
    1034             : )   const
    1035             : {
    1036           0 :     rText = OUString();
    1037             : 
    1038           0 :     switch ( ePres )
    1039             :     {
    1040             :         case SFX_ITEM_PRESENTATION_NONE:
    1041           0 :             return ePres;
    1042             :         case SFX_ITEM_PRESENTATION_COMPLETE:
    1043             :         case SFX_ITEM_PRESENTATION_NAMELESS:
    1044           0 :             return ePres;
    1045             :         default:
    1046           0 :             return SFX_ITEM_PRESENTATION_NONE;
    1047             :     }
    1048             : }
    1049             : 
    1050             : 
    1051             : //------------------------------
    1052             : // class XFillBmpStretchItem
    1053             : //------------------------------
    1054        4603 : TYPEINIT1_AUTOFACTORY( XFillBmpStretchItem, SfxBoolItem );
    1055             : 
    1056       11395 : XFillBmpStretchItem::XFillBmpStretchItem( sal_Bool bStretch ) :
    1057       11395 :             SfxBoolItem( XATTR_FILLBMP_STRETCH, bStretch )
    1058             : {
    1059       11395 : }
    1060             : 
    1061           0 : XFillBmpStretchItem::XFillBmpStretchItem( SvStream& rIn ) :
    1062           0 :             SfxBoolItem( XATTR_FILLBMP_STRETCH, rIn )
    1063             : {
    1064           0 : }
    1065             : 
    1066         822 : SfxPoolItem* XFillBmpStretchItem::Clone( SfxItemPool* /*pPool*/) const
    1067             : {
    1068         822 :     return new XFillBmpStretchItem( *this );
    1069             : }
    1070             : 
    1071           0 : SfxPoolItem* XFillBmpStretchItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
    1072             : {
    1073           0 :     return new XFillBmpStretchItem( rIn );
    1074             : }
    1075             : 
    1076           0 : SfxItemPresentation XFillBmpStretchItem::GetPresentation
    1077             : (
    1078             :     SfxItemPresentation ePres,
    1079             :     SfxMapUnit          /*eCoreUnit*/,
    1080             :     SfxMapUnit          /*ePresUnit*/,
    1081             :     OUString&           rText, const IntlWrapper *
    1082             : )   const
    1083             : {
    1084           0 :     rText = OUString();
    1085             : 
    1086           0 :     switch ( ePres )
    1087             :     {
    1088             :         case SFX_ITEM_PRESENTATION_NONE:
    1089           0 :             return ePres;
    1090             :         case SFX_ITEM_PRESENTATION_COMPLETE:
    1091             :         case SFX_ITEM_PRESENTATION_NAMELESS:
    1092           0 :             return ePres;
    1093             :         default:
    1094           0 :             return SFX_ITEM_PRESENTATION_NONE;
    1095             :     }
    1096             : }
    1097             : 
    1098             : 
    1099             : //------------------------------
    1100             : // class XFillBmpTileOffPosXItem
    1101             : //------------------------------
    1102       54478 : TYPEINIT1_AUTOFACTORY( XFillBmpPosOffsetXItem, SfxUInt16Item );
    1103             : 
    1104        1404 : XFillBmpPosOffsetXItem::XFillBmpPosOffsetXItem( sal_uInt16 nOffPosX ) :
    1105        1404 :             SfxUInt16Item( XATTR_FILLBMP_POSOFFSETX, nOffPosX )
    1106             : {
    1107        1404 : }
    1108             : 
    1109           0 : XFillBmpPosOffsetXItem::XFillBmpPosOffsetXItem( SvStream& rIn ) :
    1110           0 :             SfxUInt16Item( XATTR_FILLBMP_POSOFFSETX, rIn )
    1111             : {
    1112           0 : }
    1113             : 
    1114       10811 : SfxPoolItem* XFillBmpPosOffsetXItem::Clone( SfxItemPool* /*pPool*/) const
    1115             : {
    1116       10811 :     return new XFillBmpPosOffsetXItem( *this );
    1117             : }
    1118             : 
    1119           0 : SfxPoolItem* XFillBmpPosOffsetXItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
    1120             : {
    1121           0 :     return new XFillBmpPosOffsetXItem( rIn );
    1122             : }
    1123             : 
    1124           0 : SfxItemPresentation XFillBmpPosOffsetXItem::GetPresentation
    1125             : (
    1126             :     SfxItemPresentation ePres,
    1127             :     SfxMapUnit          /*eCoreUnit*/,
    1128             :     SfxMapUnit          /*ePresUnit*/,
    1129             :     OUString&           rText, const IntlWrapper *
    1130             : )   const
    1131             : {
    1132           0 :     rText = OUString();
    1133             : 
    1134           0 :     switch ( ePres )
    1135             :     {
    1136             :         case SFX_ITEM_PRESENTATION_NONE:
    1137           0 :             return ePres;
    1138             :         case SFX_ITEM_PRESENTATION_COMPLETE:
    1139             :         case SFX_ITEM_PRESENTATION_NAMELESS:
    1140           0 :             return ePres;
    1141             :         default:
    1142           0 :             return SFX_ITEM_PRESENTATION_NONE;
    1143             :     }
    1144             : }
    1145             : 
    1146             : 
    1147             : //------------------------------
    1148             : // class XFillBmpTileOffPosYItem
    1149             : //------------------------------
    1150       54478 : TYPEINIT1_AUTOFACTORY( XFillBmpPosOffsetYItem, SfxUInt16Item );
    1151             : 
    1152        1404 : XFillBmpPosOffsetYItem::XFillBmpPosOffsetYItem( sal_uInt16 nOffPosY ) :
    1153        1404 :             SfxUInt16Item( XATTR_FILLBMP_POSOFFSETY, nOffPosY )
    1154             : {
    1155        1404 : }
    1156             : 
    1157           0 : XFillBmpPosOffsetYItem::XFillBmpPosOffsetYItem( SvStream& rIn ) :
    1158           0 :             SfxUInt16Item( XATTR_FILLBMP_POSOFFSETY, rIn )
    1159             : {
    1160           0 : }
    1161             : 
    1162       10810 : SfxPoolItem* XFillBmpPosOffsetYItem::Clone( SfxItemPool* /*pPool*/) const
    1163             : {
    1164       10810 :     return new XFillBmpPosOffsetYItem( *this );
    1165             : }
    1166             : 
    1167           0 : SfxPoolItem* XFillBmpPosOffsetYItem::Create( SvStream& rIn, sal_uInt16 /*nVer*/) const
    1168             : {
    1169           0 :     return new XFillBmpPosOffsetYItem( rIn );
    1170             : }
    1171             : 
    1172           0 : SfxItemPresentation XFillBmpPosOffsetYItem::GetPresentation
    1173             : (
    1174             :     SfxItemPresentation ePres,
    1175             :     SfxMapUnit          /*eCoreUnit*/,
    1176             :     SfxMapUnit          /*ePresUnit*/,
    1177             :     OUString&           rText, const IntlWrapper *
    1178             : )   const
    1179             : {
    1180           0 :     rText = OUString();
    1181             : 
    1182           0 :     switch ( ePres )
    1183             :     {
    1184             :         case SFX_ITEM_PRESENTATION_NONE:
    1185           0 :             return ePres;
    1186             :         case SFX_ITEM_PRESENTATION_COMPLETE:
    1187             :         case SFX_ITEM_PRESENTATION_NAMELESS:
    1188           0 :             return ePres;
    1189             :         default:
    1190           0 :             return SFX_ITEM_PRESENTATION_NONE;
    1191             :     }
    1192             : }
    1193             : 
    1194             : //--------------------------
    1195             : // class XFillBackgroundItem
    1196             : //--------------------------
    1197       54478 : TYPEINIT1_AUTOFACTORY(XFillBackgroundItem, SfxBoolItem);
    1198             : 
    1199             : /*************************************************************************
    1200             : |*
    1201             : |*    XFillBackgroundItem::XFillBackgroundItem( sal_Bool )
    1202             : |*
    1203             : *************************************************************************/
    1204             : 
    1205        1404 : XFillBackgroundItem::XFillBackgroundItem( sal_Bool bFill ) :
    1206        1404 :     SfxBoolItem( XATTR_FILLBACKGROUND, bFill )
    1207             : {
    1208        1404 : }
    1209             : 
    1210             : /*************************************************************************
    1211             : |*
    1212             : |*    XFillBackgroundItem::XFillBackgroundItem( SvStream& rIn )
    1213             : |*
    1214             : *************************************************************************/
    1215             : 
    1216           0 : XFillBackgroundItem::XFillBackgroundItem( SvStream& rIn ) :
    1217           0 :     SfxBoolItem( XATTR_FILLBACKGROUND, rIn )
    1218             : {
    1219           0 : }
    1220             : 
    1221             : /*************************************************************************
    1222             : |*
    1223             : |*    XFillBackgroundItem::Clone( SfxItemPool* pPool ) const
    1224             : |*
    1225             : *************************************************************************/
    1226             : 
    1227       10798 : SfxPoolItem* XFillBackgroundItem::Clone( SfxItemPool* /*pPool*/) const
    1228             : {
    1229       10798 :     return new XFillBackgroundItem( *this );
    1230             : }
    1231             : 
    1232             : /*************************************************************************
    1233             : |*
    1234             : |*    SfxPoolItem* XFillBackgroundItem::Create(SvStream& rIn, sal_uInt16 nVer) const
    1235             : |*
    1236             : *************************************************************************/
    1237             : 
    1238           0 : SfxPoolItem* XFillBackgroundItem::Create(SvStream& rIn, sal_uInt16 /*nVer*/) const
    1239             : {
    1240           0 :     return new XFillBackgroundItem( rIn );
    1241             : }
    1242             : 
    1243             : //------------------------------------------------------------------------
    1244             : 
    1245           0 : SfxItemPresentation XFillBackgroundItem::GetPresentation( SfxItemPresentation ePres, SfxMapUnit /*eCoreUnit*/,
    1246             :                                                           SfxMapUnit /*ePresUnit*/, OUString& rText, const IntlWrapper*) const
    1247             : {
    1248           0 :     rText = OUString();
    1249             : 
    1250           0 :     switch( ePres )
    1251             :     {
    1252             :         case SFX_ITEM_PRESENTATION_NONE:
    1253           0 :             return ePres;
    1254             : 
    1255             :         case SFX_ITEM_PRESENTATION_COMPLETE:
    1256             :         case SFX_ITEM_PRESENTATION_NAMELESS:
    1257           0 :             return ePres;
    1258             :         default:
    1259           0 :             return SFX_ITEM_PRESENTATION_NONE;
    1260             :     }
    1261         258 : }
    1262             : 
    1263             : 
    1264             : 
    1265             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10