1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
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>
34 //------------------------------------------------------------------
37 //==================================================================
39 //==================================================================
41 class SdAttrLayerName
: public SfxStringItem
45 SfxStringItem( ATTR_LAYER_NAME
, String( RTL_CONSTASCII_USTRINGPARAM( "neue Ebene" ))) {}
46 SdAttrLayerName( const String
& aStr
) :
47 SfxStringItem( ATTR_LAYER_NAME
, aStr
) {}
50 //------------------------------------------------------------------
52 class SdAttrLayerTitle
: public SfxStringItem
55 SdAttrLayerTitle() : SfxStringItem( ATTR_LAYER_TITLE
, OUString()) {}
56 SdAttrLayerTitle( const String
& aStr
) : SfxStringItem( ATTR_LAYER_TITLE
, aStr
) {}
59 //------------------------------------------------------------------
61 class SdAttrLayerDesc
: public SfxStringItem
64 SdAttrLayerDesc() : SfxStringItem( ATTR_LAYER_DESC
, OUString()) {}
65 SdAttrLayerDesc( const String
& aStr
) : SfxStringItem( ATTR_LAYER_DESC
, aStr
) {}
68 //------------------------------------------------------------------
70 class SdAttrLayerVisible
: public SfxBoolItem
73 SdAttrLayerVisible( sal_Bool bValue
= sal_True
) :
74 SfxBoolItem( ATTR_LAYER_VISIBLE
, bValue
) {}
77 //------------------------------------------------------------------
79 class SdAttrLayerPrintable
: public SfxBoolItem
82 SdAttrLayerPrintable( sal_Bool bValue
= sal_True
) :
83 SfxBoolItem( ATTR_LAYER_PRINTABLE
, bValue
) {}
86 //------------------------------------------------------------------
88 class SdAttrLayerLocked
: public SfxBoolItem
91 SdAttrLayerLocked( sal_Bool bValue
= sal_False
) :
92 SfxBoolItem( ATTR_LAYER_LOCKED
, bValue
) {}
95 //------------------------------------------------------------------
97 class SdAttrLayerThisPage
: public SfxBoolItem
100 SdAttrLayerThisPage( sal_Bool bValue
= sal_False
) :
101 SfxBoolItem( ATTR_LAYER_THISPAGE
, bValue
) {}
104 //------------------------------------------------------------------
106 class DiaEffectItem
: public SfxEnumItem
110 DiaEffectItem( ::com::sun::star::presentation::FadeEffect eFade
= com::sun::star::presentation::FadeEffect_NONE
);
111 DiaEffectItem( SvStream
& rIn
);
113 virtual SfxPoolItem
* Clone( SfxItemPool
* pPool
= 0 ) const;
114 virtual SfxPoolItem
* Create( SvStream
& rIn
, sal_uInt16 nVer
) const;
115 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(); }
120 //------------------------------------------------------------------
122 class DiaSpeedItem
: public SfxEnumItem
126 DiaSpeedItem( FadeSpeed
= FADE_SPEED_MEDIUM
);
127 DiaSpeedItem( SvStream
& rIn
);
129 virtual SfxPoolItem
* Clone( SfxItemPool
* pPool
= 0 ) const;
130 virtual SfxPoolItem
* Create( SvStream
& rIn
, sal_uInt16 nVer
) const;
131 sal_uInt16
GetValueCount() const { return FADE_SPEED_COUNT
; }
132 FadeSpeed
GetValue() const
133 { return (FadeSpeed
) SfxEnumItem::GetValue(); }
136 //------------------------------------------------------------------
138 class DiaAutoItem
: public SfxEnumItem
142 DiaAutoItem( PresChange
= PRESCHANGE_MANUAL
);
143 DiaAutoItem( SvStream
& rIn
);
145 virtual SfxPoolItem
* Clone( SfxItemPool
* pPool
= 0 ) const;
146 virtual SfxPoolItem
* Create( SvStream
& rIn
, sal_uInt16 nVer
) const;
147 sal_uInt16
GetValueCount() const { return PRESCHANGE_COUNT
; }
148 PresChange
GetValue() const { return (PresChange
) SfxEnumItem::GetValue(); }
151 //------------------------------------------------------------------
153 class DiaTimeItem
: public SfxUInt32Item
157 DiaTimeItem( sal_uInt32 nValue
= 0L );
159 virtual SfxPoolItem
* Clone( SfxItemPool
* pPool
= 0 ) const;
160 virtual int operator==( const SfxPoolItem
& ) const;
163 #endif // _SDATTR_HXX
166 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */