/src/libreoffice/svx/source/sdr/attribute/sdrlinefilleffectstextattribute.cxx
Line | Count | Source |
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 | | const ReflectionAttribute& rReflection) |
38 | 663 | : SdrLineEffectsTextAttribute(rLine, rLineStartEnd, rShadow, rTextAttribute, rGlow, rGlowText, nSoftEdgeRadius, rReflection), |
39 | 663 | maFill(std::move(aFill)), |
40 | 663 | maFillFloatTransGradient(std::move(aFillFloatTransGradient)) |
41 | 663 | { |
42 | 663 | } |
43 | | |
44 | | SdrLineFillEffectsTextAttribute::SdrLineFillEffectsTextAttribute() |
45 | 0 | { |
46 | 0 | } |
47 | | |
48 | | SdrLineFillEffectsTextAttribute::SdrLineFillEffectsTextAttribute(const SdrLineFillEffectsTextAttribute& rCandidate) |
49 | 663 | : SdrLineEffectsTextAttribute(rCandidate), |
50 | 663 | maFill(rCandidate.getFill()), |
51 | 663 | maFillFloatTransGradient(rCandidate.getFillFloatTransGradient()) |
52 | 663 | { |
53 | 663 | } |
54 | | |
55 | | SdrLineFillEffectsTextAttribute& SdrLineFillEffectsTextAttribute::operator=(const SdrLineFillEffectsTextAttribute& rCandidate) |
56 | 0 | { |
57 | 0 | SdrLineEffectsTextAttribute::operator=(rCandidate); |
58 | 0 | maFill = rCandidate.getFill(); |
59 | 0 | maFillFloatTransGradient = rCandidate.getFillFloatTransGradient(); |
60 | |
|
61 | 0 | return *this; |
62 | 0 | } |
63 | | |
64 | | bool SdrLineFillEffectsTextAttribute::isDefault() const |
65 | 0 | { |
66 | 0 | return (SdrLineEffectsTextAttribute::isDefault() |
67 | 0 | && getFill().isDefault() |
68 | 0 | && getFillFloatTransGradient().isDefault()); |
69 | 0 | } |
70 | | |
71 | | bool SdrLineFillEffectsTextAttribute::operator==(const SdrLineFillEffectsTextAttribute& rCandidate) const |
72 | 140 | { |
73 | 140 | return(SdrLineEffectsTextAttribute::operator==(rCandidate) |
74 | 140 | && getFill() == rCandidate.getFill() |
75 | 140 | && getFillFloatTransGradient() == rCandidate.getFillFloatTransGradient()); |
76 | 140 | } |
77 | | |
78 | | } // end of namespace |
79 | | |
80 | | /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |