Coverage Report

Created: 2025-07-07 10:01

/src/libreoffice/svx/source/sdr/attribute/sdrlinefilleffectstextattribute.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
21
#include <sdr/attribute/sdrlinefilleffectstextattribute.hxx>
22
#include <utility>
23
24
25
namespace drawinglayer::attribute
26
{
27
        SdrLineFillEffectsTextAttribute::SdrLineFillEffectsTextAttribute(
28
            const SdrLineAttribute& rLine,
29
            SdrFillAttribute aFill,
30
            const SdrLineStartEndAttribute& rLineStartEnd,
31
            const SdrShadowAttribute& rShadow,
32
            FillGradientAttribute aFillFloatTransGradient,
33
            const SdrTextAttribute& rTextAttribute,
34
            const SdrGlowAttribute& rGlow,
35
            const SdrGlowTextAttribute& rGlowText,
36
            sal_Int32 nSoftEdgeRadius)
37
495
        :   SdrLineEffectsTextAttribute(rLine, rLineStartEnd, rShadow, rTextAttribute, rGlow, rGlowText, nSoftEdgeRadius),
38
495
            maFill(std::move(aFill)),
39
495
            maFillFloatTransGradient(std::move(aFillFloatTransGradient))
40
495
        {
41
495
        }
42
43
        SdrLineFillEffectsTextAttribute::SdrLineFillEffectsTextAttribute()
44
0
        {
45
0
        }
46
47
        SdrLineFillEffectsTextAttribute::SdrLineFillEffectsTextAttribute(const SdrLineFillEffectsTextAttribute& rCandidate)
48
495
        :   SdrLineEffectsTextAttribute(rCandidate),
49
495
            maFill(rCandidate.getFill()),
50
495
            maFillFloatTransGradient(rCandidate.getFillFloatTransGradient())
51
495
        {
52
495
        }
53
54
        SdrLineFillEffectsTextAttribute& SdrLineFillEffectsTextAttribute::operator=(const SdrLineFillEffectsTextAttribute& rCandidate)
55
0
        {
56
0
            SdrLineEffectsTextAttribute::operator=(rCandidate);
57
0
            maFill = rCandidate.getFill();
58
0
            maFillFloatTransGradient = rCandidate.getFillFloatTransGradient();
59
60
0
            return *this;
61
0
        }
62
63
        bool SdrLineFillEffectsTextAttribute::isDefault() const
64
0
        {
65
0
            return (SdrLineEffectsTextAttribute::isDefault()
66
0
                && getFill().isDefault()
67
0
                && getFillFloatTransGradient().isDefault());
68
0
        }
69
70
        bool SdrLineFillEffectsTextAttribute::operator==(const SdrLineFillEffectsTextAttribute& rCandidate) const
71
88
        {
72
88
            return(SdrLineEffectsTextAttribute::operator==(rCandidate)
73
88
                && getFill() == rCandidate.getFill()
74
88
                && getFillFloatTransGradient() == rCandidate.getFillFloatTransGradient());
75
88
        }
76
77
} // end of namespace
78
79
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */