Update ooo320-m1
[ooovba.git] / svx / source / sdr / properties / e3dextrudeproperties.cxx
blob830a97c4e3a90be543727d4a43357c78eb2124c8
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: e3dextrudeproperties.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/e3dextrudeproperties.hxx>
34 #include <svtools/itemset.hxx>
35 #include <svx/extrud3d.hxx>
37 //////////////////////////////////////////////////////////////////////////////
39 namespace sdr
41 namespace properties
43 E3dExtrudeProperties::E3dExtrudeProperties(SdrObject& rObj)
44 : E3dCompoundProperties(rObj)
48 E3dExtrudeProperties::E3dExtrudeProperties(const E3dExtrudeProperties& rProps, SdrObject& rObj)
49 : E3dCompoundProperties(rProps, rObj)
53 E3dExtrudeProperties::~E3dExtrudeProperties()
57 BaseProperties& E3dExtrudeProperties::Clone(SdrObject& rObj) const
59 return *(new E3dExtrudeProperties(*this, rObj));
62 void E3dExtrudeProperties::PostItemChange(const sal_uInt16 nWhich)
64 // call parent
65 E3dCompoundProperties::PostItemChange(nWhich);
67 // handle value change
68 E3dExtrudeObj& rObj = (E3dExtrudeObj&)GetSdrObject();
70 switch(nWhich)
72 case SDRATTR_3DOBJ_PERCENT_DIAGONAL:
74 rObj.ActionChanged();
75 break;
77 case SDRATTR_3DOBJ_BACKSCALE:
79 rObj.ActionChanged();
80 break;
82 case SDRATTR_3DOBJ_DEPTH:
84 rObj.ActionChanged();
85 break;
89 } // end of namespace properties
90 } // end of namespace sdr
92 //////////////////////////////////////////////////////////////////////////////
93 // eof