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 .
22 using namespace ::com::sun::star
;
24 /*************************************************************************
28 *************************************************************************/
29 TYPEINIT1_AUTOFACTORY( DiaEffectItem
, SfxEnumItem
);
32 DiaEffectItem::DiaEffectItem( presentation::FadeEffect eFE
) :
33 SfxEnumItem( ATTR_DIA_EFFECT
, (sal_uInt16
)eFE
)
38 DiaEffectItem::DiaEffectItem( SvStream
& rIn
) :
39 SfxEnumItem( ATTR_DIA_EFFECT
, rIn
)
44 SfxPoolItem
* DiaEffectItem::Clone( SfxItemPool
* ) const
46 return new DiaEffectItem( *this );
50 SfxPoolItem
* DiaEffectItem::Create( SvStream
& rIn
, sal_uInt16
) const
52 return new DiaEffectItem( rIn
);
55 /*************************************************************************
59 *************************************************************************/
60 TYPEINIT1_AUTOFACTORY( DiaSpeedItem
, SfxEnumItem
);
63 DiaSpeedItem::DiaSpeedItem( FadeSpeed eFS
) :
64 SfxEnumItem( ATTR_DIA_SPEED
, (sal_uInt16
)eFS
)
69 DiaSpeedItem::DiaSpeedItem( SvStream
& rIn
) :
70 SfxEnumItem( ATTR_DIA_SPEED
, rIn
)
75 SfxPoolItem
* DiaSpeedItem::Clone( SfxItemPool
* ) const
77 return new DiaSpeedItem( *this );
81 SfxPoolItem
* DiaSpeedItem::Create( SvStream
& rIn
, sal_uInt16
) const
83 return new DiaSpeedItem( rIn
);
86 /*************************************************************************
90 *************************************************************************/
91 TYPEINIT1_AUTOFACTORY( DiaAutoItem
, SfxEnumItem
);
93 DiaAutoItem::DiaAutoItem( PresChange eChange
) :
94 SfxEnumItem( ATTR_DIA_AUTO
, (sal_uInt16
)eChange
)
99 DiaAutoItem::DiaAutoItem( SvStream
& rIn
) :
100 SfxEnumItem( ATTR_DIA_AUTO
, rIn
)
105 SfxPoolItem
* DiaAutoItem::Clone( SfxItemPool
* ) const
107 return new DiaAutoItem( *this );
111 SfxPoolItem
* DiaAutoItem::Create( SvStream
& rIn
, sal_uInt16
) const
113 return new DiaAutoItem( rIn
);
116 /*************************************************************************
120 *************************************************************************/
121 TYPEINIT1_AUTOFACTORY( DiaTimeItem
, SfxUInt32Item
);
124 DiaTimeItem::DiaTimeItem( sal_uInt32 nValue
) :
125 SfxUInt32Item( ATTR_DIA_TIME
, nValue
)
130 SfxPoolItem
* DiaTimeItem::Clone( SfxItemPool
* ) const
132 return new DiaTimeItem( *this );
136 int DiaTimeItem::operator==( const SfxPoolItem
& rItem
) const
138 return( ( (DiaTimeItem
&) rItem
).GetValue() == GetValue() );
143 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */