Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*
3 : : * This file is part of the LibreOffice project.
4 : : *
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/.
8 : : *
9 : : * This file incorporates work covered by the following license notice:
10 : : *
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 .
18 : : */
19 : :
20 : : #include "sdattr.hxx"
21 : :
22 : : using namespace ::com::sun::star;
23 : :
24 : : /*************************************************************************
25 : : |*
26 : : |* DiaEffectItem
27 : : |*
28 : : *************************************************************************/
29 [ # # ][ # # ]: 0 : TYPEINIT1_AUTOFACTORY( DiaEffectItem, SfxEnumItem );
[ # # ]
30 : :
31 : :
32 : 0 : DiaEffectItem::DiaEffectItem( presentation::FadeEffect eFE ) :
33 : 0 : SfxEnumItem( ATTR_DIA_EFFECT, (sal_uInt16)eFE )
34 : : {
35 : 0 : }
36 : :
37 : :
38 : 0 : DiaEffectItem::DiaEffectItem( SvStream& rIn ) :
39 : 0 : SfxEnumItem( ATTR_DIA_EFFECT, rIn )
40 : : {
41 : 0 : }
42 : :
43 : :
44 : 0 : SfxPoolItem* DiaEffectItem::Clone( SfxItemPool* ) const
45 : : {
46 [ # # ]: 0 : return new DiaEffectItem( *this );
47 : : }
48 : :
49 : :
50 : 0 : SfxPoolItem* DiaEffectItem::Create( SvStream& rIn, sal_uInt16 ) const
51 : : {
52 [ # # ]: 0 : return new DiaEffectItem( rIn );
53 : : }
54 : :
55 : : /*************************************************************************
56 : : |*
57 : : |* DiaSpeedItem
58 : : |*
59 : : *************************************************************************/
60 [ # # ][ # # ]: 0 : TYPEINIT1_AUTOFACTORY( DiaSpeedItem, SfxEnumItem );
[ # # ]
61 : :
62 : :
63 : 0 : DiaSpeedItem::DiaSpeedItem( FadeSpeed eFS ) :
64 : 0 : SfxEnumItem( ATTR_DIA_SPEED, (sal_uInt16)eFS )
65 : : {
66 : 0 : }
67 : :
68 : :
69 : 0 : DiaSpeedItem::DiaSpeedItem( SvStream& rIn ) :
70 : 0 : SfxEnumItem( ATTR_DIA_SPEED, rIn )
71 : : {
72 : 0 : }
73 : :
74 : :
75 : 0 : SfxPoolItem* DiaSpeedItem::Clone( SfxItemPool* ) const
76 : : {
77 [ # # ]: 0 : return new DiaSpeedItem( *this );
78 : : }
79 : :
80 : :
81 : 0 : SfxPoolItem* DiaSpeedItem::Create( SvStream& rIn, sal_uInt16 ) const
82 : : {
83 [ # # ]: 0 : return new DiaSpeedItem( rIn );
84 : : }
85 : :
86 : : /*************************************************************************
87 : : |*
88 : : |* DiaAutoItem
89 : : |*
90 : : *************************************************************************/
91 [ # # ][ # # ]: 0 : TYPEINIT1_AUTOFACTORY( DiaAutoItem, SfxEnumItem );
[ # # ]
92 : :
93 : 0 : DiaAutoItem::DiaAutoItem( PresChange eChange ) :
94 : 0 : SfxEnumItem( ATTR_DIA_AUTO, (sal_uInt16)eChange )
95 : : {
96 : 0 : }
97 : :
98 : :
99 : 0 : DiaAutoItem::DiaAutoItem( SvStream& rIn ) :
100 : 0 : SfxEnumItem( ATTR_DIA_AUTO, rIn )
101 : : {
102 : 0 : }
103 : :
104 : :
105 : 0 : SfxPoolItem* DiaAutoItem::Clone( SfxItemPool* ) const
106 : : {
107 [ # # ]: 0 : return new DiaAutoItem( *this );
108 : : }
109 : :
110 : :
111 : 0 : SfxPoolItem* DiaAutoItem::Create( SvStream& rIn, sal_uInt16 ) const
112 : : {
113 [ # # ]: 0 : return new DiaAutoItem( rIn );
114 : : }
115 : :
116 : : /*************************************************************************
117 : : |*
118 : : |* DiaTimeItem
119 : : |*
120 : : *************************************************************************/
121 [ # # ][ # # ]: 0 : TYPEINIT1_AUTOFACTORY( DiaTimeItem, SfxUInt32Item );
[ # # ]
122 : :
123 : :
124 : 0 : DiaTimeItem::DiaTimeItem( sal_uInt32 nValue ) :
125 : 0 : SfxUInt32Item( ATTR_DIA_TIME, nValue )
126 : : {
127 : 0 : }
128 : :
129 : :
130 : 0 : SfxPoolItem* DiaTimeItem::Clone( SfxItemPool* ) const
131 : : {
132 [ # # ]: 0 : return new DiaTimeItem( *this );
133 : : }
134 : :
135 : :
136 : 0 : int DiaTimeItem::operator==( const SfxPoolItem& rItem ) const
137 : : {
138 : 0 : return( ( (DiaTimeItem&) rItem ).GetValue() == GetValue() );
139 : : }
140 : :
141 : :
142 : :
143 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|