/src/libreoffice/svx/source/sdr/properties/e3dproperties.cxx
Line | Count | Source (jump to first uncovered line) |
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 <sal/config.h> |
21 | | |
22 | | #include <sdr/properties/e3dproperties.hxx> |
23 | | #include <svl/itemset.hxx> |
24 | | #include <svx/svddef.hxx> |
25 | | #include <svx/obj3d.hxx> |
26 | | |
27 | | |
28 | | namespace sdr::properties |
29 | | { |
30 | | // create a new itemset |
31 | | SfxItemSet E3dProperties::CreateObjectSpecificItemSet(SfxItemPool& rPool) |
32 | 13.6k | { |
33 | 13.6k | return SfxItemSet(rPool, |
34 | | |
35 | | // ranges from SdrAttrObj |
36 | 13.6k | svl::Items<SDRATTR_START, SDRATTR_SHADOW_LAST, |
37 | 13.6k | SDRATTR_MISC_FIRST, SDRATTR_MISC_LAST, |
38 | 13.6k | SDRATTR_TEXTDIRECTION, SDRATTR_TEXTDIRECTION, |
39 | | |
40 | | // ranges from E3dObject, contains object and scene because of GetMergedItemSet() |
41 | 13.6k | SDRATTR_3D_FIRST, SDRATTR_3D_LAST>); |
42 | 13.6k | } |
43 | | |
44 | | E3dProperties::E3dProperties(SdrObject& rObj) |
45 | 13.6k | : AttributeProperties(rObj) |
46 | 13.6k | { |
47 | 13.6k | } |
48 | | |
49 | | E3dProperties::E3dProperties(const E3dProperties& rProps, SdrObject& rObj) |
50 | 0 | : AttributeProperties(rProps, rObj) |
51 | 0 | { |
52 | 0 | } |
53 | | |
54 | | E3dProperties::~E3dProperties() |
55 | 13.6k | { |
56 | 13.6k | } |
57 | | |
58 | | std::unique_ptr<BaseProperties> E3dProperties::Clone(SdrObject& rObj) const |
59 | 0 | { |
60 | 0 | return std::unique_ptr<BaseProperties>(new E3dProperties(*this, rObj)); |
61 | 0 | } |
62 | | |
63 | | void E3dProperties::ItemSetChanged(std::span< const SfxPoolItem* const > aChangedItems, sal_uInt16 nDeletedWhich, bool bAdjustTextFrameWidthAndHeight) |
64 | 123k | { |
65 | 123k | E3dObject& rObj = static_cast<E3dObject&>(GetSdrObject()); |
66 | | |
67 | | // call parent |
68 | 123k | AttributeProperties::ItemSetChanged(aChangedItems, nDeletedWhich, bAdjustTextFrameWidthAndHeight); |
69 | | |
70 | | // local changes |
71 | 123k | rObj.StructureChanged(); |
72 | 123k | } |
73 | | } // end of namespace |
74 | | |
75 | | /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |