LCOV - code coverage report
Current view: top level - sd/inc - sdattr.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 28 0.0 %
Date: 2014-04-14 Functions: 0 38 0.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             : #ifndef INCLUDED_SD_INC_SDATTR_HXX
      21             : #define INCLUDED_SD_INC_SDATTR_HXX
      22             : 
      23             : #include <com/sun/star/presentation/FadeEffect.hpp>
      24             : #include <svl/intitem.hxx>
      25             : #include <svl/eitem.hxx>
      26             : #include <svl/stritem.hxx>
      27             : #include <sfx2/sfx.hrc>
      28             : 
      29             : #include "sdattr.hrc"
      30             : #include "glob.hxx"
      31             : #include "fadedef.h"
      32             : #include "diadef.h"
      33             : 
      34             : // layer attributes
      35           0 : class SdAttrLayerName : public SfxStringItem
      36             : {
      37             : public:
      38             :     SdAttrLayerName() :
      39             :         SfxStringItem( ATTR_LAYER_NAME, OUString("neue Ebene") ) {}
      40           0 :     SdAttrLayerName( const OUString& aStr ) :
      41           0 :         SfxStringItem( ATTR_LAYER_NAME, aStr ) {}
      42             : };
      43             : 
      44           0 : class SdAttrLayerTitle : public SfxStringItem
      45             : {
      46             : public:
      47           0 :     SdAttrLayerTitle() : SfxStringItem( ATTR_LAYER_TITLE, OUString()) {}
      48           0 :     SdAttrLayerTitle( const OUString& aStr ) : SfxStringItem( ATTR_LAYER_TITLE, aStr ) {}
      49             : };
      50             : 
      51           0 : class SdAttrLayerDesc : public SfxStringItem
      52             : {
      53             : public:
      54           0 :     SdAttrLayerDesc() : SfxStringItem( ATTR_LAYER_DESC, OUString()) {}
      55           0 :     SdAttrLayerDesc( const OUString& aStr ) : SfxStringItem( ATTR_LAYER_DESC, aStr ) {}
      56             : };
      57             : 
      58             : 
      59           0 : class SdAttrLayerVisible : public SfxBoolItem
      60             : {
      61             : public:
      62           0 :     SdAttrLayerVisible( sal_Bool bValue = sal_True ) :
      63           0 :         SfxBoolItem( ATTR_LAYER_VISIBLE, bValue ) {}
      64             : };
      65             : 
      66             : 
      67           0 : class SdAttrLayerPrintable : public SfxBoolItem
      68             : {
      69             : public:
      70           0 :     SdAttrLayerPrintable( sal_Bool bValue = sal_True ) :
      71           0 :         SfxBoolItem( ATTR_LAYER_PRINTABLE, bValue ) {}
      72             : };
      73             : 
      74             : 
      75           0 : class SdAttrLayerLocked : public SfxBoolItem
      76             : {
      77             : public:
      78           0 :     SdAttrLayerLocked( sal_Bool bValue = sal_False ) :
      79           0 :         SfxBoolItem( ATTR_LAYER_LOCKED, bValue ) {}
      80             : };
      81             : 
      82             : 
      83           0 : class SdAttrLayerThisPage : public SfxBoolItem
      84             : {
      85             : public:
      86           0 :     SdAttrLayerThisPage( sal_Bool bValue = sal_False ) :
      87           0 :         SfxBoolItem( ATTR_LAYER_THISPAGE, bValue ) {}
      88             : };
      89             : 
      90             : 
      91           0 : class DiaEffectItem : public SfxEnumItem
      92             : {
      93             : public:
      94             :             TYPEINFO_OVERRIDE();
      95             :             DiaEffectItem( ::com::sun::star::presentation::FadeEffect eFade = com::sun::star::presentation::FadeEffect_NONE );
      96             :             DiaEffectItem( SvStream& rIn );
      97             : 
      98             :     virtual SfxPoolItem*    Clone( SfxItemPool* pPool = 0 ) const SAL_OVERRIDE;
      99             :     virtual SfxPoolItem*    Create( SvStream& rIn, sal_uInt16 nVer ) const SAL_OVERRIDE;
     100           0 :             sal_uInt16          GetValueCount() const SAL_OVERRIDE { return FADE_EFFECT_COUNT; }
     101             :             ::com::sun::star::presentation::FadeEffect      GetValue() const
     102             :                             { return (::com::sun::star::presentation::FadeEffect) SfxEnumItem::GetValue(); }
     103             : };
     104             : 
     105             : 
     106           0 : class DiaSpeedItem : public SfxEnumItem
     107             : {
     108             : public:
     109             :             TYPEINFO_OVERRIDE();
     110             :             DiaSpeedItem( FadeSpeed = FADE_SPEED_MEDIUM );
     111             :             DiaSpeedItem( SvStream& rIn );
     112             : 
     113             :     virtual SfxPoolItem*    Clone( SfxItemPool* pPool = 0 ) const SAL_OVERRIDE;
     114             :     virtual SfxPoolItem*    Create( SvStream& rIn, sal_uInt16 nVer ) const SAL_OVERRIDE;
     115           0 :             sal_uInt16          GetValueCount() const SAL_OVERRIDE { return FADE_SPEED_COUNT; }
     116             :             FadeSpeed       GetValue() const
     117             :                             { return (FadeSpeed) SfxEnumItem::GetValue(); }
     118             : };
     119             : 
     120             : 
     121           0 : class DiaAutoItem : public SfxEnumItem
     122             : {
     123             : public:
     124             :             TYPEINFO_OVERRIDE();
     125             :             DiaAutoItem( PresChange = PRESCHANGE_MANUAL );
     126             :             DiaAutoItem( SvStream& rIn );
     127             : 
     128             :     virtual SfxPoolItem*    Clone( SfxItemPool* pPool = 0 ) const SAL_OVERRIDE;
     129             :     virtual SfxPoolItem*    Create( SvStream& rIn, sal_uInt16 nVer ) const SAL_OVERRIDE;
     130           0 :             sal_uInt16          GetValueCount() const SAL_OVERRIDE { return PRESCHANGE_COUNT; }
     131             :             PresChange      GetValue() const { return (PresChange) SfxEnumItem::GetValue(); }
     132             : };
     133             : 
     134             : 
     135           0 : class DiaTimeItem : public SfxUInt32Item
     136             : {
     137             : public:
     138             :             TYPEINFO_OVERRIDE();
     139             :             DiaTimeItem( sal_uInt32 nValue = 0L );
     140             : 
     141             :     virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const SAL_OVERRIDE;
     142             :     virtual bool         operator==( const SfxPoolItem& ) const SAL_OVERRIDE;
     143             : };
     144             : 
     145             : #endif // INCLUDED_SD_INC_SDATTR_HXX
     146             : 
     147             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10