fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / svx / source / sdr / properties / e3dlatheproperties.cxx
blob3ba9f104b0d3541bdaa6125ccf60aaa93ff8963d
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 .
20 #include <svx/sdr/properties/e3dlatheproperties.hxx>
21 #include <svl/itemset.hxx>
22 #include <svx/lathe3d.hxx>
24 //////////////////////////////////////////////////////////////////////////////
26 namespace sdr
28 namespace properties
30 E3dLatheProperties::E3dLatheProperties(SdrObject& rObj)
31 : E3dCompoundProperties(rObj)
35 E3dLatheProperties::E3dLatheProperties(const E3dLatheProperties& rProps, SdrObject& rObj)
36 : E3dCompoundProperties(rProps, rObj)
40 E3dLatheProperties::~E3dLatheProperties()
44 BaseProperties& E3dLatheProperties::Clone(SdrObject& rObj) const
46 return *(new E3dLatheProperties(*this, rObj));
49 void E3dLatheProperties::PostItemChange(const sal_uInt16 nWhich)
51 // call parent
52 E3dCompoundProperties::PostItemChange(nWhich);
54 // handle value change
55 E3dLatheObj& rObj = (E3dLatheObj&)GetSdrObject();
57 switch(nWhich)
59 case SDRATTR_3DOBJ_HORZ_SEGS:
61 rObj.ActionChanged();
62 break;
64 case SDRATTR_3DOBJ_VERT_SEGS:
66 rObj.ActionChanged();
67 break;
69 case SDRATTR_3DOBJ_PERCENT_DIAGONAL:
71 rObj.ActionChanged();
72 break;
74 case SDRATTR_3DOBJ_BACKSCALE:
76 rObj.ActionChanged();
77 break;
79 case SDRATTR_3DOBJ_END_ANGLE:
81 rObj.ActionChanged();
82 break;
86 } // end of namespace properties
87 } // end of namespace sdr
89 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */