LibreOffice Module svx (master)
1
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
svx
source
sdr
properties
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
22
#include <
sdr/properties/connectorproperties.hxx
>
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
30
namespace
sdr::properties
31
{
32
// create a new itemset
33
std::unique_ptr<SfxItemSet>
ConnectorProperties::CreateObjectSpecificItemSet
(
SfxItemPool
& rPool)
34
{
35
return
std::make_unique<SfxItemSet>(
36
rPool,
37
svl::Items
<
38
// Ranges from SdrAttrObj, SdrEdgeObj:
39
SDRATTR_START
,
SDRATTR_SHADOW_LAST
,
40
SDRATTR_MISC_FIRST
,
SDRATTR_EDGE_LAST
,
41
SDRATTR_TEXTDIRECTION
,
SDRATTR_TEXTDIRECTION
,
42
// Range from SdrTextObj:
43
EE_ITEMS_START
,
EE_ITEMS_END
>{});
44
}
45
46
ConnectorProperties::ConnectorProperties
(
SdrObject
& rObj)
47
:
TextProperties
(rObj)
48
{
49
}
50
51
ConnectorProperties::ConnectorProperties
(
const
ConnectorProperties
& rProps,
SdrObject
& rObj)
52
:
TextProperties
(rProps, rObj)
53
{
54
}
55
56
ConnectorProperties::~ConnectorProperties
()
57
{
58
}
59
60
std::unique_ptr<BaseProperties>
ConnectorProperties::Clone
(
SdrObject
& rObj)
const
61
{
62
return
std::unique_ptr<BaseProperties>(
new
ConnectorProperties
(*
this
, rObj));
63
}
64
65
void
ConnectorProperties::ItemSetChanged
(
const
SfxItemSet
& rSet)
66
{
67
SdrEdgeObj
& rObj =
static_cast<
SdrEdgeObj
&
>
(
GetSdrObject
());
68
69
// call parent
70
TextProperties::ItemSetChanged
(rSet);
71
72
// local changes
73
rObj.
ImpSetAttrToEdgeInfo
();
74
}
75
76
void
ConnectorProperties::SetStyleSheet
(
SfxStyleSheet
* pNewStyleSheet,
bool
bDontRemoveHardAttr)
77
{
78
// call parent (always first thing to do, may create the SfxItemSet)
79
TextProperties::SetStyleSheet
(pNewStyleSheet, bDontRemoveHardAttr);
80
81
// local changes
82
SdrEdgeObj
& rObj =
static_cast<
SdrEdgeObj
&
>
(
GetSdrObject
());
83
rObj.
ImpSetAttrToEdgeInfo
();
84
}
85
}
// end of namespace
86
87
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
eeitem.hxx
sdr::properties::ConnectorProperties::SetStyleSheet
virtual void SetStyleSheet(SfxStyleSheet *pNewStyleSheet, bool bDontRemoveHardAttr) override
Definition:
connectorproperties.cxx:76
sdr::properties::ConnectorProperties::~ConnectorProperties
virtual ~ConnectorProperties() override
Definition:
connectorproperties.cxx:56
connectorproperties.hxx
itemset.hxx
style.hxx
EE_ITEMS_END
constexpr sal_uInt16 EE_ITEMS_END(EE_FEATURE_END)
svl::Items
SfxItemPool
sdr::properties::TextProperties
Definition:
textproperties.hxx:29
config.h
SDRATTR_START
constexpr sal_uInt16 SDRATTR_START(XATTR_START)
sdr::properties::ConnectorProperties::CreateObjectSpecificItemSet
virtual std::unique_ptr< SfxItemSet > CreateObjectSpecificItemSet(SfxItemPool &rPool) override
Definition:
connectorproperties.cxx:33
svdoedge.hxx
SdrEdgeObj::ImpSetAttrToEdgeInfo
void ImpSetAttrToEdgeInfo()
Definition:
svdoedge.cxx:212
SfxStyleSheet
sdr::properties::ConnectorProperties::ConnectorProperties
ConnectorProperties(SdrObject &rObj)
Definition:
connectorproperties.cxx:46
sdr::properties
Definition:
cell.hxx:39
SDRATTR_TEXTDIRECTION
constexpr TypedWhichId< SvxWritingModeItem > SDRATTR_TEXTDIRECTION(SDRATTR_NOTPERSIST_FIRST+34)
SfxItemSet
sdr::properties::ConnectorProperties
Definition:
connectorproperties.hxx:28
EE_ITEMS_START
constexpr sal_uInt16 EE_ITEMS_START(OWN_ATTR_VALUE_END+1)
SdrObject
Abstract DrawObject.
Definition:
svdobj.hxx:260
sdr::properties::ConnectorProperties::ItemSetChanged
virtual void ItemSetChanged(const SfxItemSet &rSet) override
Definition:
connectorproperties.cxx:65
sdr::properties::TextProperties::SetStyleSheet
virtual void SetStyleSheet(SfxStyleSheet *pNewStyleSheet, bool bDontRemoveHardAttr) override
Definition:
textproperties.cxx:234
SDRATTR_SHADOW_LAST
constexpr sal_uInt16 SDRATTR_SHADOW_LAST(SDRATTR_SHADOWBLUR)
SDRATTR_EDGE_LAST
constexpr sal_uInt16 SDRATTR_EDGE_LAST(SDRATTR_EDGELINE3DELTA)
svddef.hxx
sdr::properties::BaseProperties::GetSdrObject
const SdrObject & GetSdrObject() const
Definition:
properties.cxx:59
sdr::properties::ConnectorProperties::Clone
virtual std::unique_ptr< BaseProperties > Clone(SdrObject &rObj) const override
Definition:
connectorproperties.cxx:60
SDRATTR_MISC_FIRST
constexpr sal_uInt16 SDRATTR_MISC_FIRST(SDRATTR_CAPTION_LAST+1)
SdrEdgeObj
Utility class SdrEdgeObj.
Definition:
svdoedge.hxx:128
sdr::properties::TextProperties::ItemSetChanged
virtual void ItemSetChanged(const SfxItemSet &rSet) override
Definition:
textproperties.cxx:83
Generated on Sat Mar 6 2021 08:36:28 for LibreOffice Module svx (master) by
1.8.10