xref: /trunk/main/sd/source/core/sdattr.cxx (revision 5b190011)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 // MARKER(update_precomp.py): autogen include statement, do not remove
25 #include "precompiled_sd.hxx"
26 
27 
28 #include "sdattr.hxx"
29 
30 using namespace ::com::sun::star;
31 
32 /*************************************************************************
33 |*
34 |*	DiaEffectItem
35 |*
36 *************************************************************************/
37 TYPEINIT1_AUTOFACTORY( DiaEffectItem, SfxEnumItem );
38 
39 
40 DiaEffectItem::DiaEffectItem( presentation::FadeEffect eFE ) :
41 	SfxEnumItem( ATTR_DIA_EFFECT, (sal_uInt16)eFE )
42 {
43 }
44 
45 
46 DiaEffectItem::DiaEffectItem( SvStream& rIn ) :
47 	SfxEnumItem( ATTR_DIA_EFFECT, rIn )
48 {
49 }
50 
51 
52 SfxPoolItem* DiaEffectItem::Clone( SfxItemPool* ) const
53 {
54 	return new DiaEffectItem( *this );
55 }
56 
57 
58 SfxPoolItem* DiaEffectItem::Create( SvStream& rIn, sal_uInt16 ) const
59 {
60 	return new DiaEffectItem( rIn );
61 }
62 
63 /*************************************************************************
64 |*
65 |*	DiaSpeedItem
66 |*
67 *************************************************************************/
68 TYPEINIT1_AUTOFACTORY( DiaSpeedItem, SfxEnumItem );
69 
70 
71 DiaSpeedItem::DiaSpeedItem( FadeSpeed eFS ) :
72 	SfxEnumItem( ATTR_DIA_SPEED, (sal_uInt16)eFS )
73 {
74 }
75 
76 
77 DiaSpeedItem::DiaSpeedItem( SvStream& rIn ) :
78 	SfxEnumItem( ATTR_DIA_SPEED, rIn )
79 {
80 }
81 
82 
83 SfxPoolItem* DiaSpeedItem::Clone( SfxItemPool* ) const
84 {
85 	return new DiaSpeedItem( *this );
86 }
87 
88 
89 SfxPoolItem* DiaSpeedItem::Create( SvStream& rIn, sal_uInt16 ) const
90 {
91 	return new DiaSpeedItem( rIn );
92 }
93 
94 /*************************************************************************
95 |*
96 |*	DiaAutoItem
97 |*
98 *************************************************************************/
99 TYPEINIT1_AUTOFACTORY( DiaAutoItem, SfxEnumItem );
100 
101 DiaAutoItem::DiaAutoItem( PresChange eChange ) :
102 	SfxEnumItem( ATTR_DIA_AUTO, (sal_uInt16)eChange )
103 {
104 }
105 
106 
107 DiaAutoItem::DiaAutoItem( SvStream& rIn ) :
108 	SfxEnumItem( ATTR_DIA_AUTO, rIn )
109 {
110 }
111 
112 
113 SfxPoolItem* DiaAutoItem::Clone( SfxItemPool* ) const
114 {
115 	return new DiaAutoItem( *this );
116 }
117 
118 
119 SfxPoolItem* DiaAutoItem::Create( SvStream& rIn, sal_uInt16 ) const
120 {
121 	return new DiaAutoItem( rIn );
122 }
123 
124 /*************************************************************************
125 |*
126 |*	DiaTimeItem
127 |*
128 *************************************************************************/
129 TYPEINIT1_AUTOFACTORY( DiaTimeItem, SfxUInt32Item );
130 
131 
132 DiaTimeItem::DiaTimeItem( sal_uInt32 nValue ) :
133 		SfxUInt32Item( ATTR_DIA_TIME, nValue )
134 {
135 }
136 
137 
138 SfxPoolItem* DiaTimeItem::Clone( SfxItemPool* ) const
139 {
140 	return new DiaTimeItem( *this );
141 }
142 
143 
144 int DiaTimeItem::operator==( const SfxPoolItem& rItem ) const
145 {
146 	return( ( (DiaTimeItem&) rItem ).GetValue() == GetValue() );
147 }
148 
149 
150 
151