tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / svx / source / sdr / properties / e3dproperties.cxx
blob2cd011ffbb55ffd27acdd3fa14d1a12ad461b655
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 <sal/config.h>
22 #include <sdr/properties/e3dproperties.hxx>
23 #include <svl/itemset.hxx>
24 #include <svx/svddef.hxx>
25 #include <svx/obj3d.hxx>
28 namespace sdr::properties
30 // create a new itemset
31 SfxItemSet E3dProperties::CreateObjectSpecificItemSet(SfxItemPool& rPool)
33 return SfxItemSet(rPool,
35 // ranges from SdrAttrObj
36 svl::Items<SDRATTR_START, SDRATTR_SHADOW_LAST,
37 SDRATTR_MISC_FIRST, SDRATTR_MISC_LAST,
38 SDRATTR_TEXTDIRECTION, SDRATTR_TEXTDIRECTION,
40 // ranges from E3dObject, contains object and scene because of GetMergedItemSet()
41 SDRATTR_3D_FIRST, SDRATTR_3D_LAST>);
44 E3dProperties::E3dProperties(SdrObject& rObj)
45 : AttributeProperties(rObj)
49 E3dProperties::E3dProperties(const E3dProperties& rProps, SdrObject& rObj)
50 : AttributeProperties(rProps, rObj)
54 E3dProperties::~E3dProperties()
58 std::unique_ptr<BaseProperties> E3dProperties::Clone(SdrObject& rObj) const
60 return std::unique_ptr<BaseProperties>(new E3dProperties(*this, rObj));
63 void E3dProperties::ItemSetChanged(std::span< const SfxPoolItem* const > aChangedItems, sal_uInt16 nDeletedWhich, bool bAdjustTextFrameWidthAndHeight)
65 E3dObject& rObj = static_cast<E3dObject&>(GetSdrObject());
67 // call parent
68 AttributeProperties::ItemSetChanged(aChangedItems, nDeletedWhich, bAdjustTextFrameWidthAndHeight);
70 // local changes
71 rObj.StructureChanged();
73 } // end of namespace
75 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */