LCOV - code coverage report
Current view: top level - sd/inc - sdattr.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 28 0.0 %
Date: 2015-06-13 12:38:46 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           0 : class SdAttrLayerVisible : public SfxBoolItem
      59             : {
      60             : public:
      61           0 :     SdAttrLayerVisible( bool bValue = true ) :
      62           0 :         SfxBoolItem( ATTR_LAYER_VISIBLE, bValue ) {}
      63             : };
      64             : 
      65           0 : class SdAttrLayerPrintable : public SfxBoolItem
      66             : {
      67             : public:
      68           0 :     SdAttrLayerPrintable( bool bValue = true ) :
      69           0 :         SfxBoolItem( ATTR_LAYER_PRINTABLE, bValue ) {}
      70             : };
      71             : 
      72           0 : class SdAttrLayerLocked : public SfxBoolItem
      73             : {
      74             : public:
      75           0 :     SdAttrLayerLocked( bool bValue = false ) :
      76           0 :         SfxBoolItem( ATTR_LAYER_LOCKED, bValue ) {}
      77             : };
      78             : 
      79           0 : class SdAttrLayerThisPage : public SfxBoolItem
      80             : {
      81             : public:
      82           0 :     SdAttrLayerThisPage( bool bValue = false ) :
      83           0 :         SfxBoolItem( ATTR_LAYER_THISPAGE, bValue ) {}
      84             : };
      85             : 
      86           0 : class DiaEffectItem : public SfxEnumItem
      87             : {
      88             : public:
      89             :             TYPEINFO_OVERRIDE();
      90             :             DiaEffectItem( ::com::sun::star::presentation::FadeEffect eFade = com::sun::star::presentation::FadeEffect_NONE );
      91             :             DiaEffectItem( SvStream& rIn );
      92             : 
      93             :     virtual SfxPoolItem*    Clone( SfxItemPool* pPool = 0 ) const SAL_OVERRIDE;
      94             :     virtual SfxPoolItem*    Create( SvStream& rIn, sal_uInt16 nVer ) const SAL_OVERRIDE;
      95           0 :             sal_uInt16          GetValueCount() const SAL_OVERRIDE { return FADE_EFFECT_COUNT; }
      96             :             ::com::sun::star::presentation::FadeEffect      GetValue() const
      97             :                             { return (::com::sun::star::presentation::FadeEffect) SfxEnumItem::GetValue(); }
      98             : };
      99             : 
     100           0 : class DiaSpeedItem : public SfxEnumItem
     101             : {
     102             : public:
     103             :             TYPEINFO_OVERRIDE();
     104             :             DiaSpeedItem( FadeSpeed = FADE_SPEED_MEDIUM );
     105             :             DiaSpeedItem( SvStream& rIn );
     106             : 
     107             :     virtual SfxPoolItem*    Clone( SfxItemPool* pPool = 0 ) const SAL_OVERRIDE;
     108             :     virtual SfxPoolItem*    Create( SvStream& rIn, sal_uInt16 nVer ) const SAL_OVERRIDE;
     109           0 :             sal_uInt16          GetValueCount() const SAL_OVERRIDE { return FADE_SPEED_COUNT; }
     110             :             FadeSpeed       GetValue() const
     111             :                             { return (FadeSpeed) SfxEnumItem::GetValue(); }
     112             : };
     113             : 
     114           0 : class DiaAutoItem : public SfxEnumItem
     115             : {
     116             : public:
     117             :             TYPEINFO_OVERRIDE();
     118             :             DiaAutoItem( PresChange = PRESCHANGE_MANUAL );
     119             :             DiaAutoItem( SvStream& rIn );
     120             : 
     121             :     virtual SfxPoolItem*    Clone( SfxItemPool* pPool = 0 ) const SAL_OVERRIDE;
     122             :     virtual SfxPoolItem*    Create( SvStream& rIn, sal_uInt16 nVer ) const SAL_OVERRIDE;
     123           0 :             sal_uInt16          GetValueCount() const SAL_OVERRIDE { return PRESCHANGE_COUNT; }
     124             :             PresChange      GetValue() const { return (PresChange) SfxEnumItem::GetValue(); }
     125             : };
     126             : 
     127           0 : class DiaTimeItem : public SfxUInt32Item
     128             : {
     129             : public:
     130             :             TYPEINFO_OVERRIDE();
     131             :             DiaTimeItem( sal_uInt32 nValue = 0L );
     132             : 
     133             :     virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const SAL_OVERRIDE;
     134             :     virtual bool         operator==( const SfxPoolItem& ) const SAL_OVERRIDE;
     135             : };
     136             : 
     137             : #endif // INCLUDED_SD_INC_SDATTR_HXX
     138             : 
     139             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11