LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/sd/inc - sdattr.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 28 0.0 %
Date: 2013-07-09 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 _SDATTR_HXX
      21             : #define _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             : //------------------------------------------------------------------
      35             : 
      36             : 
      37             : //==================================================================
      38             : //  layer attributes
      39             : //==================================================================
      40             : 
      41           0 : class SdAttrLayerName : public SfxStringItem
      42             : {
      43             : public:
      44             :     SdAttrLayerName() :
      45             :         SfxStringItem( ATTR_LAYER_NAME, OUString("neue Ebene") ) {}
      46           0 :     SdAttrLayerName( const OUString& aStr ) :
      47           0 :         SfxStringItem( ATTR_LAYER_NAME, aStr ) {}
      48             : };
      49             : 
      50             : //------------------------------------------------------------------
      51             : 
      52           0 : class SdAttrLayerTitle : public SfxStringItem
      53             : {
      54             : public:
      55           0 :     SdAttrLayerTitle() : SfxStringItem( ATTR_LAYER_TITLE, OUString()) {}
      56           0 :     SdAttrLayerTitle( const OUString& aStr ) : SfxStringItem( ATTR_LAYER_TITLE, aStr ) {}
      57             : };
      58             : 
      59             : //------------------------------------------------------------------
      60             : 
      61           0 : class SdAttrLayerDesc : public SfxStringItem
      62             : {
      63             : public:
      64           0 :     SdAttrLayerDesc() : SfxStringItem( ATTR_LAYER_DESC, OUString()) {}
      65           0 :     SdAttrLayerDesc( const OUString& aStr ) : SfxStringItem( ATTR_LAYER_DESC, aStr ) {}
      66             : };
      67             : 
      68             : //------------------------------------------------------------------
      69             : 
      70           0 : class SdAttrLayerVisible : public SfxBoolItem
      71             : {
      72             : public:
      73           0 :     SdAttrLayerVisible( sal_Bool bValue = sal_True ) :
      74           0 :         SfxBoolItem( ATTR_LAYER_VISIBLE, bValue ) {}
      75             : };
      76             : 
      77             : //------------------------------------------------------------------
      78             : 
      79           0 : class SdAttrLayerPrintable : public SfxBoolItem
      80             : {
      81             : public:
      82           0 :     SdAttrLayerPrintable( sal_Bool bValue = sal_True ) :
      83           0 :         SfxBoolItem( ATTR_LAYER_PRINTABLE, bValue ) {}
      84             : };
      85             : 
      86             : //------------------------------------------------------------------
      87             : 
      88           0 : class SdAttrLayerLocked : public SfxBoolItem
      89             : {
      90             : public:
      91           0 :     SdAttrLayerLocked( sal_Bool bValue = sal_False ) :
      92           0 :         SfxBoolItem( ATTR_LAYER_LOCKED, bValue ) {}
      93             : };
      94             : 
      95             : //------------------------------------------------------------------
      96             : 
      97           0 : class SdAttrLayerThisPage : public SfxBoolItem
      98             : {
      99             : public:
     100           0 :     SdAttrLayerThisPage( sal_Bool bValue = sal_False ) :
     101           0 :         SfxBoolItem( ATTR_LAYER_THISPAGE, bValue ) {}
     102             : };
     103             : 
     104             : //------------------------------------------------------------------
     105             : 
     106           0 : class DiaEffectItem : public SfxEnumItem
     107             : {
     108             : public:
     109             :             TYPEINFO();
     110             :             DiaEffectItem( ::com::sun::star::presentation::FadeEffect eFade = com::sun::star::presentation::FadeEffect_NONE );
     111             :             DiaEffectItem( SvStream& rIn );
     112             : 
     113             :     virtual SfxPoolItem*    Clone( SfxItemPool* pPool = 0 ) const;
     114             :     virtual SfxPoolItem*    Create( SvStream& rIn, sal_uInt16 nVer ) const;
     115           0 :             sal_uInt16          GetValueCount() const { return FADE_EFFECT_COUNT; }
     116             :             ::com::sun::star::presentation::FadeEffect      GetValue() const
     117             :                             { return (::com::sun::star::presentation::FadeEffect) SfxEnumItem::GetValue(); }
     118             : };
     119             : 
     120             : //------------------------------------------------------------------
     121             : 
     122           0 : class DiaSpeedItem : public SfxEnumItem
     123             : {
     124             : public:
     125             :             TYPEINFO();
     126             :             DiaSpeedItem( FadeSpeed = FADE_SPEED_MEDIUM );
     127             :             DiaSpeedItem( SvStream& rIn );
     128             : 
     129             :     virtual SfxPoolItem*    Clone( SfxItemPool* pPool = 0 ) const;
     130             :     virtual SfxPoolItem*    Create( SvStream& rIn, sal_uInt16 nVer ) const;
     131           0 :             sal_uInt16          GetValueCount() const { return FADE_SPEED_COUNT; }
     132             :             FadeSpeed       GetValue() const
     133             :                             { return (FadeSpeed) SfxEnumItem::GetValue(); }
     134             : };
     135             : 
     136             : //------------------------------------------------------------------
     137             : 
     138           0 : class DiaAutoItem : public SfxEnumItem
     139             : {
     140             : public:
     141             :             TYPEINFO();
     142             :             DiaAutoItem( PresChange = PRESCHANGE_MANUAL );
     143             :             DiaAutoItem( SvStream& rIn );
     144             : 
     145             :     virtual SfxPoolItem*    Clone( SfxItemPool* pPool = 0 ) const;
     146             :     virtual SfxPoolItem*    Create( SvStream& rIn, sal_uInt16 nVer ) const;
     147           0 :             sal_uInt16          GetValueCount() const { return PRESCHANGE_COUNT; }
     148             :             PresChange      GetValue() const { return (PresChange) SfxEnumItem::GetValue(); }
     149             : };
     150             : 
     151             : //------------------------------------------------------------------
     152             : 
     153           0 : class DiaTimeItem : public SfxUInt32Item
     154             : {
     155             : public:
     156             :             TYPEINFO();
     157             :             DiaTimeItem( sal_uInt32 nValue = 0L );
     158             : 
     159             :     virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const;
     160             :     virtual int          operator==( const SfxPoolItem& ) const;
     161             : };
     162             : 
     163             : #endif // _SDATTR_HXX
     164             : 
     165             : 
     166             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10