Update ooo320-m1
[ooovba.git] / svx / source / sdr / properties / e3dsphereproperties.cxx
blobc2c74b8d161f752acf73b7294cb4ef833da8ff13
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: e3dsphereproperties.cxx,v $
10 * $Revision: 1.7.226.1 $
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_svx.hxx"
33 #include <svx/sdr/properties/e3dsphereproperties.hxx>
34 #include <svtools/itemset.hxx>
35 #include <svx/sphere3d.hxx>
37 //////////////////////////////////////////////////////////////////////////////
39 namespace sdr
41 namespace properties
43 E3dSphereProperties::E3dSphereProperties(SdrObject& rObj)
44 : E3dCompoundProperties(rObj)
48 E3dSphereProperties::E3dSphereProperties(const E3dSphereProperties& rProps, SdrObject& rObj)
49 : E3dCompoundProperties(rProps, rObj)
53 E3dSphereProperties::~E3dSphereProperties()
57 BaseProperties& E3dSphereProperties::Clone(SdrObject& rObj) const
59 return *(new E3dSphereProperties(*this, rObj));
62 void E3dSphereProperties::PostItemChange(const sal_uInt16 nWhich)
64 // call parent
65 E3dCompoundProperties::PostItemChange(nWhich);
67 // handle value change
68 E3dSphereObj& rObj = (E3dSphereObj&)GetSdrObject();
70 switch(nWhich)
72 case SDRATTR_3DOBJ_HORZ_SEGS:
74 rObj.ActionChanged();
75 break;
77 case SDRATTR_3DOBJ_VERT_SEGS:
79 rObj.ActionChanged();
80 break;
84 } // end of namespace properties
85 } // end of namespace sdr
87 //////////////////////////////////////////////////////////////////////////////
88 // eof