LibreOffice Module svx (master) 1
e3dproperties.cxx
Go to the documentation of this file.
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
23#include <svl/itemset.hxx>
24#include <svx/svddef.hxx>
25#include <svx/obj3d.hxx>
26
27
28namespace sdr::properties
29{
30 // create a new itemset
32 {
33 return SfxItemSet(rPool,
34
35 // ranges from SdrAttrObj
39
40 // ranges from E3dObject, contains object and scene because of GetMergedItemSet()
42 }
43
46 {
47 }
48
50 : AttributeProperties(rProps, rObj)
51 {
52 }
53
55 {
56 }
57
58 std::unique_ptr<BaseProperties> E3dProperties::Clone(SdrObject& rObj) const
59 {
60 return std::unique_ptr<BaseProperties>(new E3dProperties(*this, rObj));
61 }
62
63 void E3dProperties::ItemSetChanged(o3tl::span< const SfxPoolItem* const > aChangedItems, sal_uInt16 nDeletedWhich)
64 {
65 E3dObject& rObj = static_cast<E3dObject&>(GetSdrObject());
66
67 // call parent
68 AttributeProperties::ItemSetChanged(aChangedItems, nDeletedWhich);
69
70 // local changes
71 rObj.StructureChanged();
72 }
73} // end of namespace
74
75/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void StructureChanged()
Definition: obj3d.cxx:254
Abstract DrawObject.
Definition: svdobj.hxx:261
virtual void ItemSetChanged(o3tl::span< const SfxPoolItem *const > aChangedItems, sal_uInt16 nDeletedWhich) override
const SdrObject & GetSdrObject() const
Definition: properties.cxx:43
virtual SfxItemSet CreateObjectSpecificItemSet(SfxItemPool &rPool) override
virtual void ItemSetChanged(o3tl::span< const SfxPoolItem *const > aChangedItems, sal_uInt16 nDeletedWhich) override
virtual std::unique_ptr< BaseProperties > Clone(SdrObject &rObj) const override
virtual ~E3dProperties() override
static constexpr auto Items
constexpr sal_uInt16 SDRATTR_START(XATTR_START)
constexpr sal_uInt16 SDRATTR_3D_FIRST(SDRATTR_GRAF_LAST+1)
constexpr sal_uInt16 SDRATTR_3D_LAST(SDRATTR_3DSCENE_LAST)
constexpr sal_uInt16 SDRATTR_MISC_FIRST(SDRATTR_CAPTION_LAST+1)
constexpr sal_uInt16 SDRATTR_SHADOW_LAST(SDRATTR_SHADOWBLUR)
constexpr sal_uInt16 SDRATTR_MISC_LAST(SDRATTR_TEXT_CHAINNEXTNAME)
constexpr TypedWhichId< SvxWritingModeItem > SDRATTR_TEXTDIRECTION(SDRATTR_NOTPERSIST_FIRST+34)