1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: sdattr.cxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_sd.hxx"
37 using namespace ::com::sun::star
;
39 /*************************************************************************
43 *************************************************************************/
44 TYPEINIT1_AUTOFACTORY( DiaEffectItem
, SfxEnumItem
);
47 DiaEffectItem::DiaEffectItem( presentation::FadeEffect eFE
) :
48 SfxEnumItem( ATTR_DIA_EFFECT
, (USHORT
)eFE
)
53 DiaEffectItem::DiaEffectItem( SvStream
& rIn
) :
54 SfxEnumItem( ATTR_DIA_EFFECT
, rIn
)
59 SfxPoolItem
* DiaEffectItem::Clone( SfxItemPool
* ) const
61 return new DiaEffectItem( *this );
65 SfxPoolItem
* DiaEffectItem::Create( SvStream
& rIn
, USHORT
) const
67 return new DiaEffectItem( rIn
);
70 /*************************************************************************
74 *************************************************************************/
75 TYPEINIT1_AUTOFACTORY( DiaSpeedItem
, SfxEnumItem
);
78 DiaSpeedItem::DiaSpeedItem( FadeSpeed eFS
) :
79 SfxEnumItem( ATTR_DIA_SPEED
, (USHORT
)eFS
)
84 DiaSpeedItem::DiaSpeedItem( SvStream
& rIn
) :
85 SfxEnumItem( ATTR_DIA_SPEED
, rIn
)
90 SfxPoolItem
* DiaSpeedItem::Clone( SfxItemPool
* ) const
92 return new DiaSpeedItem( *this );
96 SfxPoolItem
* DiaSpeedItem::Create( SvStream
& rIn
, USHORT
) const
98 return new DiaSpeedItem( rIn
);
101 /*************************************************************************
105 *************************************************************************/
106 TYPEINIT1_AUTOFACTORY( DiaAutoItem
, SfxEnumItem
);
108 DiaAutoItem::DiaAutoItem( PresChange eChange
) :
109 SfxEnumItem( ATTR_DIA_AUTO
, (USHORT
)eChange
)
114 DiaAutoItem::DiaAutoItem( SvStream
& rIn
) :
115 SfxEnumItem( ATTR_DIA_AUTO
, rIn
)
120 SfxPoolItem
* DiaAutoItem::Clone( SfxItemPool
* ) const
122 return new DiaAutoItem( *this );
126 SfxPoolItem
* DiaAutoItem::Create( SvStream
& rIn
, USHORT
) const
128 return new DiaAutoItem( rIn
);
131 /*************************************************************************
135 *************************************************************************/
136 TYPEINIT1_AUTOFACTORY( DiaTimeItem
, SfxUInt32Item
);
139 DiaTimeItem::DiaTimeItem( UINT32 nValue
) :
140 SfxUInt32Item( ATTR_DIA_TIME
, nValue
)
145 SfxPoolItem
* DiaTimeItem::Clone( SfxItemPool
* ) const
147 return new DiaTimeItem( *this );
151 int DiaTimeItem::operator==( const SfxPoolItem
& rItem
) const
153 return( ( (DiaTimeItem
&) rItem
).GetValue() == GetValue() );