LibreOffice Module svx (master) 1
connectorproperties.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 <svl/style.hxx>
25#include <svx/svddef.hxx>
26#include <editeng/eeitem.hxx>
27#include <svx/svdoedge.hxx>
28
29
30namespace sdr::properties
31{
32 // create a new itemset
34 {
35 return SfxItemSet(
36 rPool,
38 // Ranges from SdrAttrObj, SdrEdgeObj:
43 // Range from SdrTextObj:
45 }
46
48 : TextProperties(rObj)
49 {
50 }
51
53 : TextProperties(rProps, rObj)
54 {
55 }
56
58 {
59 }
60
61 std::unique_ptr<BaseProperties> ConnectorProperties::Clone(SdrObject& rObj) const
62 {
63 return std::unique_ptr<BaseProperties>(new ConnectorProperties(*this, rObj));
64 }
65
67 {
68 SdrEdgeObj& rObj = static_cast<SdrEdgeObj&>(GetSdrObject());
69
70 // call parent
71 TextProperties::ItemSetChanged(aChangedItems, nDeletedWhich);
72
73 // local changes
75 }
76
77 void ConnectorProperties::SetStyleSheet(SfxStyleSheet* pNewStyleSheet, bool bDontRemoveHardAttr,
78 bool bBroadcast)
79 {
80 // call parent (always first thing to do, may create the SfxItemSet)
81 TextProperties::SetStyleSheet(pNewStyleSheet, bDontRemoveHardAttr, bBroadcast);
82
83 // local changes
84 SdrEdgeObj& rObj = static_cast<SdrEdgeObj&>(GetSdrObject());
86 }
87} // end of namespace
88
89/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Utility class SdrEdgeObj.
Definition: svdoedge.hxx:130
void ImpSetAttrToEdgeInfo()
Definition: svdoedge.cxx:212
Abstract DrawObject.
Definition: svdobj.hxx:261
const SdrObject & GetSdrObject() const
Definition: properties.cxx:43
virtual std::unique_ptr< BaseProperties > Clone(SdrObject &rObj) const override
virtual void SetStyleSheet(SfxStyleSheet *pNewStyleSheet, bool bDontRemoveHardAttr, bool bBroadcast) override
virtual void ItemSetChanged(o3tl::span< const SfxPoolItem *const > aChangedItems, sal_uInt16 nDeletedWhich) override
virtual SfxItemSet CreateObjectSpecificItemSet(SfxItemPool &rPool) override
virtual void SetStyleSheet(SfxStyleSheet *pNewStyleSheet, bool bDontRemoveHardAttr, bool bBroadcast) override
virtual void ItemSetChanged(o3tl::span< const SfxPoolItem *const > aChangedItems, sal_uInt16 nDeletedWhich) override
constexpr sal_uInt16 EE_ITEMS_END(EE_FEATURE_END)
constexpr sal_uInt16 EE_ITEMS_START(OWN_ATTR_VALUE_END+1)
static constexpr auto Items
constexpr sal_uInt16 SDRATTR_START(XATTR_START)
constexpr sal_uInt16 SDRATTR_TEXTCOLUMNS_FIRST(SDRATTR_SOFTEDGE_LAST+1)
constexpr sal_uInt16 SDRATTR_MISC_FIRST(SDRATTR_CAPTION_LAST+1)
constexpr sal_uInt16 SDRATTR_SHADOW_LAST(SDRATTR_SHADOWBLUR)
constexpr sal_uInt16 SDRATTR_TEXTCOLUMNS_LAST(SDRATTR_TEXTCOLUMNS_SPACING)
constexpr sal_uInt16 SDRATTR_EDGE_LAST(SDRATTR_EDGELINE3DELTA)
constexpr TypedWhichId< SvxWritingModeItem > SDRATTR_TEXTDIRECTION(SDRATTR_NOTPERSIST_FIRST+34)