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 
28 namespace sdr::properties
29 {
30  // create a new itemset
31  std::unique_ptr<SfxItemSet> E3dProperties::CreateObjectSpecificItemSet(SfxItemPool& rPool)
32  {
33  return std::make_unique<SfxItemSet>(rPool,
34 
35  // ranges from SdrAttrObj
39 
40  // ranges from E3dObject, contains object and scene because of GetMergedItemSet()
42  }
43 
45  : AttributeProperties(rObj)
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 
64  {
65  E3dObject& rObj = static_cast<E3dObject&>(GetSdrObject());
66 
67  // call parent
69 
70  // local changes
71  rObj.StructureChanged();
72  }
73 } // end of namespace
74 
75 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
#define SDRATTR_MISC_LAST
Definition: svddef.hxx:225
virtual void StructureChanged()
Definition: obj3d.cxx:236
#define SDRATTR_SHADOW_LAST
Definition: svddef.hxx:183
virtual std::unique_ptr< SfxItemSet > CreateObjectSpecificItemSet(SfxItemPool &rPool) override
#define SDRATTR_3D_FIRST
Definition: svddef.hxx:325
#define SDRATTR_MISC_FIRST
Definition: svddef.hxx:198
#define SDRATTR_TEXTDIRECTION
Definition: svddef.hxx:307
virtual void ItemSetChanged(const SfxItemSet &rSet) override
#define SDRATTR_START
Definition: svddef.hxx:173
Abstract DrawObject.
Definition: svdobj.hxx:312
virtual void ItemSetChanged(const SfxItemSet &rSet) override
virtual ~E3dProperties() override
const SdrObject & GetSdrObject() const
Definition: properties.cxx:59
virtual std::unique_ptr< BaseProperties > Clone(SdrObject &rObj) const override
#define SDRATTR_3D_LAST
Definition: svddef.hxx:395