xref: /trunk/main/sd/inc/sdattr.hxx (revision 67e470da)
1*c45d927aSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*c45d927aSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*c45d927aSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*c45d927aSAndrew Rist  * distributed with this work for additional information
6*c45d927aSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*c45d927aSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*c45d927aSAndrew Rist  * "License"); you may not use this file except in compliance
9*c45d927aSAndrew Rist  * with the License.  You may obtain a copy of the License at
10*c45d927aSAndrew Rist  *
11*c45d927aSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*c45d927aSAndrew Rist  *
13*c45d927aSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*c45d927aSAndrew Rist  * software distributed under the License is distributed on an
15*c45d927aSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*c45d927aSAndrew Rist  * KIND, either express or implied.  See the License for the
17*c45d927aSAndrew Rist  * specific language governing permissions and limitations
18*c45d927aSAndrew Rist  * under the License.
19*c45d927aSAndrew Rist  *
20*c45d927aSAndrew Rist  *************************************************************/
21*c45d927aSAndrew Rist 
22*c45d927aSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef _SDATTR_HXX
25cdf0e10cSrcweir #define _SDATTR_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include <com/sun/star/presentation/FadeEffect.hpp>
28cdf0e10cSrcweir #include <svl/intitem.hxx>
29cdf0e10cSrcweir #include <svl/eitem.hxx>
30cdf0e10cSrcweir #include <svl/stritem.hxx>
31cdf0e10cSrcweir #include <sfx2/sfx.hrc>
32cdf0e10cSrcweir 
33cdf0e10cSrcweir #ifndef _SDATTR_HRC
34cdf0e10cSrcweir #include "sdattr.hrc"
35cdf0e10cSrcweir #endif
36cdf0e10cSrcweir #include "glob.hxx"
37cdf0e10cSrcweir #include "fadedef.h"
38cdf0e10cSrcweir #include "diadef.h"
39cdf0e10cSrcweir 
40cdf0e10cSrcweir //------------------------------------------------------------------
41cdf0e10cSrcweir 
42cdf0e10cSrcweir 
43cdf0e10cSrcweir //==================================================================
44cdf0e10cSrcweir //	Layer-Attribute
45cdf0e10cSrcweir //==================================================================
46cdf0e10cSrcweir 
47cdf0e10cSrcweir class SdAttrLayerName : public SfxStringItem
48cdf0e10cSrcweir {
49cdf0e10cSrcweir public:
SdAttrLayerName()50cdf0e10cSrcweir 	SdAttrLayerName() :
51cdf0e10cSrcweir 		SfxStringItem( ATTR_LAYER_NAME, String( RTL_CONSTASCII_USTRINGPARAM( "neue Ebene" ))) {}
SdAttrLayerName(const String & aStr)52cdf0e10cSrcweir 	SdAttrLayerName( const String& aStr ) :
53cdf0e10cSrcweir 		SfxStringItem( ATTR_LAYER_NAME, aStr ) {}
54cdf0e10cSrcweir };
55cdf0e10cSrcweir 
56cdf0e10cSrcweir //------------------------------------------------------------------
57cdf0e10cSrcweir 
58cdf0e10cSrcweir class SdAttrLayerTitle : public SfxStringItem
59cdf0e10cSrcweir {
60cdf0e10cSrcweir public:
SdAttrLayerTitle()61cdf0e10cSrcweir 	SdAttrLayerTitle() : SfxStringItem( ATTR_LAYER_TITLE, XubString()) {}
SdAttrLayerTitle(const String & aStr)62cdf0e10cSrcweir 	SdAttrLayerTitle( const String& aStr ) : SfxStringItem( ATTR_LAYER_TITLE, aStr ) {}
63cdf0e10cSrcweir };
64cdf0e10cSrcweir 
65cdf0e10cSrcweir //------------------------------------------------------------------
66cdf0e10cSrcweir 
67cdf0e10cSrcweir class SdAttrLayerDesc : public SfxStringItem
68cdf0e10cSrcweir {
69cdf0e10cSrcweir public:
SdAttrLayerDesc()70cdf0e10cSrcweir 	SdAttrLayerDesc() : SfxStringItem( ATTR_LAYER_DESC, XubString()) {}
SdAttrLayerDesc(const String & aStr)71cdf0e10cSrcweir 	SdAttrLayerDesc( const String& aStr ) : SfxStringItem( ATTR_LAYER_DESC, aStr ) {}
72cdf0e10cSrcweir };
73cdf0e10cSrcweir 
74cdf0e10cSrcweir //------------------------------------------------------------------
75cdf0e10cSrcweir 
76cdf0e10cSrcweir class SdAttrLayerVisible : public SfxBoolItem
77cdf0e10cSrcweir {
78cdf0e10cSrcweir public:
SdAttrLayerVisible(sal_Bool bValue=sal_True)79cdf0e10cSrcweir 	SdAttrLayerVisible( sal_Bool bValue = sal_True ) :
80cdf0e10cSrcweir 		SfxBoolItem( ATTR_LAYER_VISIBLE, bValue ) {}
81cdf0e10cSrcweir };
82cdf0e10cSrcweir 
83cdf0e10cSrcweir //------------------------------------------------------------------
84cdf0e10cSrcweir 
85cdf0e10cSrcweir class SdAttrLayerPrintable : public SfxBoolItem
86cdf0e10cSrcweir {
87cdf0e10cSrcweir public:
SdAttrLayerPrintable(sal_Bool bValue=sal_True)88cdf0e10cSrcweir 	SdAttrLayerPrintable( sal_Bool bValue = sal_True ) :
89cdf0e10cSrcweir 		SfxBoolItem( ATTR_LAYER_PRINTABLE, bValue ) {}
90cdf0e10cSrcweir };
91cdf0e10cSrcweir 
92cdf0e10cSrcweir //------------------------------------------------------------------
93cdf0e10cSrcweir 
94cdf0e10cSrcweir class SdAttrLayerLocked : public SfxBoolItem
95cdf0e10cSrcweir {
96cdf0e10cSrcweir public:
SdAttrLayerLocked(sal_Bool bValue=sal_False)97cdf0e10cSrcweir 	SdAttrLayerLocked( sal_Bool bValue = sal_False ) :
98cdf0e10cSrcweir 		SfxBoolItem( ATTR_LAYER_LOCKED, bValue ) {}
99cdf0e10cSrcweir };
100cdf0e10cSrcweir 
101cdf0e10cSrcweir //------------------------------------------------------------------
102cdf0e10cSrcweir 
103cdf0e10cSrcweir class SdAttrLayerThisPage : public SfxBoolItem
104cdf0e10cSrcweir {
105cdf0e10cSrcweir public:
SdAttrLayerThisPage(sal_Bool bValue=sal_False)106cdf0e10cSrcweir 	SdAttrLayerThisPage( sal_Bool bValue = sal_False ) :
107cdf0e10cSrcweir 		SfxBoolItem( ATTR_LAYER_THISPAGE, bValue ) {}
108cdf0e10cSrcweir };
109cdf0e10cSrcweir 
110cdf0e10cSrcweir //------------------------------------------------------------------
111cdf0e10cSrcweir 
112cdf0e10cSrcweir class DiaEffectItem : public SfxEnumItem
113cdf0e10cSrcweir {
114cdf0e10cSrcweir public:
115cdf0e10cSrcweir 			TYPEINFO();
116cdf0e10cSrcweir 			DiaEffectItem( ::com::sun::star::presentation::FadeEffect eFade = com::sun::star::presentation::FadeEffect_NONE );
117cdf0e10cSrcweir 			DiaEffectItem( SvStream& rIn );
118cdf0e10cSrcweir 
119cdf0e10cSrcweir 	virtual SfxPoolItem*	Clone( SfxItemPool* pPool = 0 ) const;
120cdf0e10cSrcweir 	virtual SfxPoolItem*	Create( SvStream& rIn, sal_uInt16 nVer ) const;
GetValueCount() const121cdf0e10cSrcweir 			sal_uInt16			GetValueCount() const { return FADE_EFFECT_COUNT; }
GetValue() const122cdf0e10cSrcweir 			::com::sun::star::presentation::FadeEffect		GetValue() const
123cdf0e10cSrcweir 							{ return (::com::sun::star::presentation::FadeEffect) SfxEnumItem::GetValue(); }
124cdf0e10cSrcweir };
125cdf0e10cSrcweir 
126cdf0e10cSrcweir //------------------------------------------------------------------
127cdf0e10cSrcweir 
128cdf0e10cSrcweir class DiaSpeedItem : public SfxEnumItem
129cdf0e10cSrcweir {
130cdf0e10cSrcweir public:
131cdf0e10cSrcweir 			TYPEINFO();
132cdf0e10cSrcweir 			DiaSpeedItem( FadeSpeed = FADE_SPEED_MEDIUM );
133cdf0e10cSrcweir 			DiaSpeedItem( SvStream& rIn );
134cdf0e10cSrcweir 
135cdf0e10cSrcweir 	virtual SfxPoolItem*	Clone( SfxItemPool* pPool = 0 ) const;
136cdf0e10cSrcweir 	virtual SfxPoolItem*	Create( SvStream& rIn, sal_uInt16 nVer ) const;
GetValueCount() const137cdf0e10cSrcweir 			sal_uInt16			GetValueCount() const { return FADE_SPEED_COUNT; }
GetValue() const138cdf0e10cSrcweir 			FadeSpeed		GetValue() const
139cdf0e10cSrcweir 							{ return (FadeSpeed) SfxEnumItem::GetValue(); }
140cdf0e10cSrcweir };
141cdf0e10cSrcweir 
142cdf0e10cSrcweir //------------------------------------------------------------------
143cdf0e10cSrcweir 
144cdf0e10cSrcweir class DiaAutoItem : public SfxEnumItem
145cdf0e10cSrcweir {
146cdf0e10cSrcweir public:
147cdf0e10cSrcweir 			TYPEINFO();
148cdf0e10cSrcweir 			DiaAutoItem( PresChange = PRESCHANGE_MANUAL );
149cdf0e10cSrcweir 			DiaAutoItem( SvStream& rIn );
150cdf0e10cSrcweir 
151cdf0e10cSrcweir 	virtual SfxPoolItem*	Clone( SfxItemPool* pPool = 0 ) const;
152cdf0e10cSrcweir 	virtual SfxPoolItem*	Create( SvStream& rIn, sal_uInt16 nVer ) const;
GetValueCount() const153cdf0e10cSrcweir 			sal_uInt16			GetValueCount() const { return PRESCHANGE_COUNT; }
GetValue() const154cdf0e10cSrcweir 			PresChange		GetValue() const { return (PresChange) SfxEnumItem::GetValue(); }
155cdf0e10cSrcweir };
156cdf0e10cSrcweir 
157cdf0e10cSrcweir //------------------------------------------------------------------
158cdf0e10cSrcweir 
159cdf0e10cSrcweir class DiaTimeItem : public SfxUInt32Item
160cdf0e10cSrcweir {
161cdf0e10cSrcweir public:
162cdf0e10cSrcweir 			TYPEINFO();
163cdf0e10cSrcweir 			DiaTimeItem( sal_uInt32 nValue = 0L );
164cdf0e10cSrcweir 
165cdf0e10cSrcweir 	virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const;
166cdf0e10cSrcweir 	virtual int 		 operator==( const SfxPoolItem& ) const;
167cdf0e10cSrcweir };
168cdf0e10cSrcweir 
169cdf0e10cSrcweir #endif // _SDATTR_HXX
170cdf0e10cSrcweir 
171cdf0e10cSrcweir 
172